Latest Govt Job Notification Sarkari Naukri Employment News 2018

C++ Programming MCQ Questions Answers Download PDF

C++ Programming MCQ Questions Answers Download PDF C Plus Plus Language Test Set

C++ Programming Language MCQ Questions Answers PDF Set Download Solved C Plus Plus Questions

1) A constructor is called whenever

a)an objective is declared

b) an object is used

c)a class is declared

d) a class is used

View Answer

2) Which of the following are procedural languages?

a) Pascal


c) C++

d) C

View Answer

3)C++ was originally developed \by

a) Clocksin and Mellish

b) Donald E Knuth

c) Sir Richard Hadlee

d) Bjarne Stroustrup

View Answer

4)Choose the correct statements regarding i n l I n e function.

a) it speeds up execution

b)  it slows down execution

c) it increases the code size

d) it decreases the code size

View Answer

5) Which of the following is not a storage class supported by C++ ?
a) Register

b) Auto


d) Dynamic

View Answer

6) Which of the following operators cannot be overloaded?

a) >>

b) ?:

c) .

d)  no such operator exists

View Answer

7) A class having no name

a) is not allowed

b) cannot have a constructor

c) cannot have a destructor

d) cannot be passed as an argument

View Answer

8) For a method to be an interface between the outside world and a class, it has to be declared

a) Private

b) protected

c) public

d) external

View Answer

9) Choose the correct statements.

a) A destructor is not inherited

b) A constructor cannot be called explicitly

c) A destructor can be called explicitly

d) A constructor is not inherited

View Answer

10) cout stands for

a) class output

b) character output

c) common output

d) call output

View Answer

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


b) public

c) private

d) none of the above

View Answer

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


b) public

c) private

d) none of the above

View Answer

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


b) inline

c) static

d) extern

View Answer

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

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

b) storage class

c) data type

d) all of the above

View Answer

16)Which of the following cannot be declared static?

b) Objective

c) Functions

d) Member variables

View Answer

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

a) *

b) +


d) &&

View Answer

18) Overloading is otherwise called as

a) virtual polymorphism

b) transient polymorphism

c) pseudo polymorphism

d) ad-hoc polymorphism

View Answer © 2018        Home     About Us     Sitemap     Disclaimer     Privacy Policy     Contact us