2023-24 - Y7 - Python Turtle - Quiz 6

2023-24 - Y7 - Python Turtle - Quiz 6

6th Grade

10 Qs

quiz-placeholder

Similar activities

Scratch intro & Pen Commands Quiz

Scratch intro & Pen Commands Quiz

1st - 10th Grade

10 Qs

Lord Bills Year 8 Computing Microbit

Lord Bills Year 8 Computing Microbit

6th - 8th Grade

15 Qs

Snap! Computer Programming Quiz

Snap! Computer Programming Quiz

6th - 8th Grade

15 Qs

Year 7 Python: quiz 1

Year 7 Python: quiz 1

6th Grade

15 Qs

CS quizz

CS quizz

6th Grade

13 Qs

Small basic

Small basic

4th - 6th Grade

13 Qs

Scratch coding

Scratch coding

6th Grade

15 Qs

Project STEM CSE1 U0

Project STEM CSE1 U0

6th - 8th Grade

14 Qs

2023-24 - Y7 - Python Turtle - Quiz 6

2023-24 - Y7 - Python Turtle - Quiz 6

Assessment

Quiz

Computers

6th Grade

Hard

Created by

Courtney Owen

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a sub program in Python?
A main part of the code
A block of code that performs a specific task
A comment in the code
A variable in the code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a sub program in Python?
def
func
function
sub

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what is the name of the sub program?
Turtle()

draw_square()

range()
forward()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what will be the output?
A square
A triangle
A rectangle
Nothing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, why will the code produce nothing when executed?
The pen object is not initialised correctly
The shape will be too big to draw
The draw_square() sub program is defined but never called
The turtle module is imported incorrectly

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what are 'sides' and 'length' called in the draw_shape() sub program declaration?
Properties
Parameters
Prototypes
Placeholders

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Look at the code shown, what is the purpose of using parameters 'sides' and 'length' in the draw_shape() sub program?

To pass values to the sub program to control the size and shape of the drawn figure

To specify the color of the turtle's pen
To define the initial position of the turtle
To initialise the pen object

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?