Turtle Module Python: MCQs on Turtle Module In Python

Turtle Module Python. Multiple Choice Questions on Turtle Module in Python language.

 

Turtle Module Python

 

 

What will be the output of the following program ??

import turtle
t=turtle.Pen()
t.resizemode(“sanfoundry”)
t.resizemode()

a) user
b) auto
c) nonresize
d) error

 

What will be the output of this ??

import turtle
t=turtle.Pen()
for i in range(0,6):
t.forward(100)
t.left(60)

a) Hexagon
b) Octagon
c) Pentagon
d) Heptagon

 

The command used to set only the x coordinate of the turtle at 45 units is ??

a) reset(45)
b) setx(45)
c) xset(45)
d) xreset(45)

 

What will be the output of the following ??

import turtle()
t=turtle.Pen()
t.goto(50,60)
t1=t.clone()
t1.ycor()

a) 0.0
b) 50.0
c) 60.0
d) Error

 

Turtle Module Python

 

The following Python code will result in an error ??

import turtle
t=turtle.Pen()
t.speed(-45)
t.circle(30)

a) True
b) False

 

In which direction is the turtle pointed by default ??

a) North
b) South
c) East
d) West

 

The output of the following Python code is similar to the alphabet ??

import turtle
t=turtle.Pen()
t1=turtle.Pen()
t2=turtle.Pen()
t.forward(100)
t1.forward(100)
t2.forward(100)
t1.left(90)
t1.forward(75)
t2.right(90)
t2.forward(75)

a) X
b) N
c) T
d) M

 

What will be the output of the 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) A square filled in with the colour green
b) A square outlined with the colour green
c) Blank canvas
d) Error

 

Turtle Module Python

 

The output of the following Python code will result in a shape similar to the alphabet ??

import turtle
t=turtle.Turtle()
t1=turtle.Turtle()
t.left(45)
t1.left(135)
t.forward(100)
t1.forward(100)

a) V
b) Inverted V
c) X
d) T

 

What will be the output ??

import turtle
t=turtle.Pen()
t.position()
(100.00,0.00)
t.goto(100,100)
t.distance(100,0)

a) 0.0
b) Error
c) 100.0, 100.0
d) 100.0

 

What will be the output of the following Python ??

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()

a) Blank page
b) A triangle filled in with the colour yellow
c) A triangle which is not filled in with any colour
d) Error

 

What will be the output of the following Python code ??

import turtle
t=turtle.Pen()
t.goto(100,0)
t.towards(0,0)

a) 0.0
b) 180.0
c) 270.0
d) 360.0

 

Turtle Module Python

 

The function used to alter the thickness of the pen to ‘x’ units ??

a) turtle.width(x)
b) turtle.span(x)
c) turtle.girth(x)
d) turtle.thickness(x)

 

Which of the following functions can be used to make the arrow black ??

a) turtle.color(0,1,0)
b) turtle.color(1,0,0)
c) turtle.color(0,0,1)
d) turtle.color(0,0,0)

 

What will be the output ??

import turtle
t=turtle.Pen()
t.backward(100)
t.penup()
t.right(45)
t.isdown()

a) True
b) False
c) Yes
d) No

 

Turtle Module Python

 

What will be the output of ??

import turtle
t=turtle.Pen
t.tilt(75)
t.forward(100)

a) A straight line of 100 units tiled at 75 degrees from the horizontal
b) A straight line of 100 units tilted at 15 degrees from the horizontal
c) A straight line of 100 units lying along the horizontal
d) Error

 

What will be the output of the following Python ??

import turtle
t=turtle.Pen()
t.color(0,0,1)
t.begin_fill()
t.circle(15)
t.end_fill()

a) Error
b) A circle filled in with the colour red
c) A circle filled in with the colour blue
d) A circle filled in with the colour green

 

Which of the following functions results in an error ??

a) turtle.shape(“turtle”)
b) turtle.shape(“square”)
c) turtle.shape(“triangle”)
d) turtle.shape(“rectangle”)

 

Read More

Leave a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !!