Quiz4: Making Decisions

Quiz
•
Computers
•
University
•
Medium
Xin Yang
Used 18+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code fragment assuming x is 6?
Yes
No
YesNo
No output; no error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After execution of the code, what will be the value of x?
5
10
20
25
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After execution of the code, what is stored in num? (All variables are of type int.)
The smaller of a and o
Randomly selected values from a, o, and w
The largest value of a, o, and w
The smallest value of a, o, and w
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After execution of the code, what will be the value of angle if the input value is 3?
5
10
12
18
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the switch statements if the value of beta is 'C'?
What
CatFoxWhat
Cat
CatWhat
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the value of number after the execution of the switch statements?
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the output of the following statements if the value of code is 'E'?
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Convert the English expression "a is between 0 and 100 inclusive" to a C++ expression.
a <= 100 || a >= 0
a <= 100 && a >= 0
a <= 100 & a >= 0
a < 100 && a > 0
Similar Resources on Wayground
10 questions
2025 python class first quiz

Quiz
•
9th Grade - University
10 questions
C++ Quiz

Quiz
•
University
10 questions
Exploring Addressing Modes

Quiz
•
University
10 questions
H466 - Global and Local Variables

Quiz
•
12th Grade - University
11 questions
Cloud computing Quiz 1

Quiz
•
University
12 questions
C++ Basics (1)

Quiz
•
University
10 questions
CHAPTER 8: Operating System Support Quiz

Quiz
•
University
6 questions
AlgoProg-Week2

Quiz
•
University
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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University