Search Header Logo

C++ Fundamentals

Authored by DHANJIT SARMA

Computers

4th Grade

Used 8+ times

C++ Fundamentals
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type used to store whole numbers in C++?

float

int

double

char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String name = 'Charlie', is it a correct string variable initialization?

Yes

No, we don't have to store value during initialization

No, the '=' is not needed.

No, the name Charlie should be written within double quotation marks

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which control structure is used to execute a block of code repeatedly as long as a specified condition is true?

if statement

for loop

switch case

while loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to output a variable's value in C++?

cout << variableName;

print(variableName)

output(variableName)

display(variableName)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type used to store decimal numbers in C++?

bool

float or double

char

int

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 10 / 3?

3.3

3.0

3.33

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to compare two values in C++?

+

=

==

||

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?