Object Oriented Programming in C++ MCQ with Answers Pdf - 1
Question: 1
A structure is a data type in which
(A) Elements can be of different type.
(B) Each element must have the same type.
(C) Each element must be of pointer type.
(D) None of above
Ans: A
Elements can be of different type.
Question: 2
Preprocessor does not which one of the following?
(A) Macro expansion
(B) Conditional compilation
(C) Loading include file
(D) Type checking
Ans: A
Macro expansion
Question: 3
Which of the following statement is true about continue statement?
(A) It can be used in conjunction with switch statement.
(B) It terminates the loop.
(C) It terminates the current iteration.
(D) None of above
Ans: C
It terminates the current iteration.
Question: 4
Union differs from structure in the following way
(A) Only one member can be used at a time.
(B) Unions cannot have more than two members.
(C) Union initializes all members as structure.
(D) All members are used at a time.
Ans: A
Only one member can be used at a time.
Question: 5
Which of the following statement is true about register storage class?
(A) Variable always stored in processor registers.
(B) Can only be used with integral data types and pointers.
(C) Variable takes initial value 0 if not initialized.
(D) None of above
Ans: B
Can only be used with integral data types and pointers.
- 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
Electrical Power Sources Quiz Questions & Answers Pdf More
Electromagnetic Field Theory Question Bank 2024-2025 More
Power Semiconductor Device and Integrated Circuits Questions More
Strength of Materials Questions and Answers Pdf More
Steam and Power Generation Quiz Questions & Answers Pdf More
1000+ Computer Awareness MCQ Quiz with Answers More
PG TRB Commerce Previous Year Question Papers with Answers More
1000+ Converters and Rectifiers MCQ Questions and Answers Pdf More
Chemistry Gk More
Top 1000+ Advanced Java Interview Questions 2020-2021 More