Title: Competency 3 Practice Quiz
Course: Programming Fundamentals I > Section: Practice Quizzes

Q: A _______  ________  is a program wherein each task within the program is in its own function
A: modularized program

Q: Some of the benefits of using functions include:
- able to reuse code
- great for independent work
- faster development
- simpler code
A: able to reuse code; faster development; simpler code

Q: When naming a function, the first character must be a number
- True
- False
A: False

Q: A function header begins with the word def, and must include ( ) and a colon
- True
- False
A: True

Q: A   ___________   is a set of statements that belong together as a group
A: block

Q: ____________   is the part of a program in which a variable may be accessed
A: scope

Q: A variable that is declared inside a function is a __________  ___________
A: local variable

Q: __________ are the variables that receive pieces of data in a function call
A: parameters

Q: Which is a reason to avoid using global variables?
- any statement in a program can change the variable
- any program can access the variable
- the variable may only be used once in a program
- global variables use more memory
A: any statement in a program can change the variable

Q: A function definition has what two part ________ and ________
A: header block