MCQs
Top-down design is an approach for deriving a modular design in which the overall design.
There are five protocol versions available of the pickle module, namely, 0, 1, 2, 3 and 4. In the code shown above, the highest protocol version is returned, that is, 4.
The above function works with alphabets just as it does with numbers. The output of thes expression will be either s, u or n.
Any of the characters present in the string may be returned.
The function shown above evaluates the input into a string. Hence if the input entered is enclosed in double quotes, the output will be enclosed in single quotes. Therefore, the output of this code is 'India'.
The functions fillcolor(), goto() and setheading() accept arguments, whereas the function position() does not accept any arguments. The function position() returns the current position of the turtle.
In the above code, three pens have been used to create a shape similar to the letter 'T'. All the three straight lines are mutually perpendicular.
The output of the code shown above will be 270.0. The function heading() returns the heading of the turtle, a value in degrees, counter-clockwise from the horizontal right. The output shape of this code is a straight line pointing downwards.
The code shown above prints the month number from the system date. Therefor the output will be 8 if the system date is 18th August, 2016.
Each number is mapped into a string of length 2.