
Skill #6 - Modules Python

Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Medium
Marissa Montes
Used 5+ times
FREE Resource
9 questions
Show all answers
1.
DROPDOWN QUESTION
2 mins • 1 pt
You want to create a code that will show the full name of the current month:
(a)
TD = (b)
print(%B(TD, (c) ))
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Our program begins with the following line.
result = 5**6
Which code can replace it?
result = math.exp(5,6)
result= math.pow(5,6)
import math
result = math.pow(5,6)
result = pow(5,6)
import math
result = math.exp(5,6)
3.
DRAG AND DROP QUESTION
1 min • 1 pt
What those the following modules do?
os.path -> (a)
sys - > (b)
os -> (c)
math - > (d)
datetime -> (e)
4.
DROPDOWN QUESTION
1 min • 1 pt
We have defines a list using the following code:
a = [16,44,3,87,23,98,1]
Select the proper functions to fill the equations:
(a) (a) = 272
(b) (a) = 1
(c) (a)=98
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing program that will use a lot of math functions. Which is the proper way to import all of them to avoid typing the name of the library (math) before calling each one?
from math import all
import math.*
from math import *
import math.all
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select the output that could be generated by the following code:
import random
print(format(random.random(),"1.2f"))
5.65
0.2356
0.99
14.3
0.00
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
You want your code to generate a random integer number larger or equal to 1 and smaller or equal to 25. Select the lines that can complete the code.
random.randint(1,25)
random.randint(1,26)
random.randrange(1,26)
random.randrange(1,25)
int(random.random()*25)
8.
MATCH QUESTION
1 min • 1 pt
Sort the result of the functions from lower (at the bottom) to higher (at the top)
math.floor(23.6)
Level 1 - Highest Value
math.ceil(21.6)
Level 2
round(23.6)
Level 4
int(20.6)
Level 3
trunc(21.3)
Level 5 - Lowest Value
9.
DROPDOWN QUESTION
1 min • 1 pt
(a)
number = 0
while (number < 1 or number >6):
try:
number =int(input("Between 1- 6: "))
except: continue
dice = (b)
print("Dice = ", dice, " and your number", number)
if number == dice:
print("You Win!")
else:
print("You Loose!!")
Similar Resources on Wayground
12 questions
Основи Python

Quiz
•
7th - 12th Grade
5 questions
Intro to Python Project Stem Unit 2 Vocab Test

Quiz
•
9th - 12th Grade
11 questions
Python Code Output Quiz

Quiz
•
12th Grade
10 questions
C++

Quiz
•
9th - 12th Grade
7 questions
szyfry informatka

Quiz
•
9th - 12th Grade
10 questions
Basic Ms Excel

Quiz
•
9th Grade
10 questions
INTRODUCTION TO COMPUTER SYSTEMS SERVICING

Quiz
•
12th Grade
7 questions
EDUTAINMENT VS PUBLIC EDUCATION

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Biomolecules

Quiz
•
9th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade