adplus-dvertising
frame-decoration

Question

The number of lines drawn in each case, assuming that the turtle module has been imported:
Case 1:
for i in range(0,10):
                  turtle.forward(100)
                  turtle.left(90)
Case 2:
for i in range(1,10):
                  turtle.forward(100)
                  turtle.left(90)

a.

10, 9

b.

9, 10

c.

9, 9

d.

10, 10

Posted under Python

Answer: (a).10, 9

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The number of lines drawn in each case, assuming that the turtle module has been imported:

Similar Questions

Discover Related MCQs

Q. The command which helps us to reset the pen (turtle):

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

Q. In which direction is the turtle pointed by default?

Q. The command used to set only the x coordinate of the turtle at 45 units is:

Q. Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?

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?