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
15 questions
Python бағдарламалау тілі

Quiz
•
11th Grade
17 questions
Basic Logic Laws

Quiz
•
8th - 12th Grade
20 questions
Basic Switch and End Device Configuration

Quiz
•
11th Grade
20 questions
Python IF statements Part 4

Quiz
•
9th - 12th Grade
20 questions
Квиз по Python: Условия и Циклы

Quiz
•
12th Grade
17 questions
Python Conditionals

Quiz
•
9th - 11th Grade
15 questions
Python 3 Elements Quiz

Quiz
•
9th Grade
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade