If statements

If statements

6th - 8th Grade

7 Qs

quiz-placeholder

Similar activities

Scratch1

Scratch1

4th - 6th Grade

10 Qs

ctech008-03072025

ctech008-03072025

8th Grade

8 Qs

CS Disco U3L12

CS Disco U3L12

6th - 12th Grade

10 Qs

Flowchart

Flowchart

6th Grade

10 Qs

More Basic Karel

More Basic Karel

6th Grade

10 Qs

Programming Lesson 3

Programming Lesson 3

6th - 8th Grade

12 Qs

PYTHON "If" Statement

PYTHON "If" Statement

6th Grade

11 Qs

If statements

If statements

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Jonathan Smith

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Conditional Statement in programming?

A statement that executes a block of code only if a specified condition is true.

A statement that repeats a block of code a certain number of times.

A statement that defines a variable or a function.

A statement that ends the execution of a function.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Decomposition in programming is the process of breaking down a complex problem into smaller, more manageable parts. Which of the following best describes this concept?

Combining multiple tasks into one large task

Breaking down a complex problem into smaller parts

Ignoring the problem altogether

Solving the problem without any planning

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement should be used for this situation:


If there is a ball present, Karel should take it. If there is no ball present, Karel should turn around.

if

if

if

if

else

none of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement should be used for this situation:


If there is a ball present, Karel should take it. If the front is clear, Karel should move forward.

if

if

if

if

else

none of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement should be used for this situation:


If there is a ball, Karel should take it. Then Karel should move forward.

if

if

if

if

else

none of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement should be used for this situation:


If the front is clear, Karel should move. Otherwise, Karel should turn around.

if

if

if

if

else

none of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement should be used for this situation:


Karel should drop a ball and then move forward until she reaches the end of the row.

if

if

if

if

else

none of these