Page 23 - Modular_V1.1_Flipbook
P. 23
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. -2,147,483,648 to 2,147,483,647
2. signed char b. -3.40282e+38 to 3.40282e+38
3. float c. -32,768 to 32,767
4. long double d. -128 to 127
5. long int e. 3.3621e-4932 to 1.18973e+4932
Periodic Assessment-1 21

