Chapter 3 Functions

Description

AS - Level Computer Science (CS 1101 Python) Flashcards on Chapter 3 Functions, created by Troy Bowlin on 01/05/2016.
Troy Bowlin
Flashcards by Troy Bowlin, updated more than 1 year ago
Troy Bowlin
Created by Troy Bowlin over 8 years ago
12
0

Resource summary

Question Answer
Function A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.
Function Definition A statement that creates a new function, specifying its name, parameters, and the statements it executes.
Function Object A value created by a function definition. The name of the function is a variable that refers to a function object.
Header The first line of a function definition.
Body The sequence of statements inside a function definition.
Parameter A name used inside a function to refer to the value passed as an argument.
Function Call A statement that executes a function. It consists of the function name followed by an argument list.
Argument A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
Local Variable A variable defined inside a function. A local variable can only be used inside its function.
Return Value The result of a function. If a function call is used as an expression, the return value is the value of the expression.
Fruitful Function A function that returns a value.
Void Function A function that doesn’t return a value.
Module A file that contains a collection of related functions and other definitions.
Import Statement A statement that reads a module file and creates a module object.
Module Object A value created by an import statement that provides access to the values defined in a module.
Dot Notation The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.
Composition Using an expression as part of a larger expression, or a statement as part of a larger statement.
Flow of Execution The order in which statements are executed during a program run.
Stack Diagram A graphical representation of a stack of functions, their variables, and the values they refer to.
Frame A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
Traceback A list of the functions that are executing, printed when an exception occurs.
Show full summary Hide full summary

Similar

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr