Class 12
Computer Science
Computer Theory
Chapter 1:Programming in C++
(30 Marks)
Chapter Content Overview
- PDF Notes: 0
- MCQs: 2
- Fill in the Blanks: 0
- Short Answers: 0
- Long Answers: 0
Study Topics & Notes
3 Topic(s)1. Multiple Choice Questions (MCQs) 2
Select an option to test your knowledge
MCQ 1
+1.00 Mark
Easy
Which feature of Object-Oriented Programming permits wrapping data members and functions into a single unit to restrict direct external access?
A
Inheritance
B
Encapsulation
C
Polymorphism
D
Modularity
Correct Answer
Option B: Encapsulation
Explanation:
Encapsulation is the mechanism that binds together code and the data it manipulates, maintaining data security through data hiding.
MCQ 2
+1.00 Mark
Easy
What is the return type of a Constructor in C++?
A
void
B
int
C
No return type, not even void
D
bool
Correct Answer
Option C: No return type, not even void
Explanation:
Constructors do not have any return type specified, not even void, because they are invoked automatically by the runtime upon object creation.
2. Fill in the Blanks 0
Identify the missing words
No Fill in the Blanks questions published for this chapter yet.
3. Short Answer Questions 0
Concise explanations & definitions
No Short Answer Questions published for this chapter yet.
4. Long Answer Questions 0
In-depth explanations, proofs & descriptive answers
No Long Answer Questions published for this chapter yet.