Top 1,000+ C++ Language Quiz Questions & Answers - 2
Question: 6
A C++ stream is
(A) Associated with a particular class
(B) Flow of control through a function
(C) A file
(D) A flow of data from one place to another
Ans: D
A flow of data from one place to another
Question: 7
The keyword volatile is used to declare
(A) Objects that can be modified outside of a program control
(B) Absence of a type
(C) A member function that is defined in a subclass
(D) All of these
Ans: A
Objects that can be modified outside of a program control
Question: 8
In C language, the break statement causes an exit
(A) Only from the innermost switch
(B) Only from the innermost loop
(C) From all loops and switches
(D) From the innermost loop or switch
Ans: D
From the innermost loop or switch
Question: 9
In a for loop with a multi-statement, loop body semicolons should appear
(A) The test expression
(B) Each statement within the loop body
(C) The closing brace in a multi-statement loop body
(D) Both (a) and (b)
Ans: D
Both (a) and (b)
Question: 10
In C++, when an argument is passed by reference
(A) A variable is created in the function to hold the argument’s value
(B) A temporary variable is created in the calling program to hold the argument’s value
(C) The function cannot access the argument’s value
(D) The function accesses the argument’s original value in the calling program
Ans: A
A variable is created in the function to hold the argument’s value
- Top 150+ C++ Quiz Questions and Answers 2020-2021
- C++ MCQ Questions and Answers
- C++ Multiple Choice Questions and Answers
- C++ Objective Questions and Answers Pdf
- C++ Online Test | Questions and Answers for Gate 2020-2021
- C++ Programming Objective Questions and Answers Pdf
- Top 150+ C++ Programming Quiz Questions and Answers
- C++ Programming MCQ Questions with Answers
- 1000+ C++ Questions and Answers Pdf
- C++ Programming Questions with Solutions
- Top 1,000+ C++ Language Quiz Questions & Answers
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
Dairy Technology MCQ Questions and Answers More
Agricultural Engineering MCQ Questions & Answers Pdf More
Surveying and Levelling Agricultural Engineering MCQ Questions More
World Panorama Questions and Answers Pdf More
1000+ Earth MCQ Questions and Answers 2023-2024 Pdf More
1000+ Computer Questions for Competitive Exams 2023 - 2024 More
Top 1000+ Antonyms Verbal Ability Questions & Answers More
Top 1,000+ Indian Constitution Quiz Questions and Answers More