Page 74 - Modular_V1.1_Flipbook
P. 74
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
........………………………………………………………………………………………………………………………………………………
........………………………………………………………………………………………………………………………………………………
72 Touchpad MODULAR (Version 1.1)-X

