Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+3 votes
6.7k views
in Computer by (43.0k points)
closed by

NCERT Solutions Class 11, Computer Science, Chapter- 4, Introduction to Problem Solving

To thoroughly grasp this chapter and excel in CBSE exams and competitive tests, utilizing NCERT Solutions is highly recommended. These solutions, crafted by experts in the field, delve into all key concepts covered in the chapter. Specifically designed for the CBSE curriculum, they ensure a comprehensive understanding and invaluable support in your academic endeavors.

In these NCERT Solutions for Class 11 Computer Science, we have discussed all types of NCERT intext questions and exercise questions.

Concepts covered in Class 11 Computer Science chapter- 4 Introduction to Problem Solving, are :

  • Steps for Problem Solving
  • Algorithm
  • Representation of Algorithms
  • Flow of Control
  • Verifying Algorithms
  • Comparison of Algorithm
  • Coding
  • Decomposition

Our NCERT Solutions for Class 11 Computer Science provide detailed explanations to assist students with their homework and assignments. Proper command and ample practice of topic-related questions provided by our NCERT solutions is the most effective way to achieve full marks in your exams. Begin studying right away to ace your exams.

Easily access all solutions and practice questions at your fingertips to kick-start your preparation immediately.

2 Answers

+2 votes
by (43.0k points)
selected by
 
Best answer

NCERT Solutions Class 11, Computer Science, Chapter- 4, Introduction to Problem Solving

1. Write pseudocode that reads two numbers and divide one by another and display the quotient.

Solution:

Input first number
Input second number
Calculate quotient = first number // second number
Print quotient

2. Two 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?

Solution:

Set player1 = 0
Set player2 = 0
For i in range (5):
      Input coin number
      If coin = 1 then
           Player1 += 1
      Elif coin = then
           Player2 += 1

If player1 > 2 then
    Player1 wins

Elif player2 > 2 then
    Player2 wins

3. Write the pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25).

Solution:

For i in range ( 10, 26, 5 ):
       Print i

4. Give an example of a loop that is to be executed a certain number of times.

Solution:

For i in range (10, 26, 5)

It will execute only 3 times.

5. Suppose you are collecting money for something. You need Rs. 200 in all. You ask your parents, uncles and aunts as well as grandparents. Different people may give either Rs. 10, Rs. 20 or even Rs. 50. You will collect till the total becomes 200. Write the algorithm.

Solution:

Set sum = 0
While sum = 200
       Input money obtained
       Sum += money

Print thank you

Algorithm:

1 - Start
2 - Approach to parents, uncle, aunts, and grandparents
3 - Request for money
4 - Collect the given amount
5 - Add the amount received to make sure it is 200
6 - If not reach 200
7 - Again, request from others
8 - If received 200 goals achieved
9 - Stop

6. Write the pseudocode to print the bill depending upon the price and quantity of an item. Also print Bill GST, which is the bill after adding 5% of tax in the total bill.

Solution:

Input Price
Input quantity
Calculate total = price * quantity
Calculate including_GST = total + total*0.05
Print total bill is including_GST

7. Write pseudocode that will perform the following:

a) Read the marks of three subjects: Computer Science, Mathematics and Physics, out of 100

b) Calculate the aggregate marks

c) Calculate the percentage of marks

Solution:

Input marks of computer science
Input marks of mathematics
Input marks of physics

Calculate sum = CS + math + phy
Calculate percentage = ( sum / 300 ) * 100

Print sum
Print percentage

8. Write an algorithm to find the greatest among two different numbers entered by the user.

Solution:

Input first number
Input second number
If first > second then
     Print first number is greater then second

else :
     Print second number is greater than first

9. Write an algorithm that performs the following: Ask a user to enter a number. If the number is between 5 and 15, write the word GREEN. If the number is between 15 and 25, write the word BLUE. if the number is between 25 and 35, write the word ORANGE. If it is any other number, write that ALL COLOURS ARE BEAUTIFUL.

Solution:

Input number

If 5 < number < 15 then
    Print GREEN

elif 15 <  number < 25then
     Print BLUE

elif 25 < number < 35 then
     Print ORANGE

else :
      Print ALL COLOURS ARE BEAUTIFUL.

10. Write an algorithm that accepts four numbers as input and find the largest and smallest of them.

Solution:

Input first number
Input second number
Input third number
Input fourth number

Set lst = [ first , second, third , fourth ]
Sort the lst
lst.sort( )

Print greatest number is lst [ -1 ]
Print smallest number is lst [ 0 ]
+2 votes
by (43.0k points)

11. Write 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:

  • for the first 100 units @ 5 per unit
  • for next 150 units @ 10 per unit
  • more than 250 units @ 20 per unit

Also add meter charges of 75 per month to calculate the total water bill.

Solution:

Input unit

If unit <= 100 then
    Bill = unit * 5

Elif unit <= 150 then
     Bill = unit * 10

Elif unit <= 250 then
     Bill = unit * 20

Calculate total bill = bill + 75
Print total bill

12. What are conditionals? When they are required in a program?

Solution:

In programming, conditionals are used for providing the condition to values, input, and output. There are various conditional statements there to evaluate the expression.

Generally, conditional statements give us an output in the form of true or false which is known as Boolean values.

13. Match the pairs

Flowchart Symbol Functions
rounded box Flow of Control
square Process Step
square Start/Stop of the Process
square Data
arrow Decision Making

Solution:

Flowchart Symbol Functions
rounded box Start/Stop of the Process
square Data
square Process Step
square Decision Making
arrow Flow of Control

14. Following is an algorithm for going to school or college. Can you suggest improvements in this to include other options?

Reach_School_Algorithm

a) Wake up
b) Get ready
c) Take lunch box
d) Take bus
e) Get off the bus
f) Reach school or college

Solution:

  • Wake up

  • Do exercise

  • Brush teeth

  • Take bath

  • Get ready

  • Take lunch box

  • Revise chapters

  • Take bus

  • Get off the bus

  • Reach school or college

15. Write a pseudocode to calculate the factorial of a number (Hint: Factorial of 5, written as 5!=5 4 3 21 ×××× ).

Solution:

Input number
Set Factorial = 1
For i in range ( 1, number + 1) :
       Factorial *= I

Print factorial

16. Draw 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 3**3 + 7**3 + 1**3 = 371.

Solution:

flowchart

17. Following is an algorithm to classify numbers as “Single Digit”, “Double Digit” or “Big”.

Classify_Numbers_Algo

INPUT Number
IF Number < 9
 "Single Digit"
Else If Number < 99
 "Double Digit"
Else
 "Big"

Verify for (5, 9, 47, 99, 100 200) and correct the algorithm if required.

Solution:

The correct algorithm is:

INPUT Number
IF Number < 10
"Single Digit"
  Else If Number < 100
    "Double Digit"
      Else
         "Big"

18. For some calculations, we want an algorithm that accepts only positive integers upto 100.

Accept_1to100_Algo
INPUT Number
IF (0<= Number) AND (Number <= 100)
 ACCEPT
Else
 REJECT

a) On what values will this algorithm fail?

Solution:

If we enter 0 then this algorithm will fail.

b) Can you improve the algorithm?

Solution:

Correct algorithm:

INPUT Number
IF (0 < Number) AND (Number <= 100)
   ACCEPT
   Else
      REJECT

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...