The following Python code will result in an error.
import turtle
t=turtle.Pen()
t.speed(-45)
t.circle(30)
Select an option to see the answer and solution.
What will be the output of the following code:
import os
print(os.getcwd())
Select an option to see the answer and solution.
To include the use of functions which are present in the random library, we must use the option:
Select an option to see the answer and solution.
Which of the following is false about "from-import" form of import?
Select an option to see the answer and solution.
What will be the output of the following Python code?
import datetime
d=datetime.date(2017,06,18)
print(d)
Select an option to see the answer and solution.
Which of the following functions can accept more than one positional argument?
Select an option to see the answer and solution.
The output of the functions len("abc") and sys.getsizeof("abc") will be the same.
Select an option to see the answer and solution.
The pickle module defines . . . . . . . . exceptions and exports . . . . . . . . classes.
Select an option to see the answer and solution.
The module . . . . . . . . is a comparatively faster implementation of the pickle module.
Select an option to see the answer and solution.
What is returned by int(math.pow(3, 2))?
Select an option to see the answer and solution.
What will be the output of the following Python code?
random.randrange(1,100,10)
Select an option to see the answer and solution.
What is returned by math.isfinite(float('nan'))?
Select an option to see the answer and solution.
The command used to set only the x coordinate of the turtle at 45 units is:
Select an option to see the answer and solution.
Which of the following functions helps us to randomize the items of a list?
Select an option to see the answer and solution.
Which of the following is false about "import modulename" form of import?
Select an option to see the answer and solution.
Which of the following Python codes will result in an error?
object = ‘a’
Select an option to see the answer and solution.
What does the function math.frexp(x) return?
Select an option to see the answer and solution.
What is the range of values that random.random() can return?
Select an option to see the answer and solution.
The output of the following Python code is either 1 or 2.
import random
random.randint(1,2)
Select an option to see the answer and solution.
Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?
Select an option to see the answer and solution.