Time left:

[All Quizzes] → [Programming With C++] → [Introduction to C++, Classes and Objects]


1. ► Variables with same name can exist in multiple namespaces

A.
B.

2. ► By default, all members of a class are public

A.
B.

3. ► Indenting code doesn’t help improving readability

A.
B.

4. ► C++ is a loosely typed language

A.
B.

5. ► ‘this’ can be used within the class to access its own pointer

A.
B.

6. ► Hello world refers to first program written by a programmer

A.
B.

7. ► -static option helps in reducing size of executable

A.
B.

8. ► Reference can exist without an object

A.
B.

9. ► Which of the following gcc option converts warnings into errors

A.
B.
C.
D.

10. ► Hiding reduces the possibility of side-effects

A.
B.

11. ► Which of the following options helps in searching libraries

A.
B.
C.

12. ► A scope is resolved through ‘.’ operator

A.
B.

13. ► Derived classes can access protected members of the base class

A.
B.

14. ► Exceptions are available in C++

A.
B.

15. ► C++ allows easy data initialization through constructors

A.
B.

16. ► Defining a class will result in creating an object of this class in the program

A.
B.

17. ► By default everything is in std namespace

A.
B.

18. ► External symbols are resolved by tool:

A.
B.
C.
D.

19. ► gdb can debug programs compiled with -O2 option

A.
B.

20. ► Which of the following tools cannot be used as debugger

A.
B.
C.


© 2016 VirtuQ™ Education All right reserved. | Terms of Use | Privacy Policy