
Quiz PF 1 (W4)
Quiz
•
Other
•
Professional Development
•
Medium
Yosi Kristian
Used 2+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types has the smallest size?
char
int
long
double
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
A
B
AB
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following conditions is equivalent to !(a > b)?
a < b
a <= b
a == b
a >= b
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, what will happen if you do not provide an else block for an if statement?
Syntax error
The code inside the if block will not execute
The program will terminate
The program will continue to execute the next statements
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the else statement in C++?
To execute a block of code if the if condition is false
To execute a block of code if the if condition is true
To declare variables
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many else blocks can an if statement have?
0
1
2
Unlimited
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for an else if statement in C++?
else if (condition) { /* code */ }
elif (condition) { /* code */ }
elseif (condition) { /* code */ }
else (condition) { /* code */ }
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
AES - Safety Precautions: Body Mechanics
Quiz
•
9th Grade - Professio...
20 questions
Session 3 Symptoms of electrical faults.
Quiz
•
Professional Development
20 questions
Bootcamp Class 5 Quiz
Quiz
•
Professional Development
20 questions
Picture Quiz-I
Quiz
•
KG - Professional Dev...
20 questions
Unit 1: Foundations of Psychology
Quiz
•
University - Professi...
17 questions
Emotional Intelligence
Quiz
•
Professional Development
18 questions
ESL Beginners' Review
Quiz
•
6th Grade - Professio...
20 questions
Outcome 4 Safe working procedures during fault finding.
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade