Core9X
Log inSign up

MBOSE Class XI Computer Science · Chapter 4

Introduction to Problem Solving

Opening soon

How to break a problem into clear steps, write them as an algorithm in pseudocode or a flowchart, and check that they work before writing any program.

15 lessons · 60 practice questions

See classes open nowLog inMBOSE Class XI opens to new students soon.

What this chapter covers

  • Steps for problem solving (analysing the problem, developing an algorithm, coding, testing and debugging)
  • Representation of algorithms using flowcharts and pseudocode
  • Flow of control (sequence, selection, iteration)
  • Verifying and comparing algorithms
  • Decomposition

Key terms

Algorithm

Finite, ordered list of clear steps to solve a problem

Pseudocode

Plain-English description of an algorithm

Flowchart

Diagram of an algorithm using symbols and arrows

Sequence

Steps run one after another

Selection

Choosing between paths by a condition

Iteration

Repeating steps

Dry run

Working an algorithm by hand with sample values

Bug / debugging

An error / removing errors

Decomposition

Breaking a problem into smaller parts

Complexity

Time and space an algorithm needs

Important questions with answers

10 of the 60 questions on this chapter, solved.

  1. Question 1 · Multiple choice · 1 mark

    The first step of problem solving is

    • (a) coding
    • (b) testing
    • (c) analysing the problem
    • (d) debugging

    Answer: (c) analysing the problem

    You must understand input, process and output before anything else.

  2. Question 2 · Multiple choice · 1 mark

    Pseudocode is

    • (a) a language a computer runs
    • (b) plain-English steps of an algorithm
    • (c) a compiler
    • (d) a flowchart symbol

    Answer: (b) plain-English steps of an algorithm

    It is a design aid, not executable.

  3. Question 3 · Multiple choice · 1 mark

    Which keyword begins a selection in pseudocode?

    • (a) WHILE
    • (b) IF
    • (c) PRINT
    • (d) INPUT

    Answer: (b) IF

    IF.

  4. Question 4 · Multiple choice · 1 mark

    Which loop never ends?

    • (a) nested
    • (b) conditional
    • (c) counting
    • (d) infinite

    Answer: (d) infinite

    The condition never becomes false.

  5. Question 5 · Assertion and reason · 1 mark

    Assertion (A): An algorithm must be finite.

    Reason (R): A procedure that never ends cannot give a result.

    • (a) Both A and R are true, and R is the correct explanation of A.
    • (b) Both A and R are true, but R is not the correct explanation of A.
    • (c) A is true, but R is false.
    • (d) A is false, but R is true.

    Answer: (a) Both A and R are true, and R is the correct explanation of A.

    R explains A.

  6. Question 6 · Short answer · 1 mark

    What is the output of "INPUT 4; COMPUTE r = 4 * 4"?

    Answer

    r = 16.

  7. Question 7 · Short answer · 2 marks

    Write two characteristics of a good algorithm.

    Answer

    It is finite and its steps are clear and unambiguous (also produces the correct output).

  8. Question 8 · Short answer · 3 marks

    Write an algorithm to find the average of three numbers and trace it for 10, 20, 30.

    Answer

    INPUT a, b, c; avg = (a + b + c) / 3; PRINT avg; avg = 60/3 = 20.

  9. Question 9 · Long answer · 5 marks

    Explain the steps of problem solving with an example.

    Answer

    Section 1.1.

  10. Question 10 · Long answer · 5 marks

    Explain sequence, selection and iteration with pseudocode examples.

    Answer

    Section 1.4.

Study the whole chapter

15 step-by-step lessons, all 60 practice questions with hints, flashcards and mock tests for MBOSE Class XI Computer Science.

See classes open nowLog inMBOSE Class XI opens to new students soon.
Introduction to Problem Solving: MBOSE Class 11 Computer Science notes, important questions and answers · Core9X