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

Ans:  Pseudocode:


                      Input finalValue
                      num=1
                      while num<=finalValue do
                           square = num * num
                           Print square
                            num=num+1
                      end-while


                  Flowchart


                                                      Start




                                                  Input final value, f




                                                     num = 1
                                                    square = 0



                                                 Square = num * num




                                                    Print square




                                                   num = num + 1



                                                       Is             Yes
                                                     num<=f




                                                         No


                                                      Stop




                                                     Assessment



            A.  Multiple choice questions
               1.  Which of the following shapes represents a decision box?
                  a.  Square               b. Rounded square      c. Diamond            d. Parallelogram





                                                                                                Problem Solving  107
   104   105   106   107   108   109   110   111   112   113   114