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
JavaScript Level 1

Quiz
•
5th - 9th Grade
21 questions
Quiz 1

Quiz
•
9th - 12th Grade
22 questions
Fundamentals of Programming (GCSE Computer Science AQA)

Quiz
•
9th - 11th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
16 questions
Условни Оператори

Quiz
•
9th - 12th Grade
15 questions
MM - JavaScript

Quiz
•
12th Grade
15 questions
Game Design Concept

Quiz
•
5th - 9th Grade
18 questions
js basics

Quiz
•
4th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade