| 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. Private member functions can be overloaded.

Correct Answer is : TIMESTAMP

2. Which data member in following code will be used whenever an object is created? Class A { int x; int y; int z; public : A() { y=100; x=100*y; } };

Correct Answer is : NO_ZERO_IN_DATE

3. Which member can be considered most secure in the code below? class A() { int a; private : int b; protected : int c; public : int d; };

Correct Answer is : PAD_CHAR_TO_FULL_LENGTH

4. Which among the following is correct for the code given below? class A { private : A() { } public : A(int x) { } }; A a; A b(100);

Correct Answer is : TRUE

5. Which is private member functions access scope?

Correct Answer is : methods

6. Which member can never be accessed by inherited classes?

Correct Answer is : $fh

7. Which syntax among the following shows that a member is private in a class?

Correct Answer is : $dbh

8. If private member functions are to be declared in C++ then _____________

Correct Answer is : more than 1

9. In java, which rule must be followed?

Correct Answer is : CHARSET

10. How many private member functions are allowed in a class ?

Correct Answer is : USE

11. How to access a private member function of a class?

Correct Answer is : TRUE

12. Private member functions ____________

Correct Answer is : –enable-local-infile

13. Which function among the following can’t be accessed outside the class in java in same package?

Correct Answer is : key cache

14. If private members are to be called outside the class, which is a good alternative?

Correct Answer is : 2

15. A private function of a derived class can be accessed by the parent class.

Correct Answer is : FALSE

16. Which error will be produced if private members are accessed?

Correct Answer is : column name

17. Can main() function be made private?

Correct Answer is : table name

18. If a function in java is declared private then it __________________

Correct Answer is : NO_BACKSLASH_ESCAPES

19. Which among the following best describes the protected specifier?

Correct Answer is : 65536

20. If a constructor is defined in protected access, then.

Correct Answer is : abcd and 1633837924