Conditionals Quiz

Conditionals Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Ms. Exel dan Fungsi Logika IF

Ms. Exel dan Fungsi Logika IF

10th Grade - University

15 Qs

2.3.1 Graph Traversal & Path Finding Algorithms

2.3.1 Graph Traversal & Path Finding Algorithms

12th Grade - University

20 Qs

Social Media and the Internet Safety

Social Media and the Internet Safety

1st - 11th Grade

21 Qs

Mobile app development principles

Mobile app development principles

10th Grade

17 Qs

Artificial Intelligence and SketchUp

Artificial Intelligence and SketchUp

8th - 10th Grade

20 Qs

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

flowol week 3

flowol week 3

9th - 12th Grade

17 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Conditionals Quiz

Conditionals Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

HANNAH DUHE

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?