
turtle1

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Dhilma Dhilma
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
A square filled in with the colour green
A square outlined with the colour green
Blank canvas
Error
Answer explanation
The output shape of the code shown above is a square, outlined with the colour green, but not filled in with any colour. This is because we have not used the command t.end_fill() at the end.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which direction is the turtle pointed by default?
North
South
East
West
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The command used to set only the x coordinate of the turtle at 45 units is:
reset(45)
setx(45)
xset(45)
xreset(45)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?
heading()
degrees()
position()
window_height()
Answer explanation
The function heading() returns the heading of the turtle, which is a value in degrees counterclockwise from the horizontal right. This measure will be in radians if radians() has been called.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
import turtle
t=turtle.Pen()
t.right(90)
t.forward(100)
print(t.heading())
0.0
90.0
270.0
360.0
Answer explanation
The output of the code shown above will be 270.0. The function heading() returns the heading of the turtle, a value in degrees, counterclockwise from the horizontal right. The output shape of this code is a straight line pointing downwards.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
True
False
Answer explanation
he function t.clear() returns a blank canvas, without changing the position of the turtle. Since the turtle is visible on the canvas, the output of this code is: True.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following Python code will result in an error.
True
False
Answer explanation
Although a negative speed is not possible, the code shown above does not result in an error. Hence, the answer is False.
Similar Resources on Wayground
10 questions
Python Basic files

Quiz
•
10th - 12th Grade
10 questions
Understanding Procedures in Python

Quiz
•
9th Grade - University
10 questions
PI Mod 1 test

Quiz
•
9th - 12th Grade
12 questions
Python Functions 2

Quiz
•
11th - 12th Grade
10 questions
Small Basic (Turtle)

Quiz
•
KG - University
12 questions
NCCE Year 4 Repetition in Shapes

Quiz
•
3rd Grade - University
10 questions
while loop

Quiz
•
9th Grade
10 questions
01 - Introduction to Python

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade