Conditionals Quiz

Conditionals Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Chapter 3: Storage devices and media (Part 2):

Chapter 3: Storage devices and media (Part 2):

10th - 11th Grade

15 Qs

Pengayaan Informatika

Pengayaan Informatika

12th Grade

20 Qs

STARFIELD MID-TERM 2

STARFIELD MID-TERM 2

9th - 12th Grade

15 Qs

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th 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

Access all questions and much more by creating a free account

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?