Chapter 4 · Class 11 · CBSE · Science Computer Science
Introduction to Problem Solving
25 practice questions · 5 marks weightage
Topics in this chapter
- Problem Analysis and Specification
- Algorithm Design and Properties
- Flowcharts and Pseudocode
- Control Structures and Logic
- Debugging and Error Types
- Testing and Dry Runs
Cheat sheet
Cheat SheetPractice questions
- Question 1Q-5B1BBESee the answer and solution
Which sequence best represents the main stages of solving a programming problem?
- A.Understand and analyse the problem, design an algorithm, implement it, and test and debug the solution
- B.Write code first, define the problem later, and skip testing
- C.Test the program, draw a flowchart, understand the output, and then define the input
- D.Choose programming language, print results, and then identify the problem
- Question 2Q-640FE5See the answer and solution
Consider the following pseudocode: set n to 5; while n > 0, display n. Which essential property of an algorithm is not satisfied?
- A.Input
- B.Definiteness
- C.Finiteness
- D.Effectiveness
- Question 3Q-B47E0CSee the answer and solution
Explain how problem decomposition helps in solving a programming problem. Use the task of preparing a student's result as an example and mention at least two smaller subtasks.
- Question 4Q-AE9AF2See the answer and solution
Which statement correctly describes an algorithm?
- A.A collection of random instructions that may or may not terminate
- B.A finite, ordered set of unambiguous steps for solving a problem
- C.A programming language used to write computer programs
- D.A flowchart symbol used only for input
- Question 5Q-2C91ECSee the answer and solution
Consider the following pseudocode for finding the largest of three numbers: read a, b, c; largest = a; if b > largest then largest = b; if c > largest then largest = c; display largest. If the second if statement is replaced by an else-if connected to the first if statement, what problem can occur?
- A.The value of a can never be used as the initial largest value
- B.The algorithm will always display the smallest number
- C.The comparison with c may be skipped even when c is the largest number
- D.The algorithm will become an infinite loop
20 more questions on Introduction to Problem Solving
Sign up free to practise the full chapter. Questions you get wrong come back until you've mastered them.
Start practising freeFree to start · No credit card needed