Page 122 - Computer Science V2.0 Class 11
P. 122

Assessment



              A.  Multiple choice questions.
                 1.  Which of the following shapes represents a decision box?
                    a.  Square               b. Rounded square      c. Diamond            d. Parallelogram
                 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.                                   _________

               108   Touchpad Computer Science (Ver. 2.0)-XI
   117   118   119   120   121   122   123   124   125   126   127