gs gs109 Python Modules - Python Turtle Module - Quiz No.2
gs gs109 Python Quiz
This quiz belongs to book/course code gs gs109 Python of gs organization. We have 134 quizzes available related to the book/course Python. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Python Modules. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: What will be the output of the following Python code?
import turtle t=turtle.Pen() t.color(0,0,1) t.begin_fill() t.circle(15) t.end_fill()
Error
A circle filled in with the colour red
A circle filled in with the colour blue
A circle filled in with the colour green
Question 2: Which of the following functions can be used to make the arrow black?
turtle.color(0,1,0)
turtle.color(1,0,0)
turtle.color(0,0,1)
turtle.color(0,0,0)
Question 3: What will be the output of the following Python code?
import turtle t=turtle.Pen() t.color(1,1,1) t.begin_fill() for i in range(0,3): t.forward(100) t.right(120) t.end_fill()
Blank page
A triangle filled in with the colour yellow
A triangle which is not filled in with any colour
Error
Question 4: What will be the output of the following Python code?
import turtle t=turtle.Pen() t.color(0,1,0) t.begin_fill() for i in range(0,4): t.forward(100) t.right(90)
A square filled in with the colour green
A square outlined with the colour green
Blank canvas
Error
Question 5: In which direction is the turtle pointed by default?
North
South
East
West
Question 6: The command used to set only the x coordinate of the turtle at 45 units is:
reset(45)
setx(45)
xset(45)
xreset(45)
Question 7: Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?
heading()
degrees()
position()
window_height()
Question 10: What will be the output of the following Python code?
import turtle t=turtle.Pen() t.forward(100) t.left(90) t.clear() t.position()
0.00, 90.00
0.00, 0.00
100.00, 90.00
100.00, 100.00