What is an advantage of using local variables?
Procedures and Functions

Flashcard
•
Computers
•
10th Grade
•
Hard
Aneke Chimezie
Used 1+ times
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
They allow variable identifiers to be reused each time
2.
FLASHCARD QUESTION
Front
What term is used to describe data passed into/out of a program?
Back
Parameter
3.
FLASHCARD QUESTION
Front
Correct syntax to create a subroutine to roll a dice? Options: def dice roll ():, def diceroll (), def diceroll ():, def diceroll []:
Back
def diceroll ():
4.
FLASHCARD QUESTION
Front
What would the output be from the program shown here? (assuming that the user enters "John" and "Smith")
Back
Error
5.
FLASHCARD QUESTION
Front
What is the difference between a subroutine and a function?
Back
A function passes values back out to the program, a subroutine does not
6.
FLASHCARD QUESTION
Front
Which of the following statements is not true?
- Functions/subroutines are examples of reusable code
- Functions and subroutines are always appropriate in programs
- Using functions/subroutines make it easier to "deconstruct" a problem into smaller pieces
- They can make programs easier to read and understand
Back
Functions and subroutines are always appropriate in programs
7.
FLASHCARD QUESTION
Front
Order of processing lines in Python: 4, 1, 2, 4, 2, 1, 1, 2, 3, 4, 3, 1, 2
Back
4, 1, 2
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
Python [Basic]

Flashcard
•
KG
20 questions
Python

Flashcard
•
11th Grade
21 questions
Tuần 26- Ôn tập Python - Trắc nghiệm

Flashcard
•
10th Grade
11 questions
Function in Python

Flashcard
•
KG
14 questions
Tracy Python control structures vocab study flashcards

Flashcard
•
10th Grade
19 questions
Basics Python

Flashcard
•
8th - 10th Grade
15 questions
Python Tuples Review

Flashcard
•
11th Grade
18 questions
Python Basics Review

Flashcard
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade