If statement / While loop

If statement / While loop

8th Grade

10 Qs

quiz-placeholder

Similar activities

Year 8 - Progress Check 1 (Python Turtle Shapes)

Year 8 - Progress Check 1 (Python Turtle Shapes)

8th - 9th Grade

10 Qs

Micro:bit

Micro:bit

6th - 9th Grade

10 Qs

JavaScript Variables

JavaScript Variables

3rd Grade - University

13 Qs

Revision quiz on Access

Revision quiz on Access

8th Grade

12 Qs

CODING QUIZZ

CODING QUIZZ

8th Grade

13 Qs

Coding helps to Understand

Coding helps to Understand

6th - 10th Grade

10 Qs

coding

coding

4th - 10th Grade

10 Qs

Quiz 3: Internet safety, cyber security and encryption

Quiz 3: Internet safety, cyber security and encryption

7th - 8th Grade

13 Qs

If statement / While loop

If statement / While loop

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Used 34+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is selection?

Using IF and ELSE to have a decision in a program
Selecting which character to use in your game
Selecting options in a game
Selecting how much XP to gain

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What colour does the "selection" code change to in Python?

Black
Purple
Orange
Green

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the == mean in this code?

Is
Is equal to
Is not equal to
Is not

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What best defines an IF statement in python?

Is an embedded string with a variable
An IF statement checks to see if a statement is true or false and then does one of two things depending on the result.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We use ________ to indicate what statement a block of code belongs to

Conditions

Iteration

Indentation

Infinite loops

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The while loop statement ends with which symbol?

#

:

)

+

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

This code will..

ask a user for an input 10 times

output all numbers from 0 to 9

output all numbers from 0 to 10

output the word num 10 times

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?