| 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. What are the two specializations of I/O template classes in C++?

Correct Answer is : TRUE

2. Can typeid() function be used with the object of generic classes?

Correct Answer is : FALSE

3. The _____________ class is a specialization of a more general template class.

Correct Answer is : time_zone

4. How is function overloading different from template class?

Correct Answer is : 2

5. What if static members are declared inside template classes?

Correct Answer is : rollback

6. What is the output of following program? template void test(const T&x) { static int count = 0; cout << "x = " << x << " count = " << count << endl; ++count; return; }   void main() { test (2); test(2); test(2.2); }

Correct Answer is : Atomicity

7. If template class is defined, is it necessary to use different types of data for each call?

Correct Answer is : Consistency

8. How many generic types can be given inside a single template class?

Correct Answer is : VARCHAR

9. Template classes must have at least one static member.

Correct Answer is : TIME

10. Which is the pointer which denotes the object calling the member function?

Correct Answer is : LINESTRING

11. The this pointer is accessible __________________

Correct Answer is : FALSE

12. An object’s this pointer _____________________

Correct Answer is : TRUE

13. The result of sizeof() function __________________

Correct Answer is : LOAD DATA

14. Whenever non-static member functions are called _______________

Correct Answer is : more efficient

15. Which is the correct interpretation of the member function call from an object, object.function(parameter);

Correct Answer is : –opt

16. The address of the object _________________

Correct Answer is : DELAY_KEY_WRITE

17. Which syntax doesn’t execute/is false when executed?

Correct Answer is : –myisam-recover=FORCE

18. The this pointers _____________________

Correct Answer is : –delay-key-write=ALL

19. Earlier implementations of C++ ___________________

Correct Answer is : –compress

20. This pointer can be used directly to ___________

Correct Answer is : ENABLE KEYS