
C++ : Selection
Authored by ENNA NAWI
Computers
University
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The data type of the variable in the switch and value of a case must not be of the same type.
True
False
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The _____ in switch statement is used to terminate the current sequence.
default
goto
break
jump
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The default statement is optional and it can be used anywhere inside the switch statement.
True
False
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
We can have any number of case statements within a switch
True
False
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What set of characters do you use to create a compound statement (block of code) in C++?
[ ]
( )
{ }
< >
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one is the correct syntax for C++?.
if [ gross > 100000 ] then
net = gross - tax;
if ( gross > 100000 )
net = gross - tax;
if { gross > 100000 } then
net = gross - tax;
if < gross > 100000 > then
net = gross - tax;
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is printed by the following program segment?
HelloWorld!
Hello
Hello
World!
World!
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Networking Essentials - Test 3
Quiz
•
University
10 questions
Scratch (28th March)
Quiz
•
KG - University
10 questions
Java Control Flow statements
Quiz
•
University
10 questions
ITE-1-Ch01-Quiz1
Quiz
•
University
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
Data Analytics and Artificial Intelligence
Quiz
•
University
10 questions
Access 02
Quiz
•
University - Professi...
11 questions
wordpress pretest
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade