Python Cert - Day 4 (PM)

Quiz
•
Computers
•
12th Grade
•
Hard

Bobby Liu
Used 1+ times
FREE Resource
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 6 pts
A function definition starts with the keyword:
def
function
fun
2.
MULTIPLE CHOICE QUESTION
20 sec • 6 pts
A function definition:
cannot be placed among other code
may be placed anywhere inside the code after the first invocation
must be placed before the first invocation
3.
MULTIPLE CHOICE QUESTION
20 sec • 6 pts
A function parameter is a kind of variable accessible:
only after the function definition's completion
anywhere in the code
only inside the function
4.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
A way of passing arguments in which the order of the arguments determines the initial parameters' values is referred to as:
positional
ordered
sequential
keyword
5.
MULTIPLE SELECT QUESTION
45 sec • 6 pts
Which of the following statements are TRUE? (Select TWO answers)
The return keyword may cause the function to return a value
The return keyword forces the function's execution to terminate
The return keyword forces the function to restart its execution
6.
MULTIPLE CHOICE QUESTION
20 sec • 6 pts
None keyword designates:
a None value
a function which doesn't return a value
an empty instruction
7.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
A variable defined outside a function:
may not be accessed in any way inside the function
may be read, but not written (something more is needed to do so)
may be freely accessed inside the function
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
Spring Final Review Part II

Quiz
•
9th - 12th Grade
34 questions
Project STEM AP CS A Unit 1

Quiz
•
9th - 12th Grade
30 questions
Python L1 Programming Challenge

Quiz
•
1st - 12th Grade
35 questions
[AP CSP] Programming with Conditionals [If, Elif, Else]

Quiz
•
9th Grade - University
29 questions
Python Y10

Quiz
•
4th - 12th Grade
35 questions
JavaScript Control Flow and Loops.

Quiz
•
10th Grade - University
29 questions
Computing Basics

Quiz
•
12th Grade
31 questions
pyplot line and bar only

Quiz
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade