CIS*1500 Lecture 4: Functions Vocabulary

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering core concepts of Python functions, module dot notation, flow of execution, function classifications, and design recipes.

Last updated 10:53 PM on 10/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

22 Terms

1
New cards

Function

A named sequence of statements that performs a computation.

2
New cards

Argument

The value passed into a function inside parentheses during a function call, which can be a literal, a variable, or an expression.

3
New cards

Return Value

The value that comes back out of a function call and takes the place of the call in an expression.

4
New cards

max()

A built-in function that returns the largest value among its arguments or within a sequence.

5
New cards

min()

A built-in function that returns the smallest value among its arguments or within a sequence.

6
New cards

len()

A built-in function that returns the total number of items or characters in its argument.

7
New cards

Type Conversion Functions

Built-in functions such as int(), float(), and str() that take a value of one type and return a new value of a different type without modifying the original value.

8
New cards

Truncation

The process performed by int() on float values where the fractional part is chopped off toward zero rather than rounded.

9
New cards

Module

A file containing related functions and variables that can be imported and used in a program.

10
New cards

Dot Notation

The syntax used to access functions or variables inside an imported module by writing the module name, followed by a dot, and then the function or variable name.

11
New cards

def Keyword

The Python keyword used to define a new user-made function.

12
New cards

Function Object

The object created in memory when a function definition statement is executed, which the function's name references.

13
New cards

Flow of Execution

The order in which program statements are executed, proceeding top-to-bottom, where function calls act as detours rather than permanent jumps.

14
New cards

Parameter

The variable name listed inside a function definition's parentheses that refers to the argument value handed into the function.

15
New cards

Local Variable

A variable defined inside a function body that is private to that function, created when called and destroyed upon return.

16
New cards

Fruitful Function

A function that explicitly hands back a value using a return statement.

17
New cards

Void Function

A function that performs an action (such as printing to the screen or writing to a file) but does not return a meaningful value, returning None instead.

18
New cards

None

A unique value of type NoneType used by Python to indicate the absence of a value, such as what is returned by a void function.

19
New cards

Decomposition

The practice of breaking a large program down into smaller, manageable function components.

20
New cards

Design Recipe

A six-field documentation template (Purpose, Parameters, Returns, Effects, Example, Assumption) written before a function body to describe what it does.

21
New cards

Effects (Design Recipe)

The field in a design recipe that documents external changes a function causes outside itself, such as printing output or altering a file.

22
New cards

Example (Design Recipe)

The field in a design recipe showing an actual call to the function alongside its precise expected return value.