Python Definitions

Quiz
•
Computers, Education
•
10th - 12th Grade
•
Medium
Carol Luce
Used 20+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What term is used to describe data passed into a definition?
Variable
Loop
Constant
Parameter
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you correctly call this function definition?
def(1)
x=square( )
defSquare(4)
x=square(5)
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following keywords marks the begining of the function block?
Func
define
def
function
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a variable defined outside (i.e. in the main code) all the definitions referred to as?
A static variable
A global variable
A local variable
An automatic variable
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a variable defined inside a definition referred to as?
A static variable
A global variable
A local variable
An automatic variable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be PRINTED?
nothing
5
6
an error message
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
When writing a definition, it must occur before it is called.
true
false
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Global and local variables

Quiz
•
10th - 12th Grade
16 questions
Subroutines

Quiz
•
9th - 11th Grade
16 questions
C-Programming Basics

Quiz
•
12th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
14 questions
GCSE Computing - Subprograms

Quiz
•
9th - 10th Grade
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
13 questions
Python Functions

Quiz
•
9th - 12th Grade
17 questions
GCSE Computer Science - Python Programming Concepts

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade