2023-24 - Y7 - Python Turtle - Quiz 5

2023-24 - Y7 - Python Turtle - Quiz 5

6th Grade

10 Qs

quiz-placeholder

Similar activities

Viruses & Malware

Viruses & Malware

6th - 8th Grade

10 Qs

Python L25 Turtle

Python L25 Turtle

6th - 8th Grade

14 Qs

Python Level 1 Quiz #6

Python Level 1 Quiz #6

5th - 12th Grade

12 Qs

EDUBLOCKS - 1

EDUBLOCKS - 1

6th - 8th Grade

7 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Python basics

Python basics

6th - 8th Grade

15 Qs

Python Statements

Python Statements

5th - 7th Grade

10 Qs

mit app inventor basics quiz

mit app inventor basics quiz

4th - 8th Grade

15 Qs

2023-24 - Y7 - Python Turtle - Quiz 5

2023-24 - Y7 - Python Turtle - Quiz 5

Assessment

Quiz

Computers

6th Grade

Hard

Created by

Courtney Owen

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main benefit of using selection (if statements) in Python programming?
It allows code to run faster
It enables code to repeat actions multiple times
It helps in making decisions based on conditions, allowing the code to choose different paths
It simplifies the import of libraries

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does selection in Python use conditions?
By checking if a variable is a specific data type
By checking whether a condition is true or false, and then deciding which block of code to execute
By looping through a list of items
By importing different libraries based on the condition

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what word starts the selection statement?
for
import
input
if

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what does the selection statement (if statement) check for?
Whether the turtle has drawn a square
Whether the user wants to draw a square
Whether the turtle is moving forward
Whether the turtle's pen is down

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what will happen if the user enters "no" to the question?
The turtle will draw a square
The turtle will draw a circle
Nothing will be drawn
The turtle will move backwards

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, why is there an elif statement included?
To handle the case when the user enters an invalid shape
To draw a pentagon if the user inputs 'pentagon'
To check if the side length entered is a valid integer
To handle the drawing of a rectangle if the user inputs 'rectangle'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what does the else statement do?
It prints an error message if the user inputs an invalid shape
It checks if the input shape is 'square' and draws it with the specified side length
It draws a rectangle if the input shape is 'rectangle'
It ensures the turtle object (pen) is properly initialised for drawing

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?