Introduction to Problem Solving
CBSE · Class 11 · Computer Science
NCERT Solutions for Introduction to Problem Solving — CBSE Class 11 Computer Science.
Interactive on Super Tutor
Studying Introduction to Problem Solving? Get the full interactive chapter.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for ncert solutions and more.
1,000+ Class 11 students started this chapter today
9 worked solutions below. Unlock all 18 free in Super Tutor
EXERCISE
1Write pseudocode that reads two numbers and divide one by another and display the quotient.Show solution
INPUT num1
INPUT num2
COMPUTE quotient = num1 / num2
PRINT quotient
```
Not sure why a step works? check your working in Super Tutor
2Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design an algorithm to determine who takes the cake?Show solution
```text
SET P1 = 0, P2 = 0
FOR i = 1 TO 5
INPUT toss
IF toss == 1 THEN
P1 = P1 + 1
ELSE
P2 = P2 + 1
ENDIF
IF P1 == 3 THEN
PRINT "Player 1 wins the cake"
STOP
ELSE IF P2 == 3 THEN
PRINT "Player 2 wins the cake"
STOP
ENDIF
ENDFOR
```
Not sure why a step works? check your working in Super Tutor
3Write the pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25).Show solution
```text
SET num = 10
WHILE num <= 25 DO
PRINT num
num = num + 5
ENDWHILE
```
Not sure why a step works? check your working in Super Tutor
4Give an example of a loop that is to be executed a certain number of times.Show solution
```text
FOR i = 1 TO 5
CLAP
ENDFOR
```
Not sure why a step works? check your working in Super Tutor
5Suppose you are collecting money for something. You need ₹ 200 in all. You ask your parents, uncles and aunts as well as grandparents. Different people may give either ₹ 10, ₹ 20 or even ₹ 50. You will collect till the total becomes 200. Write the algorithm.Show solution
```text
SET total = 0
WHILE total < 200 DO
INPUT amount
total = total + amount
ENDWHILE
PRINT total
```
Not sure why a step works? check your working in Super Tutor
6Write the pseudocode to print the bill depending upon the price and quantity of an item. Also printShow solution
```text
INPUT price
INPUT quantity
COMPUTE bill = price * quantity
PRINT bill
COMPUTE billGST = bill + (5/100) * bill
PRINT billGST
```
Not sure why a step works? check your working in Super Tutor
7Write pseudocode that will perform the following:Show solution
INPUT CS
INPUT Maths
INPUT Physics
COMPUTE aggregate = CS + Maths + Physics
PRINT aggregate
COMPUTE percentage = aggregate / 3
PRINT percentage
```
Not sure why a step works? check your working in Super Tutor
8Write an algorithm to find the greatest among two different numbers entered by the user.Show solution
INPUT num1
INPUT num2
IF num1 > num2 THEN
PRINT num1
ELSE
PRINT num2
ENDIF
```
Not sure why a step works? check your working in Super Tutor
9Write an algorithm that performs the following:Show solution
INPUT number
IF number >= 5 AND number < 15 THEN
PRINT "GREEN"
ELSE IF number >= 15 AND number < 25 THEN
PRINT "BLUE"
ELSE IF number >= 25 AND number < 35 THEN
PRINT "ORANGE"
ELSE
PRINT "ALL COLOURS ARE BEAUTIFUL"
ENDIF
```
Not sure why a step works? check your working in Super Tutor
9 more solved questions in Introduction to Problem Solving
Every remaining exercise is solved step by step in Super Tutor, plus practice quizzes and flashcards for this chapter. Free to start.
Stuck on a step?
Ask Super Tutor AI to explain any solution on this page in a simpler way — free, 24x7.
Ask a Doubt FreeFrequently Asked Questions
What are the important topics in Introduction to Problem Solving for CBSE Class 11 Computer Science?
How to score full marks in Introduction to Problem Solving — CBSE Class 11 Computer Science?
Where can I get free NCERT Solutions for Introduction to Problem Solving Class 11 Computer Science?
Sources & Official References
- NCERT Official — ncert.nic.in
- CBSE Academic — cbseacademic.nic.in
- CBSE Official — cbse.gov.in
- National Education Policy 2020 — education.gov.in
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Introduction to Problem Solving
Practice Quiz
Test yourself with a quick quiz
Important Questions
Practice with board exam-style questions
Revision Notes
Key points for last-minute revision
Formula Sheet
All formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect visually
Study Plan
Step-by-step plan to ace this chapter
Flashcards
Quick-fire cards for active recall
Syllabus
What topics to cover
For serious students
Get the full Introduction to Problem Solving chapter — for free.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan for CBSE Class 11 Computer Science.