Page 110 - Computer Science Class 11 Without Functions
P. 110

2.  Which of the following is NOT true about an algorithm?
              a.  It is a step-by-step solution to a given problem.
              b.  It must be terminated after a certain number of steps.
              c.  Each step of an algorithm must be executable.
              d.  An algorithm is written for a particular programming language only.
           3.  Which of the following is the first step of the problem-solving cycle?
              a.  Coding
              b.  Problem Analysis
              c.  Testing and Debugging
              d.  Program Design
           4.  Which of the following are used to represent an algorithm?
              a.  Pseudocode only
              b.  Flowchart only
              c.  Both pseudocode and flowchart
              d.  Neither pseudocode nor flowchart
           5.  Consider the following pseudocode:
              s = 1
              result = 1
              while s <10
                  result = result * s
                  s = s + 1
                  print result
              end-while
              Which of the following is the correct output for the given pseudocode?
              a.  1 * 2 * 3 *...* 9
              b.  1,   1 * 2,    1 * 2 * 3,   …,   1 * 2 * 3 * …. * 9
              c.  1 * 2 * 3 *...* 10
              d.  1,   1*2,   1*2*3,   …,   1*2*3*...*10
           6.  If a problem is too complex, you would need to divide it into subproblems, solve each subproblem, and combine the solutions
              to the individual problems to solve the original problem. This method of problem-solving is called the _____________.
              a.  Procedural programming approach
              b.  Modular approach
              c.  Functional Programming
              d.  Interpreter-based programming

        B.  State whether the following statements are True or False:
           1.  A computer understands the machine language.                                             _________
           2.  An algorithm can be executed using a compiler.                                           _________
           3.  In the case of flowchart, the symbols used for the process box and input/output box are similar.   _________
           4.  Every flowchart must begin with a Start box.                                             _________
           5.  Pseudocode is independent of any programming language.                                   _________
        C.  Fill in the blanks.
           1.  The two ways to represent an algorithm are ____________ and ____________.
           2.  The sequence of instructions written in a programming language to solve a particular problem is called a ____________.
           3.  A _________________ looks like a code written in a programming language.
           4.  In a problem-solving cycle, the bugs are identified and removed during __________ phase.

         108   Touchpad Computer Science-XI
   105   106   107   108   109   110   111   112   113   114   115