C++ Fundamentals

Quiz
•
Computers
•
4th Grade
•
Medium
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
Similar Resources on Wayground
15 questions
Python Quiz

Quiz
•
3rd - 4th Grade
10 questions
Robotics/Coding Pop Quiz

Quiz
•
4th Grade - Professio...
10 questions
Small Basic 2

Quiz
•
KG - 8th Grade
10 questions
Flowchart

Quiz
•
1st - 9th Grade
10 questions
KS3 - Fun Computing Quiz 2

Quiz
•
4th - 12th Grade
10 questions
Scratch basics BIl.

Quiz
•
4th Grade
10 questions
Python - Operators and Conditional Statement

Quiz
•
3rd - 10th Grade
10 questions
Introduction to Python - Input, Output and Math

Quiz
•
1st - 6th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade