You are on page 1of 1

B.Tech.

(IT and CS)-III Sem


Course Title: Object Oriented Programming Using C++


DiIIerentiate between C and C programming language concepts.
2 plain Iollowing terms: -
a. Classes
b. Objects
c. ncapsulation
d. Polymorphism
e. Inheritance
I. Message Passing
3 $tate whether Iollowing statements are TRU or FAL$.
a. In procedure oriented programming, all data are shared by all Iunctions.
b. The main emphasis oI procedure oriented programming is on algorithms rather than on data.
c. Wrapping up oI data oI diIIerent types into a single unit is known as encapsulation.
d. One problem with OOP is that once a class is created it can never be changed.
e. $ince C is a subset oI C, all C programs will run under C compiler.
4 IdentiIy the error in the Iollowing programs: -
a. # includeiostream.h~
void main(

int i 0;
i i ;
cout i ;
/* comment \* // i i ;
cout i ;
}

b. # includeiostream.h~
void main(

short i 2500, j 3000;
cout ~~ i j ~~ - (i j ;
}

c. cout ;
d. m 5; // n 0; // s m n;
e. cout \n 'name: name;
I. cin ~~ ; ~~ y ;

You might also like