Time left:

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


1. ► string in C++ is just a char array with NULL termination

A.
B.

2. ► Which of the following function can be used for locating a subtring

A.
B.
C.

3. ► Like set, bitset also has iterators to find all the bits

A.
B.

4. ► Callbacks help to process objects without being part of corresponding classes

A.
B.

5. ► Template compilation is slow because of:

A.
B.
C.

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

A.
B.
C.

7. ► Operator overloading allows to write common operator definition of user defined classes

A.
B.

8. ► Unittests are typically done at class level

A.
B.

9. ► While creating an object of a derived class, only its constructor is called. Base class has no role to play.

A.
B.

10. ► Operator ‘+’ is allowed on C++ string

A.
B.

11. ► Operator overloading works only on pass by value

A.
B.

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

A.
B.

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

A.
B.

14. ► string comparison is as efficient as number comparison

A.
B.

15. ► Templates are used for making a function or a class type agnostic

A.
B.


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