Worksheets › Class 11 › Introduction to Problem Solving
Class 11 · Computer Science worksheetIntroduction to Problem Solving
CBSE Computer Science. Steps of problem solving, algorithms, flowcharts and pseudocode, tracing and verifying, comparing algorithms, decomposition. Every sheet has 20 questions in three sections and an answer key, and the questions change every time.
Sample questions
Real questions from this chapter, as the app sets them. Tap Answer to see the answer and working.
Section A · multiple choice
- 1.
Which is the first step in solving a problem with a computer?
- testing
- debugging
- coding
- analysing the problem
Answer
(d) analysing the problem
- 2.
What does this pseudocode print? 1 INPUT N (N = 32) 2 SET S = 0 3 SET I = 3 4 WHILE I <= N 5 SET S = S + I 6 SET I = I + 3 7 END WHILE 8 PRINT S
- 165
- 135
- 198
- 166
Answer
(a) 165
I takes the values 3, 6, 9, 12, 15, 18, 21, 24, 27, 30
- 3.
How many times does the loop run? 1 SET P = 1 2 SET C = 0 3 WHILE P < 70 4 SET P = P * 3 5 SET C = C + 1 6 END WHILE 7 PRINT C, P
- 3
- 5
- 23
- 4
Answer
(d) 4
P: 1, 3, 9, 27, 81
Section B · short answer
- 4.
List the steps of problem solving in order.
Answer
Analyse the problem, develop an algorithm, code it, then test and debug the program.
- 5.
What does this pseudocode print? 1 INPUT N (N = 417588) 2 SET R = 0 3 WHILE N > 0 4 SET R = R + 1 5 SET N = N DIV 10 6 END WHILE 7 PRINT R
Answer
6
the number of digits
Section C · long answer
- 6.
Explain the steps of problem solving with the example of finding the average marks of a class.
Answer
Analyse: inputs are the marks, output the average; algorithm: add all marks, divide by the count; code it; test with known marks and debug any error.
Fresh sheets for your child
In the app, every Introduction to Problem Solving sheet is new: the app remembers the questions your child has already had and leaves them out. Print the sheet as a PDF, or use notebook mode and write the answers in a notebook.
Coming soon for Android and iPhone.