Conditional Statements

Conditional Statements

8th Grade

9 Qs

quiz-placeholder

Similar activities

Logical Operator & Ternary Operators

Logical Operator & Ternary Operators

6th - 12th Grade

9 Qs

Programming - Selection in an Algorithm

Programming - Selection in an Algorithm

1st - 11th Grade

10 Qs

Conditional Statements JavaScript

Conditional Statements JavaScript

8th - 12th Grade

10 Qs

Coding Conditionals

Coding Conditionals

6th - 8th Grade

14 Qs

Unit 3 Scratch Vocab

Unit 3 Scratch Vocab

6th - 8th Grade

10 Qs

Python Quiz - 4

Python Quiz - 4

6th - 8th Grade

10 Qs

C WEEK15 - LN 3 REVISION

C WEEK15 - LN 3 REVISION

8th Grade

10 Qs

Operators & IF Statements

Operators & IF Statements

7th - 8th Grade

10 Qs

Conditional Statements

Conditional Statements

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Michelle Catarroja

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Conditional Statements allow you to execute specific blocks of code based on conditions.

TRUE

FALSE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Executes a block of code if a specified condition is true.

if statement

else statement

else if statement

switch

ternary operator

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Executes a block of code if the same condition of the preceding if statement is false.

if statement

else statement

else if statement

switch

ternary operator

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Adds more conditions to the if statement, allowing for multiple alternative conditions to be tested.

if statement

else statement

else if statement

switch

ternary operator

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluates an expression, then executes the case statement that matches the expression’s value.

if statement

else statement

else if statement

switch

ternary operator

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Provides a concise way to write if-else statements in a single line.

if statement

else statement

else if statement

switch

ternary operator

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if both expressions are true it returns true, otherwise it returns false. denotes as &&

AND

OR

NOT

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if one or both expressions are true it returns true, otherwise it returns false. denotes as ||

AND

OR

NOT

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

returns true for false statements and false for true statements. denotes as !

AND

OR

NOT