Python Functions and Error Handling
Quiz
•
Computers
•
10th Grade - University
•
Practice Problem
•
Hard
Deb Gray
Used 90+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an advantage of using local variables?
They allow the variable to be used throughout the whole program
They allow variable identifiers to be reused each time
They are easier to program than global variables
A wider range of data types can be used
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What term is used to describe data passed into/out of a program?
Variable
Loop
Constant
Parameter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Leo wants to create a function that will roll a dice. Which syntax is correct?
def dice roll ():
def diceroll ()
def diceroll ():
def diceroll []:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output of this program be when it is run?
Nothing
Hello, world
It will generate an error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program if the user enters "Han" and then "Solo"?
An error
Nothing
first surname
Han Solo
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following best describes the order in which these lines are processed in Python?
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How do you correctly call this function
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
20 questions
Quiz
•
7th - 12th Grade
21 questions
Lecture Exercise Topic 1.3
Quiz
•
12th Grade
15 questions
Firewall and Network Security
Quiz
•
University
20 questions
Software
Quiz
•
10th Grade
17 questions
Data Structures: 1D,2D & List
Quiz
•
11th Grade
20 questions
Quiz ASJ
Quiz
•
12th Grade
15 questions
DBC CHAPTER 3 - REVISION
Quiz
•
University
20 questions
Computer Science - X
Quiz
•
8th - 10th Grade
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
