Page 59 - Modular_V2.0_C++_Flikpbook
P. 59

Test Sheet-1


                                                                                     (Based on chapters 1 to 5)

                                                            Section A


                 A.   Tick ( ) the correct option.
                      1.  A program is a set of.............................
                          a.  Statements                               b.  Symbols

                          c.  Characters                               d.  Numbers
                      2.  ............................  are  special  words  in  C++  that  have  a  fixed  meaning  and  cannot  be  used  as
                          variable names.
                          a.  Variables                                b.  Operators
                          c.  Constants                                d.  Keywords

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

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

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

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

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

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

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

                                                                                                                  57
                                                                                                   Test Sheet-1
   54   55   56   57   58   59   60   61   62   63   64