Exam
Adept.com
Home
About Us
Contact
🏠 Home
Oops Concepts
Oops Concepts
Exercise: Oops Concepts
📂 Oops Concepts
✅
Questions for: Oops Concepts
Which of the following provides a reuse mechanism?
A:
Abstraction
B:
Inheritance
C:
Dynamic binding
D:
Encapsulation
Answer:
B
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
What is correct about the static data member of a class?
A:
A static member function can access only static data members of a class.
B:
A static data member is shared among all the object of the class.
C:
A static data member can be accessed directly from
main()
.
D:
Both A and B.
Answer:
D
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Which of the following access specifier is used as a default in a class definition?
A:
protected
B:
public
C:
private
D:
friend
Answer:
C
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Which of the following is used to make an abstract class?
A:
Declaring it abstract using static keyword.
B:
Declaring it abstract using virtual keyword.
C:
Making at least one member function as virtual function.
D:
Making at least one member function as pure virtual function.
Answer:
D
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Which of the following statements is correct in C++?
A:
Classes cannot have data as protected members.
B:
Structures can have functions as members.
C:
Class members are public by default.
D:
Structure members are private by default.
Answer:
B
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Ad Slot (Above Pagination)
1
2
3
4
5
6
7
8
9
10
11
Next ›
Install ExamAdept
Fast access — add this app to your device.
Install
✕
To install on iPhone/iPad: tap Share →
Add to Home Screen
.
Quiz
Discuss About this Question.