C++ Programming MCQ Questions Answers Download PDF


11) The fields in a structure of a C program are by default

a)protected

b) public

c) private

d) none of the above

View Answer
Option – c)


12) The fields in a class, of a C++ Program are by default

a)protected

b) public

c) private

d) none of the above

View Answer
Option – c)


13) Which of the following specifiers need not be announced by the compiler?

a)register

b) inline

c) static

d) extern

View Answer
Option – a,b)


14) Which of the following decides if a function that is declared inline is indeed going to be treated inline in the executable code ?

a) Compiler

b) Linker

c) Loader

d) Preprocessor

View Answer
Option – a)


15) At what point of time a variable comes into existence in memory is determined by its
a)scope

b) storage class

c) data type

d) all of the above

View Answer
Option – b)


16)Which of the following cannot be declared static?
a)Class

b) Objective

c) Functions

d) Member variables

View Answer
Option – a,b)


17)  The order in which operands are evaluated in an expression is predictable if the operator is

a) *

b) +

c)%

d) &&

View Answer
Option – d)


18) Overloading is otherwise called as

a) virtual polymorphism

b) transient polymorphism

c) pseudo polymorphism

d) ad-hoc polymorphism

View Answer
Option – d)

All The Best!!