Page 86 - Modular_V2.0_C++_Flikpbook
P. 86
Periodic Assessment-3
(Based on chapters 6 & 7)
A. Write the output of the following program:
#include<iostream.h>
#include<conio.h>
void main()
{
int counter;
clrscr();
for(counter = 1; counter <= 10; counter++)
{
cout<< counter << " ";
}
getch();
}
B. Write a program to print the following pattern using while loop:
*
* *
* * *
* * * *
* * * * *
C. Define the following:
1. Polymorphism
........………………………………………………………………………………………………………………………………………………
........………………………………………………………………………………………………………………………………………………
2. Object
........………………………………………………………………………………………………………………………………………………
........………………………………………………………………………………………………………………………………………………
3. Encapsulation
........………………………………………………………………………………………………………………………………………………
........………………………………………………………………………………………………………………………………………………
84
Touchpad MODULAR (Ver. 2.0)

