
Python functions and Exceptions

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
+7
Standards-aligned

Barri-Ann Lawrence
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a function ?
A specific name that is a reference to an object.
A block of code that performs a specific task.
Repeating something over and over again.
A set of rules
Tags
CCSS.8.F.A.1
CCSS.HSF.IF.A.1
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output ?
Square of 1 = 1
Square of 2 = 4
Square of 3 = 9
Square of 1 = 1
Square of 1 = 4
Square of 2 = 9
Square of 3 = 1
Square of 3 = 9
Square of 2 = 4
Square of 1 = 1
Tags
CCSS.HSF.IF.A.2
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output ?
40
45
10
15
30
35
Error
Tags
CCSS.HSF.IF.A.2
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output ?
15
25
45
10
20
30
3
5
9
Error
Tags
CCSS.HSF.IF.A.2
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is def ?
Any name given to the function
Any value passed to function
Keyword used to declare a function
Returns value from a function
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output ?
Hello World
Hi
Hello World
Hi
Hello World Hi
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Find the error
missing indentation
In print, p is capital not small
missing colon
It is called define not def
Tags
CCSS.L.9-10.2B
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python (The Basics)

Quiz
•
6th - 10th Grade
20 questions
Getting Started in C Programming

Quiz
•
9th - 10th Grade
20 questions
Python Basic 1

Quiz
•
12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
20 questions
Python WJEC KS4

Quiz
•
10th Grade
20 questions
Grade 7 Python Programming Quiz

Quiz
•
7th 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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade