Object Oriented Programming interview questions part 46

Object Oriented Programming interview questions part 46

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

Total Questions: 20

1. Which among the following is wrong syntax related to static data members?

Correct Answer is : className : dataType -> memberName;

2. Which among the following is correct definition for static member functions?

Correct Answer is : Functions made to maintain single copy of member functions for all objects

3. Which among the following is correct definition for static member functions?

Correct Answer is : Functions made to maintain single copy of member functions for all objects

4. The static member functions __________________

Correct Answer is : Have access to only the static members of a class

5. The static member functions __________________

Correct Answer is : Have access to only the static members of a class

6. The static member functions ____________________

Correct Answer is : Can be called using class name

7. The static member functions ____________________

Correct Answer is : Can be called using class name

8. Which is correct syntax to access the static member functions with class name?

Correct Answer is : className :: functionName;

9. Which is correct syntax to access the static member functions with class name?

Correct Answer is : className :: functionName;

10. Which among the following is not applicable for the static member functions?

Correct Answer is : this pointer

11. Which among the following is not applicable for the static member functions?

Correct Answer is : this pointer

12. Which among the following is true?

Correct Answer is : Static member functions can’t be virtual

13. Which among the following is true?

Correct Answer is : Static member functions can’t be virtual

14. The static members are ______________________

Correct Answer is : Created and initialized only once

15. The static members are ______________________

Correct Answer is : Created and initialized only once

16. Which among the following is true?

Correct Answer is : Static member functions can’t be overloaded

17. Which among the following is true?

Correct Answer is : Static member functions can’t be overloaded

18. The static member functions _______________

Correct Answer is : Can’t be declared const, volatile or const volatile

19. The static member functions _______________

Correct Answer is : Can’t be declared const, volatile or const volatile

20. Which keyword should be used to declare the static member functions?

Correct Answer is : static

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon