Page 13 - Modular_V1.1_Flipbook
P. 13

Line 5 contains cout<< object. The cout<< object is used to print messages on the output
                 screen. The message to be printed should be enclosed in double quotes. In this case, we have
                 printed Hello World message. At the end of the Line 5, semicolon is used to terminate the line.
                 It is also called terminator. In C++, it is necessary to terminate each statement of a program by
                 putting the semicolon at the end.

                 Line 6 contains getch( ) function. The getch( ) function is used to take an input from the output
                 window during runtime. It keeps the output window open until you press any key from the
                 keyboard.
                 Line 7 contains closing curly brace ( } )  to close the body of the main function.
                    Recap



                        C++ is a general-purpose and object-oriented programming language developed by Bjarne
                        Stroustrup at AT&T Bell Labs.
                       C++ supports multiple platforms which means the program developed on Windows operating
                        system works similarly over different operating systems.
                       Turbo C++ is a programming platform to develop C++ programs.
                       After saving a program, you need to compile the program to check whether it contains any
                        warnings or errors.


                                                        Exercise



                 A.   Tick ( ) the correct option.

                      1.  Who is the developer of C++ language?
                          a.  Bjarne Stroustrup                            c.  Guido Van Rossum
                          b.  Mitchel Resnick                             d.  None of these

                      2.  Which of the following was the first name of C++ language?
                          a.  C with Classes                               c.  C++ with classes
                          b.  C language                                  d.  C++20

                      3.  Which of the following statements is correct in the context of C++?
                          a.  C++ is a high-level programming language.
                          b.  C++ supports multiple platforms.
                          c.  C++ is a compiler-based language.

                          d.  All of these
                      4.  In which year, the C++ language was initially standardized?

                          a.  1979                                         c.  1978
                          b.  1998                                        d.  1997
                      5.  A program is a set of……………………………. .
                          a.  Statements                                   c.  Characters

                          b.  Symbols                                     d.  Numbers


                                                                                              Introduction to C++  11
   8   9   10   11   12   13   14   15   16   17   18