Question 1: C++ OOPS Static Data Member
Which statement is true about static data members in C++?
Question 2: C++ OOPS Static Member Function
Which of the following is true about static member functions?
Question 3: C++ OOPS Static Variable in Class
What will be the output?
Question 4: C++ OOPS Static Member Initialization
Where must static data members of a class be defined?
Question 5: C++ OOPS Static Member Function Call
How can a static member function be called?
Question 6: C++ OOPS Static Member and Object Lifetime
What happens to static members when all objects of the class are destroyed?
Question 7: C++ OOPS Static Function Limitation
Which of the following is NOT allowed in static member functions?
Question 8: C++ OOPS Static Variable Behavior
What will be the output?
Question 9: C++ OOPS Static Member Access
Which of the following is the correct way to access a static variable of a class `Sample` named `count`?
Question 10: C++ OOPS Static vs Non-Static Member
What will be the output?