C++ Online Test | Questions and Answers for Gate 2020-2021 - 2
Question: 6
Which of the following are good reasons to use an object oriented language?
(A) An object oriented program can be taught to correct its own errors
(B) Program statements are simpler than in procedural language
(C) We can define our own data types
(D) None of these
Ans: C
We can define our own data types
Question: 7
In a class specified, data or functions and designated private are accessible
(A) Only to public members of class
(B) Only if you know the password
(C) To any function in the program
(D) To member functions of that class
Ans: D
To member functions of that class
Question: 8
When a language has the capability to produce new data types, it is called
(A) Extensible
(B) Encapsulated
(C) Reprehensible
(D) None of these
Ans: D
None of these
Question: 9
Keyword typed is used to declare
(A) A synonym for an existing type
(B) Absence of a type
(C) Objects that can be modified outside of a program control
(D) A member function that is defined in a subclass
Ans: A
A synonym for an existing type
Question: 10
In C++ programming language, to write data that contains variables of type flat to an object of type of stream, which of the following should be used?
(A) Put ( )
(B) Seekg ( )
(C) Write ( )
(D) Insertion operator
Ans: C
Write ( )
- 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
Agricultural Engineering MCQ Questions & Answers Pdf More
Surveying and Levelling Agricultural Engineering MCQ Questions More
Electromagnetic Induction Questions & Answers Pdf More
A.C. Basics and Networks Quiz Questions & Answers Pdf More
Signals and Systems Quiz Questions and Answers Pdf More
1000+ Engineering Materials Quiz Questions and Answers Pdf More
1000+ Refrigeration & Air Conditioning Multiple Choice Questions & Answers More
1000+ Time and Distance Online Test More
1000+ CAT English Questions with Answers Pdf More
Union and Its Territories of India Multiple Choice Questions for UPSC 2020 More