INSY 3300 Review Chapter 5 Exam Questions and Answers 100% Verified and Updated
INSY 3300 Review Chapter 5 Exam Questions and Answers 100% Verified and Updated 1. A group of statements that exist within a program for the purpose of performing a specific task is a(n) __________. a. block b. parameter c. function d. expression - Answer- c. function A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is __________. a. code reuse b. divide and conquer c. debugging d. facilitation of teamwork - Answer- a. code reuse The first line of a function definition is known as the __________. a. body b. introduction c. initialization d. header - Answer- d. header You __________ a function to execute it. a. define b. call c. import d. expor - Answer- b. call A design technique that programmers use to break down an algorithm into functions is known as __________. a. top-down design b. code simplification c. code refactoring d. hierarchical subtasking - Answer- a. top-down design A __________ is a diagram that gives a visual representation of the relationships between functions in a program. a. flowchart b. function relationship chart c. symbol chart d. hierarchy chart - Answer- d. hierarchy chart The _____________ keyword is ignored by the Python interpreter and can be used as a placeholder for code that will be written later. a. placeholder b. pass c. pause d. skip - Answer- b. pass A __________ is a variable that is created inside a function. a. global variable b. local variable c. hidden variable d. none of the above; you cannot create a variable inside a function - Answer- b. local variable A(n) __________ is the part of a program in which a variable may be accessed. a. declaration space b. area of visibility c. scope d. mode - Answer- c. scope A(n) __________ is a piece of data that is sent into a function. a. argument b. parameter c. header d. packet - Answer- a. argument
Written for
- Institution
- INSY 3300
- Module
- INSY 3300
Document information
- Uploaded on
- March 28, 2024
- Number of pages
- 9
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
insy 3300 review chapter 5 exam questions and answ
Also available in package deal