Conditionals Quiz

Conditionals Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

CodeHS 5.1 Python

CodeHS 5.1 Python

9th Grade - Professional Development

15 Qs

Code HS Unit 6 Computer Science in Python

Code HS Unit 6 Computer Science in Python

9th Grade - Professional Development

15 Qs

Python Conditionals

Python Conditionals

9th - 11th Grade

17 Qs

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

10th - 12th Grade

20 Qs

CodeHS - Intro to Python - Conditionals Quiz

CodeHS - Intro to Python - Conditionals Quiz

9th Grade - Professional Development

15 Qs

Operator Decrement (--)

Operator Decrement (--)

7th - 12th Grade

19 Qs

Квиз по Python: Условия и Циклы

Квиз по Python: Условия и Циклы

12th Grade

20 Qs

Синтаксис Python

Синтаксис Python

7th - 11th Grade

21 Qs

Conditionals Quiz

Conditionals Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

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?

for loop
while loop
switch statement
if statement

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?