adplus-dvertising
frame-decoration

Question

What is the output of the code shown?
import turtle
t=turtle.Pen()
t.forward(100)
t.left(90)
t.clear()
t.position()

a.

0.00, 90.00

b.

0.00, 0.00

c.

100.00, 90.00

d.

100.00, 100.00

Posted under Python

Answer: (d).100.00, 100.00

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 of the code shown?

Similar Questions

Discover Related MCQs

Q. Which of the following functions results in an error?

Q. The function used to alter the thickness of the pen to ‘x’ units:

Q. The process of pickling in Python includes:

Q. To sterilize an object hierarchy, the _____________ function must be called.
To desterilize a data stream, the ______________ function must be called.

Q. Pick the correct statement regarding pickle and marshal modules.

Q. What is the output of the line of code shown below?
pickle.HIGHEST_PROTOCOL

Q. Which of the codes shown below will result in an error?

Given that:
object = ‘a’

Q. Which of the following functions can be used to find the protocol version of the pickle module currently being used?

Q. All modular designs are because of a top-down design process? True or False?

Q. Which of the following isn’t true about main modules?

Q. Which of the following is not a valid namespace?

Q. Which of the following is false about “import modulename” form of import?

Q. Which of the following is false about “from-import” form of import?

Q. Which of the statements about modules is false?

Q. What is the order of namespaces in which Python looks for an identifier?

Q. Which of the following functions can be used to find the coordinated universal time, assuming that the datetime module has already been imported?

Q. The sleep function (under the time module) is used to:

Q. Which of the following functions helps us to randomize the items of a list?

Q. What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?

Q. Both the functions randint and uniform accept ____________ parameters.