Font size
WorksheetsPython Libraries
Total questions: 9
Worksheet time: 5mins
This program will produce
a random number between 10 and 100 (including 10 but not 100) always in increments of 10
a random number between 10 and 100 (including 10 and 100) always in increments of 10
10 random numbers between 10 and 100 (including 10 and 100)
10 random numbers between 10 and 100 (including 10 and not 100)
This code is equivalent to
random.randint(1,11)
random.randint(1,10)
random.randrange(1,11,1)
random.randrange(1,10,1)
Which file must be part of the folder containing python module files to make it importable python package?
init.py
_setup_.py
_init_.py
setup.py
What does this expression result in
32
64
16
128
Which operator is used in python to import all modules from packages?
. operator
* operator
-> symbol
, operator
What is the extension of python library modules?
.mod
.lib
.code
.py
How do you tell python you want to use the turtle library
turtle import
import turtle
from libraries import turtle
from turtle import libraries
Which of these commands would successfully create a turtle named Alice
Alice = turtle.turtle()
Alice = Turtle.turtle()
Alice = Turtle.Turtle()
Alice = turtle.Turtle()
In python which is the correct method to load a module math?
include math
import math
#include<math.h>
using math
