
turtle1
Authored by Dhilma Dhilma
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Review
Quiz
•
9th - 12th Grade
10 questions
Latihan Brainware dan Hardware
Quiz
•
9th - 12th Grade
10 questions
Banco de Dados - Tipos de dados Numéricos
Quiz
•
11th Grade
10 questions
1ero A Informatica II
Quiz
•
11th Grade
10 questions
การเขียนโปรแกรม scratch
Quiz
•
9th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Lesson 1 Introduction to Database System
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade