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

Periodic Assessment-1

                                                     (Based on chapters 1 & 2)



                 A.   Define the following terms:
                      1.  Menu Bar

                          ...............................................................................................................................................................................................
                          ...............................................................................................................................................................................................

                      2.  Platform Independent
                          ...............................................................................................................................................................................................

                          ...............................................................................................................................................................................................
                      3.  main( )

                          ...............................................................................................................................................................................................
                          ...............................................................................................................................................................................................

                      4.  getch( )
                          ...............................................................................................................................................................................................

                          ...............................................................................................................................................................................................

                 B.   Find the error in the given code and rewrite the correct code.
                        #include<iostream.h>

                       #include<conio.h>
                       void main()

                       cout<<"Welcome to Orange Education"
                        getch();

                      }

                 C.   Match the given data type with their range.

                         Data Types        Range

                      1. short int       a.  -9,223,372,036,854,775,808 to n9,223,372,036,854,775,807

                      2. signed char     b. ~ -3.4028235 × 10³⁸ to ~ 3.4028235 × 10³⁸

                      3. float           c. -32,768 to 32,767

                      4. long double     d. -128 to 127

                      5. long int        e.  ~ -1.189731495357231765 × 10⁴⁹³² to ~ 1.189731495357231765 × 10⁴⁹³²







                                                                                                                  23
                                                                                           Periodic Assessment-1
   20   21   22   23   24   25   26   27   28   29   30