Search Header Logo

C++ MCQ Question Bank

Authored by Riya Samanta

Information Technology (IT)

University

C++ MCQ Question Bank
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Who developed C++?

Dennis Ritchie

James Gosling

Bjarne Stroustrup

Ken Thompson

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a feature of C++?

Object-oriented

Function overloading

Garbage collection

Exception handling

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does "C++" represent in the name of the language?

Class++

C version 2

Increment operator (++), symbolizing evolution

C with pointers

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which header file is used for standard input/output operations in C++?

<stdio.h>

<fstream>

<iomanip>

 <iostream> ✅


5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used with cout for output?

>>

<<

&&

->

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of: cout << "Hello" << endl << "World";?

HelloWorld

Hello World

Hello World

Compilation error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The keyword endl in C++ is used to:

End the program

Exit a loop

Insert newline and flush buffer

Close the file

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?