MCQ | Object Oriented Programming | Part -1

Object Oriented Programming (C++)

Part-1


1. _______ are the basic run-time entities in object oriented system :




... Answer is A)
objects


2. ______ is user define data type in object oriented programming:




... Answer is B)
Class



3. _____ function declare inside the function




... Answer is B)
local variables



4. _____ function declare outside the function




... Answer is A)
global variables



5. The wrapping up of data and function into single unit is called




... Answer is A)
Inheritance



6. The insulation of the data from direct access by program is called




... Answer is B)
data hiding



7. The process in which the property of one class is acquire by another class is




... Answer is A)
inheritance



8. In object oriented programming concept of reusability is implemented by




... Answer is B)
inheritance



9.The ability to take more than one behaviour in object oriented programming is




... Answer is A)
polymorphism



10.The code is associated with given procedure call at runtime is




... Answer is B)
dynamic binding



11. Which statement is false with respect to object oriented programming




... Answer is C)
it is not possible to map objects in the problem domain to those object in program



12. ___ symbol is used for single line comments




... Answer is A)
//



13. ____ symbol is use for multi line comment.




... Answer is A)
/* */



14. bit-wise left-shift operator is represented as




... Answer is A)
<<



15. << is called




... Answer is C)
insertion or put to operator



16. bit-wise right-shift operator is represented as




... Answer is C)
>>



17. >> is called




... Answer is C)
extraction or get from operator



18. ___ is known as cascading of I/O operators




... Answer is A)
multiple use of bit wise right-shift or left-shift operators in single statement
Hint:
Take multiple input using cin: cin >> var1 >> var2;
For print :cout << var1 << var2;



19. A common structure of any program includes following things




... Answer is A)
include files, class declaration, class functions,main function



20. question




... Answer is B)
answer



21. Choose the extension of file for Turbo,Borland,Zortech,Unix for C++ in sequence




... Answer is B)
.cpp ,.cpp ,.cxx ,.cc



22. The smallest individual units in program is known as:




... Answer is A)
tokens



23. Tokens are known as




... Answer is D)
all the above



24. The name of variables,functions,arrays,classes etc in any program is called




... Answer is B)
identifiers



25. Keywords are called




... Answer is C)
both A and B



26. Run time initialization of variable is called




... Answer is B)
dynamic initialization



27. If we provide alias for a previously defined variable is called




... Answer is C)
reference variable



28. When we provide several meaning of operator depend on their argument is called




... Answer is A)
operator overloading



29. A constructor is called whenever




... Answer is A)
an object is declared



30. A destructor takes




... Answer is D)
zero arguments

No comments:

Post a Comment