
Ojo's Python Class 2
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Ojo Ilesanmi
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Python module is a file with the _____ file extension that contains valid Python code.
.module
.pymodule
.pym
.py
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To use a module in another module, you must import it using an ________ statement.
import
transfer
from
to
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Suppose a function called add() is defined in a module called adder.py. Which of the following code snippets correctly show how to import and use the add() function? Select all that apply.
import adder
result = adder.add(2, 3)
import add from adder
result = add(2, 3)
from adder import add
result = add(2, 3)
from adder import add
result = adder.add(2, 3)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many except statements can a try-except block have?
zero
one
more than one
more than zero
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When will the else part of try-except-else be executed?
always
when an exception occurs
when no exception occurs
when an exception occurs in to except block
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is the finally block executed?
when there is no exception
when there is an exception
only if some condition that has been specified is satisfied
always
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
DP-900 MÓDULO 4 pt-br
Quiz
•
Professional Development
20 questions
Competencia TIC
Quiz
•
Professional Development
15 questions
JDBC_Objective_Exam_2
Quiz
•
Professional Development
15 questions
Soal Tentang RAM
Quiz
•
Professional Development
18 questions
IT basic test
Quiz
•
Professional Development
20 questions
Software Development and SuccessMaker Quiz
Quiz
•
Professional Development
10 questions
PYTHON VOCABULARY
Quiz
•
Professional Development
20 questions
SAIL Virtual Class Kahoot
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
