C++ Fundamentals

C++ Fundamentals

4th Grade

10 Qs

quiz-placeholder

Similar activities

Sheet lesson 3

Sheet lesson 3

4th Grade

10 Qs

G4 DT Revision Week 5 & 6 Term 3

G4 DT Revision Week 5 & 6 Term 3

4th Grade

14 Qs

KUIZ ASK - PERSEKITARAN KOD ARAHAN

KUIZ ASK - PERSEKITARAN KOD ARAHAN

3rd - 4th Grade

15 Qs

What would you do if...

What would you do if...

1st - 12th Grade

10 Qs

Peranti Komputer

Peranti Komputer

4th - 6th Grade

10 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Computers- Then and Now Grade 5

Computers- Then and Now Grade 5

2nd - 6th Grade

10 Qs

C++ Fundamentals

C++ Fundamentals

Assessment

Quiz

Computers

4th Grade

Practice Problem

Medium

Created by

DHANJIT SARMA

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?