Skip to main content
Chapter 4 of 11
NCERT Solutions

Introduction to Problem Solving

CBSE · Class 11 · Computer Science

NCERT Solutions for Introduction to Problem Solving — CBSE Class 11 Computer Science.

45 questions92 flashcards5 concepts

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

18 Questions Solved · 1 Section

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
```text
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
Let P1 and P2 store the number of wins of player 1 and player 2.

```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
Multiples of 5 between 10 and 25 are 10, 15, 20, 25.

```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
An example is clap your hands five times.

```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
Use a running total and keep collecting until it reaches 200.

```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
From the chapter, the bill should be printed from price and quantity, and then Bill GST is the bill after adding 5% tax.

```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
```text
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
```text
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
```text
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

10Write an algorithm that accepts four numbers as input and find the largest and smallest of them.
11Write an algorithm to display the total water bill charges of the month depending upon the number of units consumed by the customer as per the following criteria:
12What are conditionals? When they are required in a program?
13Match the pairs
14Following is an algorithm for going to school or college. Can you suggest improvements in this to include other options?
15Write a pseudocode to calculate the factorial of a number (Hint: Factorial of 5, written as 5!=5×4×3×2×1).
16Draw a flowchart to check whether a given number is an Armstrong number. An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 33 + 73 + 1**3 = 371.
17Following is an algorithm to classify numbers as “Single Digit”, “Double Digit” or “Big”.
18For some calculations, we want an algorithm that accepts only positive integers upto 100.

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 Free

Frequently Asked Questions

What are the important topics in Introduction to Problem Solving for CBSE Class 11 Computer Science?
Introduction to Problem Solving covers several key topics that are frequently asked in CBSE Class 11 board exams. Focus on the core concepts listed on this page and practise related questions to build confidence.
How to score full marks in Introduction to Problem Solving — CBSE Class 11 Computer Science?
Understand the core concepts first, then work through the 45 practice questions available for this chapter. Revise formulas and definitions regularly, and use flashcards for quick recall before the exam.
Where can I get free NCERT Solutions for Introduction to Problem Solving Class 11 Computer Science?
This page has free step-by-step NCERT Solutions for every exercise question in Introduction to Problem Solving (CBSE Class 11 Computer Science) — written the way examiners award marks: given, formula, working, answer.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.

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.