Search Header Logo

OOPs through C++ Quiz(data types, variables, conditional stmts)

Authored by Anjana B

Computers

University

Used 2+ times

OOPs through C++ Quiz(data types, variables, conditional stmts)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a function in C++?

if statement

for loop

switch case

cout statement

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following loops will execute at least once in C++?

for loop

while loop

do while loop

switch case

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to switch between different cases in C++?

for loop

while loop

do while loop

switch case

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to comment a single line of code in C++?

//comment

/*comment

*/comment

#comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to comment multiple lines of code in C++?

//comment

/*comment*/

*/comment*/

#comment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to declare a variable in C++?

var

val

const

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are arrays in C++?

A set of statements that perform logical operations

A type of loop

A way of storing multiple values of the same data type

A pointer

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?