
Form III - Python Functions and Data Structures Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Kiers Mcfarlane
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an advantage of using functions in Python?
Criterion 1: Evaluate and select information sources based on their appropriateness to specific tasks
They make code longer.
They allow you to reuse code efficiently.
They make the code harder to debug.
They increase the risk of errors in the program.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the return statement do in a Python function?
Criterion 2: Apply reasoning to solve real-world problems in various contexts
It sends a result back to the function.
It loops through the function.
`return` terminates the function and sends a result back.
It skips the function.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would correctly add an item to a list in Python?
Criterion 2: Apply reasoning to solve real-world problems in various contexts
friends.add("Diana")
friends.append("Diana")
friends.insert("Diana")
friends.update("Diana")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is true about Python dictionaries?
Criterion 1: Evaluate and select information sources based on their appropriateness to specific tasks
They store items in a specific order.
They store key-value pairs.
They can only store strings as values.
They cannot be changed once created.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you try to access a key that doesn’t exist in a Python dictionary?
Criterion 2: Apply reasoning to solve real-world problems in various contexts
The program crashes.
`KeyError` is raised.
It returns an empty string.
It returns `None`.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which block of code correctly handles an exception when a user inputs a non-integer value?
Criterion 1: Evaluate and select information sources based on their appropriateness to specific tasks
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is most suitable for storing and accessing information about a student's name, age, and subjects?
Criterion 1: Evaluate and select information sources based on their appropriateness to specific tasks
Access all questions and much more by creating a free account
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
14 questions
Computing figures
Quiz
•
4th - 12th Grade
13 questions
Podsumowanie: binarny, komputer, sieć
Quiz
•
7th Grade - University
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Aspek Legal TIK
Quiz
•
12th Grade
10 questions
python-BTxâu
Quiz
•
9th - 12th Grade
14 questions
TRENDS IN ICT
Quiz
•
12th Grade
10 questions
Baze de date-Design
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
