C++ Fundamentals

C++ Fundamentals

4th Grade

10 Qs

quiz-placeholder

Similar activities

SCRATCH

SCRATCH

4th - 8th Grade

10 Qs

Hari 3 - Kuis Coding & Perkenalan AI

Hari 3 - Kuis Coding & Perkenalan AI

1st Grade - University

10 Qs

Scratch Coding

Scratch Coding

3rd - 6th Grade

15 Qs

BWOCD #1

BWOCD #1

1st - 5th Grade

10 Qs

Code Combat JavaScript Quiz

Code Combat JavaScript Quiz

4th - 8th Grade

13 Qs

Cuestiones sobre código. Ejercicio 1. MARTES Y MIÉRCOLES

Cuestiones sobre código. Ejercicio 1. MARTES Y MIÉRCOLES

KG - 12th Grade

13 Qs

Coding Fundamentals SC

Coding Fundamentals SC

4th - 6th Grade

15 Qs

Python-basics

Python-basics

1st - 4th Grade

14 Qs

C++ Fundamentals

C++ Fundamentals

Assessment

Quiz

Computers

4th Grade

Medium

Created by

DHANJIT SARMA

Used 8+ times

FREE Resource

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++?

+

=

==

||

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?