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
What is an advantage of using local variables?
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 Wayground
15 questions
Congruent Triangles

Flashcard
•
10th Grade
15 questions
12.9 Similar Figures

Flashcard
•
10th Grade
15 questions
Similar triangles

Flashcard
•
9th - 10th Grade
15 questions
Similar Triangles

Flashcard
•
9th - 10th Grade
14 questions
7517 04 Subroutines local and global variables

Flashcard
•
10th Grade - University
15 questions
Solving similar triangles

Flashcard
•
10th Grade
15 questions
CPCTC Practice

Flashcard
•
10th Grade
15 questions
Similar Triangles

Flashcard
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade