Page 53 - Modular_V1.1_Flipbook
P. 53

Test Sheet-1


                                                                                     (Based on chapters 1 to 5)

                                                            Section A


                 A.   Tick (3) the correct option.
                      1.  A program is a set of............................ .
                          a.  Statements                                   c.  Characters

                          b.  Symbols                                     d.  Numbers
                      2.  ............................ are reserved words which cannot be used as variable names.
                          a.  Variables                                    c.  Constants
                          b.  Operators                                   d.  Keywords

                      3.  Which of the following is not a category of operators in C++?
                          a.  Arithmetic                                   c.  Relational
                          b.  Logical                                     d.  Scientific

                      4.  Which of the following symbols is used to represent extraction operator?
                          a.  &&                                           c.  <<
                          b.  //                                          d.  >>
                      5.  Who was the developer of C++ language?

                          a.  Bjarne Stroustrup                            c.  Guido Van Rossum
                          b.  Mitchel Resnick                             d.  None of these
                      6.  Which of the following is a symbol used in naming a variable?

                          a.  Underscore ( _ )                             c.   Asterisk ( * )
                          b.  Plus ( + )                                  d.  None of these
                      7.  Which of the following is a combination of variables or values with operators?
                          a.  Relation                                     c.  Condition

                          b.  Operator                                    d.  Expression
                      8.  What will be the output of the following code?
                          if(True)

                          cout<<“Hello”;
                          else
                          cout<<“Hi”;
                          a.  Hello                                        c.  Hello Hi
                          b.  Hi                                          d.  Nothing will print
                      9.  How many words can you take as string by using the cin object?

                          a.  1                                            c.  2
                          b.  3                                           d.  5




                                                                                                   Test Sheet-1   51
   48   49   50   51   52   53   54   55   56   57   58