Class 11
Computer Science
Computer Theory
Chapter 3:Introduction to Programming in C++
(Marks 44)
Chapter Content Overview
- PDF Notes: 0
- MCQs: 1
- Fill in the Blanks: 1
- Short Answers: 0
- Long Answers: 0
Study Topics & Notes
3 Topic(s)1. Multiple Choice Questions (MCQs) 1
Select an option to test your knowledge
MCQ 1
+1.00 Mark
Easy
Which of the following is a valid C++ identifier name?
A
2ndRoll
B
_totalMarks
C
float
D
student-name
Correct Answer
Option B: _totalMarks
Explanation:
Identifiers in C++ cannot start with a digit, cannot contain hyphens, and cannot use reserved keywords like float. Starting with an underscore _ is valid.
2. Fill in the Blanks 1
Identify the missing words
Q1
+1.00 Mark
Easy
In C++, the stream extraction operator used with cin is _________.
Correct Answer:
>>
Explanation:
The extraction operator (>>) extracts input from the standard input stream (cin).
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.