Question: 1. What does your class can hold? a. data b. functions c. both data & functions d. none of the mentioned 2. How many

1. What does your class can hold? a. data b. functions c. both data & functions d. none of the mentioned 2. How many specifiers are present in access specifiers in class? a. 1 b. 2 c. 3 d. 4 3. Which is used to define the member of a class externally? a. : b. :: c. # d. none of the mentioned 4. Which of the following is a valid class declaration? class A { int x; }; a. b. class B {} c. public class A {} d. object A { int x; }; 5. The fields in the class in C++ program are by default a. protected b. private c. public d. none of the mentioned 6. When struct is used instead of the keyword class means, what will happen in the program? a. access is public by default b. access is private by default c. access is protected by default d. none of the mentioned 7. A constructor that accepts.........parameters is called the default constructor. a) one b) two c) three d) no 8. Destructor has the same name as the constructor and it is preceded by....... a) ! b) ? c) ~ d) $ 9. A Constructor that does not have any parameters is called...........constructor. a) Custom b) Dynamic c) Static d) Default
Step by Step Solution
3.50 Rating (180 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below 1 cboth data and functio... View full answer
Get step-by-step solutions from verified subject matter experts
