C++ Assignment
C++ Assignment
C++ Assignment
Department of Training
Objective Questions Module
1. An entity representing some characteristics and behaviour is-
a) object
b) class
c) struct
d) none of the above
6. ………… is the ability for a message or data to be processed in more than one form
a) Class
b) Abstraction
c) Polymorphism
d) None of the above
22. The following statement forces the next iteration of the loop to take place
a) break
b) continue
c) goto
d) None of the above
25. The following tells the compiler where the program begins
a) Function prototype
b) Forward declaration of class
c) main()
d) None of the above
29. C++ is
a) Procedural programming language
b) Structural programming language
c) Object oriented programming language
d) None of the above
a) ans=7, y=7
b) ans=8,y=7
c) ans=8,y=8;
d) none of the above
a) inside loop
b) outside loop
c) both (a) & (b)
d) none of the above
49. Which of the following statements regarding function overloading is not true.
a) If is used to handle different data types at one place
b) When making a function call, if no exact match is found, promotion is the only criteria to find a match.
c) The default arguments can not be used instead of overloading
d) Unrelated functions should not be overloaded
91. Which of the following statements regarding operator overloading is not true?
a) New operators cannot be created while overloading
b) The semantics of an operator cannot be changed while overloading
c) Subscript operator([]) can be overloaded
d) None of the above
98. The function that overloads as operator, precedes with the keyword
a) function
b) operator
c) virtual
d) static
Answer Keys :