
C++ Selection
Authored by Normaziah Abdul Rahman
Instructional Technology
2nd Grade
Used 66+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The operators !, &&, and || are called relational operators.
True
False
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The expression (x >= 0 && x <= 100) evaluates to false if either x < 0 or x >= 100.
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Suppose x is 5 and y is 7. Choose the value of the following expression:
(x != 7) && (x <= y)
true
false
0
null
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following expressions correctly determines that x is greater than 10 and less than 20?
10 < =x < =20
10 < x < 20
x > 10 && x< 20
x > 10|| x < 20
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following C++ code?
int x = 35;
int y = 45;
int z;
if (x > y)
z = x + y
else
z = y – x;
cout << x << " " << y << " " << z << endl;
35 45 80
35 45 10
35 45 –10
35 45 0
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following will cause a logical error if you are attempting to compare x to 5?
if (x = 5)
if (x == 5)
if (x <= 5)
if (x >= 5)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When one control statement is located within another, it is said to be ____.
compound
blocked
nested
closed
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
15 questions
Simulasi dan Komunikasi Digital
Quiz
•
1st Grade - University
10 questions
MINECRAFT: EDUCATION EDITION
Quiz
•
KG - 12th Grade
11 questions
Sphero Block Coding
Quiz
•
KG - 12th Grade
10 questions
Icebreaker!
Quiz
•
KG - 5th Grade
10 questions
Chèn và điều chỉnh tranh ảnh
Quiz
•
1st - 10th Grade
11 questions
INFORMATIKA KELAS 9
Quiz
•
1st - 10th Grade
15 questions
Ulangan Teknologi Perkantoran
Quiz
•
1st - 5th Grade
10 questions
struct c++ (Programación)
Quiz
•
1st - 3rd Grade
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
Discover more resources for Instructional Technology
14 questions
Contractions
Quiz
•
2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Counting Coins
Quiz
•
2nd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
19 questions
Subject-Verb Agreement
Quiz
•
2nd - 5th Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
12 questions
2-Digit Subtraction with Regrouping
Quiz
•
2nd Grade
14 questions
Fractions
Quiz
•
2nd - 3rd Grade