Search Header Logo

2023-24 - Y7 - Python Turtle - Quiz 6

Authored by Courtney Owen

Computers

6th Grade

Used 3+ times

2023-24 - Y7 - Python Turtle - Quiz 6
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

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?