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
22 questions
Sequence, Selection and Iteration

Quiz
•
11th Grade
15 questions
Python Fundamentals Quiz

Quiz
•
11th Grade
15 questions
PCEP Section 2a: Make decisions with if instruction

Quiz
•
12th Grade
20 questions
Boolean Logic, Comparison Operators, and Loops Review Quiz

Quiz
•
10th Grade
15 questions
End of term assessment

Quiz
•
9th Grade
21 questions
Синтаксис Python

Quiz
•
7th - 11th Grade
20 questions
Algoritmi Java

Quiz
•
11th Grade
20 questions
Javascript Basic

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Computers
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade