Exam
Adept.com
Home
About Us
Contact
🏠 Home
Oops Concepts
Oops Concepts
Exercise: Oops Concepts
📂 Oops Concepts
✅
Questions for: Oops Concepts
Which one of the following options is correct?
A:
Friend function can access public data members of the class.
B:
Friend function can access protected data members of the class.
C:
Friend function can access private data members of the class.
D:
All of the above.
Answer:
D
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Which of the following is an invalid visibility label while inheriting a class?
A:
public
B:
private
C:
protected
D:
friend
Answer:
D
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Which one of the following is correct about the statements given below?
All function calls are resolved at compile-time in Procedure Oriented Programming.
All function calls are resolved at compile-time in OOPS.
A:
Only II is correct.
B:
Both I and II are correct.
C:
Only I is correct.
D:
Both I and II are incorrect.
Answer:
C
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Which inheritance type is used in the class given below?
class A : public X, public Y
{}
A:
Multilevel inheritance
B:
Multiple inheritance
C:
Hybrid inheritance
D:
Hierarchical Inheritance
Answer:
B
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
What will happen if a class is not having any name?
A:
It cannot have a destructor.
B:
It cannot have a constructor.
C:
It is not allowed.
D:
Both A and B.
Answer:
D
No answer description is available.
Let's discuss.
Discuss About this Question.
Post
Ad Slot (Above Pagination)
‹ Prev
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.