

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Worksheet for Python Functions ADVANCED FUNCTION DRILLS 2026 GUARANTEED PROGRESS GRADED A+
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


● Divide and Conquer. Answer: A large task is divided into several smaller tasks that are easily performed. ● Modularized Program. Answer: a program that has been written with each task in its own functions ● Void Functions. Answer: It simply executes the statements it contains and then terminates ● Value-Returning Function. Answer: it executes the statements that it contains, and then it returns a value back to the statement that called it. Ex: int and float ● Function Header. Answer: the first line of a function. Begins with the key word def, followed by te name of the function. ● Block. Answer: A set of statements that belong together as a group.
● Message function. Answer: contains a block with two statements. Executing the function will cause these statements to execute. ● Returns. Answer: When the end of the block is reached, the interpreter jumps back to the part of the program that called the function, and the program resumes execution at that point. ● Mainline logic. Answer: the overall logic of the program. ● Flowchart. Answer: A function call is shown with a rectangle that has vertical bars at each side ● Top-down design. Answer: When the programmer begins by looking at the topmost level of tasks that must be performed and then breaks down those tasks into lower levels of subtasks. ● Hierarchy Chart. Answer: shows boxes that represent each function in a program ● Local variable. Answer: created inside a function and can't be accessed by statements that are outside the functions. ● Variable's scope. Answer: Part of a program in which the variable may be accessed.