C++ Classes Quiz - 2
Question: 7
The members declared as ____ can only be accessed within the class.
(A) Private
(B) Public
(C) Protected
(D) Class
Ans: A
Private
Question: 8
Class comprises ____
(A) Data members
(B) Member functions
(C) Both (a) and (b)
(D) None of these
Ans: C
Both (a) and (b)
Question: 9
When objects of a class are created, separate memory is allocated for?
(A) Member functions only
(B) Member variables only
(C) Both a and b
(D) Neither functions nor variables
Ans: B
Member variables only
Question: 10
The class access specifier used to access friend function is ____
(A) Private
(B) Public
(C) Protected
(D) Both (b) and (c)
Ans: B
Public
Related Questions
Recent Articles
ECE Interview Questions and Answers Pdf More
Control System Questions and Answers Pdf More
GATE Analog Electronics MCQ Questions and Answers More
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
May-05-2024
| Meritnotes
Control System Questions and Answers Pdf More
May-04-2024
| Meritnotes
GATE Analog Electronics MCQ Questions and Answers More
May-03-2024
| Meritnotes
Analog Electronics Questions Pdf Download with Answers More
May-02-2024
| Meritnotes
Engineering Materials Science MCQ Questions & Answers More
May-01-2024
| Meritnotes
Material Science MCQ Questions Pdf Download More
April-30-2024
| Meritnotes
Trending Posts
Switchgear and Protection Objective Questions & Answers Pdf More
7000+ SSC MTS Geography Previous Year Questions More
Java 9 Interview Questions for 1,2,3,4,5,6,7,8,9,10 Years Experience More
1000+ SBI Computer Papers with Answers Pdf More
Digital Logic Families Gk Quiz Questions and Answers More
1000+ Computer Awareness MCQ with Answers Pdf More
November-11-2022
| Meritnotes
7000+ SSC MTS Geography Previous Year Questions More
July-10-2023
| Meritnotes
Java 9 Interview Questions for 1,2,3,4,5,6,7,8,9,10 Years Experience More
August-28-2019
| Meritnotes
1000+ SBI Computer Papers with Answers Pdf More
April-28-2022
| Meritnotes
Digital Logic Families Gk Quiz Questions and Answers More
November-03-2020
| Meritnotes
1000+ Computer Awareness MCQ with Answers Pdf More
July-12-2022
| Meritnotes