| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

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

Total Questions: 20

1. How many types of linkages are there in C++?

Correct Answer is : First Distance : 1110

2. To use internal linkage we have to use which keyword?

Correct Answer is : 2614

3. Which one is used to refer to program elements in any translation units?

Correct Answer is : 2614

4. What will be the output of these two programs? 1. #ifndef Exercise_H #define Exercise_H int number = 842; #endif 2. #include #include "exe.h" using namespace std; int main(int argc, char * argv[] ) { cout << number++; return 0; }

Correct Answer is : 55, 106, 156

5. What is the default type of linkage that is available for identifiers?

Correct Answer is : 55, 106, 156

6. To use external linkage we have to use which keyword?

Correct Answer is : c2=(9.7,8)

7. Which is used to use a function from one source file to another?

Correct Answer is : c2=(9.7,8)

8. What is the use of no linkage?

Correct Answer is : non-static member function

9. What is the main feature of locale in C++?

Correct Answer is : non-static member function

10. Which objects information is loaded in locale object?

Correct Answer is : 102.5

11. How many categories are available in facets?

Correct Answer is : 102.5

12. What kind of locale does every program is having in C++?

Correct Answer is : 127

13. What will the monetary facet will do?

Correct Answer is : call by reference

14. which keyword is used to define the macros in c++?

Correct Answer is : compile time error

15. Which symbol is used to declare the preprocessor directives?

Correct Answer is : 10

16. How many types of macros are there in c++?

Correct Answer is : only inside the {} block

17. What is the mandatory preprocessor directive for c++?

Correct Answer is : 1

18. What is the other name of the macro?

Correct Answer is : 335

19. Which keyword is used to declare the min and max functions?

Correct Answer is : odd

20. What kind of functions are min and max in c++?

Correct Answer is : 3