C++ interview questions part 23

C++ interview questions part 23

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

Total Questions: 20

1. which of the following is used to terminate the function declaration?

Correct Answer is : k

2. How many can max number of arguments present in function in the c99 compiler?

Correct Answer is : 1342

3. Which is more effective while calling the functions?

Correct Answer is : 3

4. What is the scope of the variable declared in the user defined function?

Correct Answer is : A derived class’s destructor cannot invoke its base class’s destructor

5. How many minimum number of functions should be present in a C++ program for its execution?

Correct Answer is : both members & functions

6. What does the function objects implement?

Correct Answer is : 54.3R

7. What are the two advantage of function objects than the function call?

Correct Answer is : 45385

8. Which header is need to be used with function objects?

Correct Answer is : Instantiating Base

9. Which are instances of a class with member function operator() when it is defined?

Correct Answer is : Overriding refers to a derived class function that has the same name and signature as a base class virtual function

10. How many parameters does a operator() in a function object shoud take?

Correct Answer is : 2

11. What is a function template?

Correct Answer is : 3

12. Which is used to describe the function using placeholder types?

Correct Answer is : 40

13. What can be passed by non-type template parameters during compile time?

Correct Answer is : enumerators are same as macros

14. From where does the template class derived?

Correct Answer is : integer

15. What are Templates in C++?

Correct Answer is : all of the mentioned

16. In how many ways templates concept can be used?

Correct Answer is : it will not allocate memory

17. What is the difference between normal function and template function?

Correct Answer is : int variable

18. Templates simulate which of the following feature?

Correct Answer is : If you were cat, you would be 2

19. Which keyword is used for the template?

Correct Answer is : 323334

20. What is the correct syntax of defining function template/template functions?

Correct Answer is : 12345

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon