
Form III - Python Functions and Data Structures Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Kiers Mcfarlane
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
10 questions
Conditional statements in python

Quiz
•
11th - 12th Grade
10 questions
Python Exception Handling

Quiz
•
10th - 12th Grade
10 questions
Python Orientado a Objetos

Quiz
•
12th Grade - University
10 questions
Random functions

Quiz
•
12th Grade
15 questions
Section 3D: Collect and process data using dictionaries

Quiz
•
12th Grade
10 questions
What is the Icon?

Quiz
•
KG - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade