Introduction to Python Programming In-class activity exam questions and complete correct answers
A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is . 1. code reuse 2. divide and conquer 3. debugging 4. facilitation of teamwork - correct answer A The first line of a function definition is known as the . 1. body 2. introduction 3. initialization 4. header - correct answer D You ____ a function to execute it. 1. define 2. call 3. import 4. export - correct answer B A ____ is a variable that is created inside a function. 1. global variable 2. local variable
Written for
- Institution
- Introduction to Python Programming
- Course
- Introduction to Python Programming
Document information
- Uploaded on
- December 20, 2023
- Number of pages
- 22
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
introduction to python programming