Conditionals Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
HANNAH DUHE
Used 14+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sequential logic and selection logic are examples of _______________.
Logical Operators
Logic Structures
Control Structures
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a conditional in C# coding?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
(T/F) A keyword in C# is a predefined, reserved word that has special meaning and cannot be used as an identifier.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement occurs first when the following code is run?
int a = 5;
int b = 2;
int a = 5;
int b = 2;
Both occur simultaneously
Nothing happens
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the value of x be after the following code is run?
int x = 5;
if (x >= 2){
x -= 2;
}
else{ x += 2; }
5
3
2
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the value of x be after the following code is run?
int x = 0;
if (x > 0)
{ x++; }
else if (x < 0)
{ x--; }
else{ x *= 10; }
1
-1
0
10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of playerStatus after the following code is run?
string playerStatus = "Idle";
float playerVelocity = 5.0f;
if (playerStatus == "Idle")
{ if (playerVelocity > 0.0f)
{ playerStatus = "Moving"; }
else if (playerStatus == "Moving")
{ if (playerVelocity == 0.0f)
{ playerStatus = "Idle"; } }
Moving
Idle
Null
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C# Intro

Quiz
•
9th Grade
15 questions
End of term assessment

Quiz
•
9th Grade
22 questions
Sequence, Selection and Iteration

Quiz
•
11th Grade
15 questions
Python Conditionals and If Statements

Quiz
•
8th Grade - University
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
15 questions
FSWI - CH4 T1

Quiz
•
KG - Professional Dev...
22 questions
AS Data Types and Programming Constructs

Quiz
•
10th - 12th Grade
15 questions
Grade 12-Python selection&iteration

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade