Time left:

[All Quizzes] → [Programming With C++] → [Random - All Topics]


1. ► Templates can be used to provide compile time constraints

A.
B.

2. ► list<T>::empty is more efficient than list<T>::size

A.
B.

3. ► Assertions have no place in unittesting

A.
B.

4. ► Templates allow optimizations because of:

A.
B.
C.

5. ► stringstream can be used to insert values of various basic types into a string

A.
B.

6. ► Which of the following classes is output stream in C++

A.
B.
C.

7. ► Indenting code doesn’t help improving readability

A.
B.

8. ► Factory pattern helps in memory management by centralized object creation

A.
B.

9. ► static_cast makes use of run-time information

A.
B.

10. ► Templates are mostly used for generic containers

A.
B.

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

A.
B.

12. ► Reference can exist without an object

A.
B.

13. ► Test fixture provides test parameters

A.
B.

14. ► Only one object of a singleton class is allowed

A.
B.

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

A.
B.


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