Sequential logic and selection logic are examples of _______________.
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
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 Quizizz
15 questions
CodeHS - Intro to Python - Conditionals Quiz

Quiz
•
9th Grade - Professio...
20 questions
Python - lists,loops,basics

Quiz
•
9th - 11th Grade
20 questions
AP CSA Midterm Concept Review 1

Quiz
•
12th Grade
15 questions
Python

Quiz
•
6th Grade - University
15 questions
JavaScript#1

Quiz
•
9th - 12th Grade
20 questions
Basics Python

Quiz
•
8th - 10th Grade
16 questions
Understanding C# Conditional Statements

Quiz
•
11th Grade
15 questions
Java Fundamentals

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University