Page 111 - Computer Science Class 11 With Functions
P. 111

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.
            D.  Answer the following questions:
               1.  What do you mean by the term problem-solving cycle?
               2.  Write any three characteristics of an algorithm.
               3.  Write a pseudocode to read two numbers, multiply them and display the result.
               4.  Write a pseudocode that reads two numbers and find the larger of the two numbers.
               5.  Write pseudocode that will perform the following:
                  a.  Input the marks of four subjects: Computer Science, Physics, Chemistry, and Mathematics out of 100
                  b.  Calculate the aggregate marks
                  c.  Calculate the percentage
               6.  Draw a flowchart to read two numbers from the user and find the greatest common divisor of the two numbers.
               7.  Write a pseudocode to check whether a number is prime or not.
               8.  Draw  a  flowchart  to  accept  a  number  and  check  whether  it  is  an  Armstrong  number  or  not.  If  a  number  has  p
                  digits,  then  it  is  an  Armstrong  number  if  the  sum  of  its  digits  raised  to  the  power  p  is  equal  to  the  number  itself.
                                   4
                  For example, 9474 = 9 + 4 + 7 + 4 .
                                       4
                                              4
                                          4
               9.  Write an algorithm to display the sum of the first 10 even numbers.
              10.  Write an algorithm to display the number of digits in a number.
              11.  Draw a flowchart to display the sum of digits of a number.
              12.  Match the following flowchart symbols functions:
                                       Flowchart Symbols                     Functions

                                                                             Decision



                                                                             Start/Stop


                                                                              Process


              13.  The following table shows the average monthly expenditure per person on items of consumption in rural India. For example,
                  Rice and wheat in rural areas at 25% means that for every 100 rupees spent, rupees 25 goes towards the purchase of rice
                  and wheat alone.

                                                   Items                       Rural
                                               Rice and wheat                  25.0

                                           Pulses and their products            5.7
                                            Milk and milk products             17.4
                                             Vegetables and fruits             15.1

                                              Meat, fish and eggs               6.3
                                                   Sugar                        3.3
                                                Salt and spices                10.8
                                               Other food items                16.5

                                                Total: All food                100


                                                                                                Problem Solving  109
   106   107   108   109   110   111   112   113   114   115   116