Which code should you use to import a function named abc from a Python module named xyz?
Broken Python(Practice Test)

Quiz
•
Professional Development
•
Professional Development
•
Medium

Python People
Used 18+ times
FREE Resource
63 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import abc
from xyz import abc
import abc from xyz
import mod xyz fn abc
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When using Python, which mathematic operation returns a value of 2?
42 / 4
42 / / 4
42 % 4
42 ** . 4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When using Python, what is the result of the mathematic operation 1 ** (2 * 3) / 4 + 5?
0.11
0.67
5.25
6.50
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function from the math module can you use to round up the number 12.34 to 13?
math.cell()
math.float()
math.floor()
math.trunc()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function returns only whole, even numbers from within the range from 1 to 100?
random.choice(1, 100, even)
random.randint (1, 100, 2)
random.randrange(2, 101, 2)
random.uniform(1, 100)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: A datetime.timedelta object stores only days, seconds, and microseconds.
True
False
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which two statements about the pydoc module are true?
It generates documentation from the docstrings in a module.
It generates documentation for a module without importing it.
It imports a module and then generates documentation for the module.
It automatically suppresses module functions from running while generating documentation for the module.
Create a free account and access millions of resources
Similar Resources on Quizizz
58 questions
Retro Sprint 0

Quiz
•
Professional Development
60 questions
PRINCE 2 - Sample Paper 1 (60Q)

Quiz
•
Professional Development
66 questions
CNC Machine Parts

Quiz
•
Professional Development
60 questions
Evaluación Diagnóstica Java React Node

Quiz
•
Professional Development
60 questions
8202 March 2022

Quiz
•
Professional Development
58 questions
UK Driving Test

Quiz
•
Professional Development
59 questions
Mulesoft Practice Test

Quiz
•
Professional Development
59 questions
CompTIA Project+ Practice Tests, Chapter #1 questions #1-59

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade