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.
Flashcards
194
Students
2
Language
English
Category
Computer Science
Level
Other
Created / Updated
29.01.2018 / 30.01.2018

Flashcards

optional argument:

A function or method argument that is not required.

invocation:

A statement that calls a method.

counter:

A variable used to count something, usually initialized to zero and then incremented.

search:

A pattern of traversal that stops when it finds what it is looking for.

traverse:

To iterate through the items in a sequence, performing a similar operation on each.

immutable:

The property of a sequence whose items cannot be changed.

empty string:

A string with no characters and length 0, represented by two quotation marks.

slice:

A part of a string specified by a range of indices.

index:

An integer value used to select an item in a sequence, such as a character in a string. In Python indices start from 0.

item:

One of the values in a sequence.

sequence:

An ordered collection of values where each value is identified by an integer index.

object:

Something a variable can refer to. For now, you can use “object” and “value” interchangeably.

algorithm:

A general process for solving a category of problems.

infinite loop:

A loop in which the terminating condition is never satisfied.

iteration:

Repeated execution of a set of statements using either a recursive function call or a loop.

decrement:

An update that decreases the value of a variable.

increment:

An update that increases the value of a variable (often by one).

initialization:

An assignment that gives an initial value to a variable that will be updated.

update:

An assignment where the new value of the variable depends on the old.

reassignment:

Assigning a new value to a variable that already exists.

guardian:

A programming pattern that uses a conditional statement to check for and handle circumstances that might cause an error.

scaffolding:

Code that is used during program development but is not part of the final version.

incremental development:

A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.

dead code:

Part of a program that can never run, often because it appears after a return statement.

temporary variable:

A variable used to store an intermediate value in a complex calculation.

infinite recursion:

A recursion that doesn’t have a base case, or never reaches it. Eventually, an infinite recursion causes a runtime error.

base case:

A conditional branch in a recursive function that does not make a recursive call.

recursion:

The process of calling the function that is currently executing.

return statement:

A statement that causes a function to end immediately and return to the caller.

nested conditional:

A conditional statement that appears in one of the branches of another conditional statement.

chained conditional:

A conditional statement with a series of alternative branches.

branch:

One of the alternative sequences of statements in a conditional statement.

compound statement:

A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.

condition:

The boolean expression in a conditional statement that determines which branch runs.

conditional statement:

A statement that controls the flow of execution depending on some condition.

logical operator:

One of the operators that combines boolean expressions: and, or, and not.

relational operator:

One of the operators that compares its operands: ==, !=, >, <, >=, and <=.

boolean expression:

An expression whose value is either True or False.

modulus operator:

An operator, denoted with a percent sign (%), that works on integers and returns the remainder when one number is divided by another.

floor division:

An operator, denoted //, that divides two numbers and rounds down (toward negative infinity) to an integer.

Study