C++  Mcq

C++ Mcq

  • Admin
  • 30th Jul, 2020

Take C++ Quiz To test your Knowledge

Below are few C++ MCQ test that checks your basic knowledge of C++. This C++ Test contains around 20 questions of multiple choice with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking the view answer link.

C++ MCQ Quiz

1) Who is the founder of C++?

  • A. Dennis Ritchie
  • B.Bjarne Stroustrup
  • C.Microsoft Corporation
  • D.Tim Berners-Lee

2) C++ was first introduced in which year?

  • A. 1997
  • B.1998
  • C.1996
  • D.1995

3) What was the original name given to C++?

  • A. C with classes
  • B.C Language
  • C.C Sharp
  • D.None of the above

4) Which of the following sign is used for comments in C++?

  • A. /* comment */
  • B.// comment
  • C.// comment */
  • D.Both A & B

5) Which of the following function is used to read a single character from the console in C++?

  • A. getline(ch)
  • B.read(ch)
  • C.cin.get(ch)
  • D.scanf(ch)

6) .......... is an abstract data type.

  • A. float
  • B.int
  • C.class
  • D.string

7) Which of the following concept is used to implement late binding?

  • A. Constant functions
  • B.Operator functions
  • C.Virtual functions
  • D.Static functions

8) What is the correct size of a boolean variable in C++?

  • A. 1 bit
  • B.2 bytes
  • C.1 byte
  • D.None of the above

9) Which of the following loop is an exit-controlled loop?

  • A. for
  • B.while
  • C.do-while
  • D.None of the above

10) Which of the following is the other name of compile-time polymorphism?

  • A. Static polymorphism
  • B.Executing polymorphism
  • C.Dynamic polymorphism
  • D.Non-executing polymorphism

11) Std is a ........... in C++?

  • A. standard namespace
  • B.standard class
  • C.standard header file
  • D.standard file reading header

12) Which of the following feature of the OOPS gives the concept of reusability?

  • A. Inheritance
  • B.Abstraction
  • C.Encapsulation
  • D.None of the above

13) What is the default executable generation on UNIX for a C++ program?

  • A. a
  • B.a.out
  • C.out.a
  • D.a.exe

14) can we create objects of the abstract class?

  • A. Yes
  • B.No

15) Which of the followings are used to format the data display in CPP?

  • A. Allocators
  • B.Iterators
  • C.Manipulators
  • D.Punctuators

16) Which of the following are used for generic programming?

  • A. Inheritance
  • B.Templates
  • C.Virtual Functions
  • D.None of the above

17) The compiler does not support automatic type conversions for the ..............

  • A. User-defined data type
  • B.Basic data type
  • C.Class data type
  • D.None of the above

18) Which of the following is the other name of full specialization?

  • A. Implicit specialization
  • B.Explicit specialization
  • C.Function overloading template
  • D.None of the above

19) the client module imports ...........

  • A. Records
  • B.Interface
  • C.Macro
  • D.None of the above

20) Which of the following is the general syntax for accessing the namespace variable?

  • A. Namespace,operator
  • B.Namespace#operator
  • C.Namespaceid::operator
  • D.None of the above

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related Articles

Laravel MCQ
React JS MCQ
AngularJs MCQ
Node js MCQ
Angular 2 MCQ