Search Header Logo

C++ quiz

Authored by Avantika Marathe

Other

University

Used 12+ times

C++  quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who invinted C++?

Dennis Ritchie

Ken Thompson

Brian Kernighan

Bjarne Stroustrup

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following type is provided by C++ but not C?

double

float

int

bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

cout<<"Hello world";

getch();

}

What would be the output for the above program?

Hello World

hello world

Hello world

HELLO WORLD

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to terminate the function declaration in C++?

;

]

)

:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

// comment

/* comment */

both // comment or /* comment */

// comment */

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the actual parameters in C++?

Parameters with which functions are called

Parameters which are used in the definition of a function

Variables other than passed parameters in a function

Variables that are never used in the function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is called insertion/put to operator?

<<

>>

>

<

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?