C++ interview questions part 41

C++ interview questions part 41

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

Total Questions: 20

1. What is the header file for vector permutation?

Correct Answer is : prototype

2. How many parameters are required for next_permutation?

Correct Answer is : make the entity visible only to that block

3. To which does the function pointer point to?

Correct Answer is : Portability

4. What will we not do with function pointers?

Correct Answer is : facet object

5. What is the default calling convention for a compiler in c++?

Correct Answer is : 6

6. What is the mandatory part to present in function pointers?

Correct Answer is : 65535

7. which of the following can be passed in function pointers?

Correct Answer is : global locale

8. What is the meaning of the following declaration? int(*ptr[5])();

Correct Answer is : Handle formatting and parsing of monetary values

9. The void pointer can point to which type of objects?

Correct Answer is : #define

10. When does the void pointer can be dereferenced?

Correct Answer is : #

11. The pointer can point to any variable that is not declared with which of these?

Correct Answer is : 2

12. A void pointer cannot point to which of these?

Correct Answer is : #include

13. What we can’t do on a void pointer?

Correct Answer is : scripted directive

14. What does the following statement mean? int (*fp)(char*)

Correct Answer is : algorithm

15. The operator used for dereferencing or indirection is ____

Correct Answer is : Type specific

16. Choose the right option     string* x, y;

Correct Answer is : All of the mentioned

17. Which one of the following is not a possible state for a pointer.

Correct Answer is : 2z

18. Which of the following is illegal?

Correct Answer is : 45331

19. What will happen in this code? int a = 100, b = 200; int *p = &a, *q = &b; p = q;

Correct Answer is : 45357

20. The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is

Correct Answer is : 3 and 6

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon