Which of the following does NOT describe a specific purpose of using functions in code?
Select ALL that apply.
CS Python Fundamentals Quiz 7 Review
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Scott Chamberlain
Used 9+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Which of the following does NOT describe a specific purpose of using functions in code?
Select ALL that apply.
To simplify code through abstraction.
To prompt the user for input.
To allow for re-use of code.
To stop a program from repeating,
To improve the debugging process.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Python keyword used to create a function?
fun
cre
begin
def
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable received in the definition of a function is called a(an)
argument
parameter
boolean
library
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many parameters are optional for the function defined below?
def heatcheck(a, m, c=0, q=1)
0
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is output by the program shown here?
7
10
11
14
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is output by the program shown here?
2
5
7
10
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is output by the program shown here if the user enters 8 and 9?
0
17
64
72
81
10 questions
Thunkable quiz
Quiz
•
8th - 9th Grade
10 questions
GCSE - Flowcharts
Quiz
•
11th Grade
10 questions
Pseudocode WHILE Loops
Quiz
•
10th - 12th Grade
14 questions
Arduino
Quiz
•
12th Grade
10 questions
Python Input/Output
Quiz
•
9th - 12th Grade
12 questions
Hummingbird Robotics
Quiz
•
6th - 9th Grade
14 questions
9.1.2 - Starter Quiz
Quiz
•
7th - 11th Grade
10 questions
Global and local variables
Quiz
•
10th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University