Glossary


J. S.
This flashcard set covers advanced programming concepts and techniques, focusing on functions, objects, and data structures. It delves into topics like object-oriented programming, functional programming styles, and various data types such as lists, dictionaries, and strings. The flashcards explore programming paradigms, error handling, and operations like filtering, mapping, and reducing sequences. This set is ideal for programmers looking to deepen their understanding of programming languages and best practices, providing insights into both theoretical concepts and practical applications.
Karten
194
Lernende
2
Sprache
Englisch
Kategorie
Informatik
Stufe
Andere
Erstellt / Aktualisiert
29.01.2018 / 30.01.2018

Lernkarten

postcondition:

A requirement that should be satisfied by the function before it ends.

precondition:

A requirement that should be satisfied by the caller before a function starts.

docstring:

A string that appears at the top of a function definition to document the function’s interface.

development plan:

A process for writing programs.

refactoring:

The process of modifying a working program to improve function interfaces and other qualities of the code.

interface:

A description of how to use a function, including the name and descriptions of the arguments and return value.

keyword argument:

An argument that includes the name of the parameter as a “keyword”.

generalization:

The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter).

encapsulation:

The process of transforming a sequence of statements into a function definition.

loop:

A part of a program that can run repeatedly.

method:

A function that is associated with an object and called using dot notation.

traceback:

A list of the functions that are executing, printed when an exception occurs.

frame:

A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.

stack diagram:

A graphical representation of a stack of functions, their variables, and the values they refer to.

flow of execution:

The order statements run in.

composition:

Using an expression as part of a larger expression, or a statement as part of a larger statement.

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.

module object:

A value created by an import statement that provides access to the values defined in a module.

import statement:

A statement that reads a module file and creates a module object.

module:

A file that contains a collection of related functions and other definitions.

None:

A special value returned by void functions.

void function:

A function that always returns None.

fruitful function:

A function that returns a value.

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.

local variable:

A variable defined inside a function. A local variable can only be used inside its function.

argument:

A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.

function call:

A statement that runs a function. It consists of the function name followed by an argument list in parentheses.

parameter:

A name used inside a function to refer to the value passed as an argument.

body:

The sequence of statements inside a function definition.

header:

The first line of a function definition.

function object:

A value created by a function definition. The name of the function is a variable that refers to a function object.

function definition:

A statement that creates a new function, specifying its name, parameters, and the statements it contains.

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.

semantic error:

An error in a program that makes it do something other than what the programmer intended.

semantics:

The meaning of a program.

exception:

An error that is detected while the program is running.

syntax error:

An error in a program that makes it impossible to parse (and therefore impossible to interpret).

comment:

Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.

concatenate:

To join two operands end-to-end.

order of operations:

Rules governing the order in which expressions involving multiple operators and operands are evaluated.

Lernen