Object Oriented Programming in C++ MCQ with Answers Pdf - 2
Question: 6
The storage class controls
(A) Scope of a variable
(B) Life time of a variable
(C) Both a and b
(D) None of above
Ans: C
Both a and b
Question: 7
Which of the following is not a valid reason for using functions?
(A) They use less memory than repeating the same code.
(B) They keep different program activities separate.
(C) They run faster.
(D) They keep variables safe from other parts of the program.
Ans: C
They run faster.
Question: 8
The C language provides a way to access contents of a file from a program using
(A) System calls
(B) Library function
(C) Both a and b
(D) None of above
Ans: B
Library function
Question: 9
The continue statement is used to
(A) Continue execution of the program error occurs.
(B) Exit from the outermost block even it is used in the innermost block.
(C) Exit the block of loop statement.
(D) Continue the next iteration of the loop statement.
Ans: D
Continue the next iteration of the loop statement.
Question: 10
The operators exclusively used with pointers are
(A) * and /
(B) & and *
(C) & and ^
(D) * and +
Ans: B
& and *
- Top 300+ C Programming Multiple Choice Questions & Answers
- C Programming Question Bank
- C Programming Objective Questions and Answers Pdf
- C Programming Quiz Questions and Answers
- C MCQs Questions with Answers Pdf 2019-2020
- C Programming Online Test Questions and Answers
- Online C Programming Test with Certificate
- Object Oriented Programming in C++ MCQ with Answers Pdf
Signals and Systems Quiz Questions and Answers Pdf More
Signals and Systems MCQ Questions and Answers Pdf More
Electrical Power Sources Quiz Questions & Answers Pdf More
Electromagnetic Field Theory Question Bank 2024-2025 More
Power Semiconductor Device and Integrated Circuits Questions More
Top 1000+ Tally Online Test/Mock Test More
Basic Computer Knowledge Multiple Choice Questions More
100+ SBI PO Quantitative Aptitude Questions with Answers Pdf More
7000+ Combinational Logic Circuits Questions and Answers Pdf More
1000+ Spotting Errors Questions for UPSC Exam More