C++ interview questions part 48

C++ interview questions part 48

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. What does the size of the vector refers to in c++?

Correct Answer is : The statements runs perfectly

2. Subsequent elements are moved in terms of _____ when an element in inserted in vector?

Correct Answer is : Compile-time Error

3. What is the use of adapter in STL in c++?

Correct Answer is : []

4. Which is used to iterate over container?

Correct Answer is : |=

5. What is a template?

Correct Answer is : 0

6. Pick out the correct statement about string template.

Correct Answer is : 1

7. How to declare a template?

Correct Answer is : 1

8. How many types of templates are there in c++?

Correct Answer is : #ERROR!

9. Which are done by compiler for templates?

Correct Answer is :

10. What may be the name of the parameter that the template should take?

Correct Answer is : ?:

11. How many parameters are legal for non-type template?

Correct Answer is : Error

12. The size of an object or a type can be determined using which operator?

Correct Answer is : Complex Number: 4 + i6

13. It is guaranteed that a ____ has at least 8 bits and a ____ has at least 16 bits.

Correct Answer is : Error

14. Size of C++ objects are expressed in terms of multiples of the size of a ____ and the size of a char is _______

Correct Answer is : Associativity and precedence of operators does not change

15. What would be the output of the following program (in 32-bit systems)? #include using namespace std; int main() { cout << sizeof(char); cout << sizeof(int); cout << sizeof(float); return 0; }

Correct Answer is : bool operator==(Box b);

16. What is meant by template specialization?

Correct Answer is : B2's capacity is small

17. Which is similar to template specialization?

Correct Answer is : Type cast

18. Which is called on allocating the memory for the array of objects?

Correct Answer is : postfix

19. How many types of specialization are there in c++?

Correct Answer is : 749735

20. What is another name of full specialization?

Correct Answer is : 6

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon