
Chapter 12 Exam Review
Authored by Ashley Brown
Information Technology (IT)
8th Grade
Used 25+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you identify the statements that belong to the body of a function?
Indent those statement the same amount underneath the function "def" statement
Add the "def" keyword to the beginning of each statement
Add opening and closing curly braces { and } to mark the start and stop of the function body
Add the same comment (#) to the right of each statement within the body
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What character should be placed at the end of the function "def" line, after the parentheses?
Hashtag (#)
Colon (:)
Exclamation (!)
Dash (-)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword marks a spot in a function where the program flow will go back to the calling code?
continue
jump
return
break
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a function named "mystery" is defined as taking no parameters, how would you call that function from your code?
mystery
mystery()
# mystery
mystery[ ]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes where you should define your function in your code?
Near the top of the source file, before that function is called by any main program code
Near the bottom of the source file, after that function is called by any main program code
Always place functions in a separate source file
The location is not important, so place the function wherever you like
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the code below, which printed output will appear first when the code runs?
BOO
I'm not afraid of ghosts
Syntax error - haunted() is not a valid function name
Runtime exception - the haunted() function is called with incorrect parameters
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a Python rule for naming functions?
Function names must be less than 32 characters
Function names can contain letters, numbers and underscores
The first character in a function name cannot be a number
Function names are case-sensitive
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
18 questions
IT Career and College Pathways
Quiz
•
8th Grade
20 questions
CAT 1 BASIC 8 COMPUTING
Quiz
•
8th Grade
19 questions
Communications Essentials L1
Quiz
•
6th - 8th Grade
15 questions
NETWORK HARDWARE
Quiz
•
8th Grade
20 questions
AI Vs Robots Revision
Quiz
•
8th Grade
15 questions
Data Literacy Quizizz
Quiz
•
6th Grade - University
20 questions
PTS INFORMATIKA SEMESTER GENAP
Quiz
•
8th Grade - University
15 questions
WordPress Quiz
Quiz
•
8th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
7 questions
SMS Playground Expectations Quiz
Quiz
•
6th - 8th Grade
16 questions
Mario Trivia Challenge
Quiz
•
6th - 8th Grade
14 questions
SMS Car & Bus Expectations Quiz
Quiz
•
6th - 8th Grade
20 questions
Scatter Plots and Line of Best Fit
Quiz
•
8th Grade
12 questions
8th U6 L4 - Fitting a Line to Data
Quiz
•
8th Grade
22 questions
Phases of the moon
Quiz
•
8th Grade