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
7 questions
Project Management Life Cycle

Quiz
•
University
10 questions
Algorithms and Data Structure Quiz

Quiz
•
University
10 questions
OOP intro quizz

Quiz
•
University
12 questions
C Basics

Quiz
•
University
11 questions
4.2 Types of Programming Language, Translators, and Integrated D

Quiz
•
10th Grade - University
10 questions
Scheme Programming Quiz

Quiz
•
University
10 questions
IoT Cloud

Quiz
•
University
8 questions
Understanding Pipelining in Processors

Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University