BPSC TRE – Programming Fundamentals & OOP Concepts | Test 1

Questions 11-15 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 11

MCQ · Single Correct 1 mark

In C++, what access specifier makes class members accessible to derived classes while keeping them hidden from outside non-member functions?

Answers for question 11

Question 12

MCQ · Single Correct 1 mark

What problem arises in C++ when a derived class inherits from two intermediate classes that both inherit from a single base class?

Answers for question 12

Question 13

MCQ · Single Correct 1 mark

How is the Diamond Problem resolved in C++ to ensure only a single shared copy of the base class exists?

Answers for question 13

Question 14

MCQ · Single Correct 1 mark

Which mechanism in C++ allows a non-member function or outside class to access private and protected members of a class?

Answers for question 14

Question 15

MCQ · Single Correct 1 mark

What is a static data member in C++?

Answers for question 15
Scroll to Top