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
Which code should you use to import a function named abc from a Python module named xyz?
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 Wayground
60 questions
Simulado Certificação-ADM-Salesforce

Quiz
•
Professional Development
65 questions
Leasing Agent IT Quiz

Quiz
•
Professional Development
61 questions
Breville SOP Up Training

Quiz
•
Professional Development
60 questions
English Language Diagnostic Assessment by the Technology

Quiz
•
Professional Development
64 questions
Security+ Phase 4

Quiz
•
Professional Development
60 questions
JOE 13 Scrum Foundation 3

Quiz
•
Professional Development
60 questions
RESEARCH Midterm Exam

Quiz
•
Professional Development
59 questions
Quiz MASS

Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade