If statements

If statements

6th - 8th Grade

7 Qs

quiz-placeholder

Similar activities

Programming - Algorithms in Pseudocode & Flow Diagrams

Programming - Algorithms in Pseudocode & Flow Diagrams

1st - 12th Grade

10 Qs

Karel's Museum Tasks Drill

Karel's Museum Tasks Drill

8th Grade

5 Qs

Elektronická pošta

Elektronická pošta

5th - 10th Grade

10 Qs

Karel Functions Worksheet

Karel Functions Worksheet

6th Grade

10 Qs

Karel Drill

Karel Drill

6th - 8th Grade

3 Qs

Karel CodeHS Function

Karel CodeHS Function

8th Grade

5 Qs

CS Day 40

CS Day 40

KG - University

10 Qs

Robótica II Clase II

Robótica II Clase II

KG - Professional Development

5 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