Question
import turtle
t=turtle.Pen()
for i in range(0,4):
t.forward(100)
t.left(120)
a.
square
b.
rectangle
c.
triangle
d.
kite
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output shape of the code shown?
Similar Questions
Discover Related MCQs
Q. The command which helps us to reset the pen (turtle):
View solution
Q. Which of the following functions can be used to make the arrow black?
View solution
Q. In which direction is the turtle pointed by default?
View solution
Q. The command used to set only the x coordinate of the turtle at 45 units is:
View solution
Q. Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?
View solution
Q. Which of the following functions results in an error?
View solution
Q. The function used to alter the thickness of the pen to ‘x’ units:
View solution
Q. The process of pickling in Python includes:
View solution
Q. To sterilize an object hierarchy, the _____________ function must be called.
To desterilize a data stream, the ______________ function must be called.
View solution
Q. Pick the correct statement regarding pickle and marshal modules.
View solution
Q. What is the output of the line of code shown below?
pickle.HIGHEST_PROTOCOL
View solution
Q. Which of the codes shown below will result in an error?
Given that:
object = ‘a’
View solution
Q. Which of the following functions can be used to find the protocol version of the pickle module currently being used?
View solution
Q. All modular designs are because of a top-down design process? True or False?
View solution
Q. Which of the following isn’t true about main modules?
View solution
Q. Which of the following is not a valid namespace?
View solution
Q. Which of the following is false about “import modulename” form of import?
View solution
Q. Which of the following is false about “from-import” form of import?
View solution
Q. Which of the statements about modules is false?
View solution
Q. What is the order of namespaces in which Python looks for an identifier?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!