CS 1301 Exam 3 Vocabulary
Jay Summet - Georgia Tech - Spring 2015
Terms in this set (53)
A step-by-step process for solving a category of problems
A formal sequence of instructions like a program or recipe.
A value provided to a function when the function is
called. This value is assigned to the corresponding parameter in the function.
Sequence of statements with the same indentation level
A segment of code that evaluates to a True or False value
A statement that controls the flow of execution depending on some condition.
In Python the keywords if, elif, and else are used for these
To simplify an expression by performing the operations in order to yield a single value
A Python data type' Stored internally in two parts: a base and an exponent. When printed in the standard format, they look like decimal numbers. Beware of rounding errors when you use these, and remember that they are only approximate values
flow of execution
The order in which statements are executed during a program run
A named sequence of statements that performs some useful operation. It may or may not take parameters and may or may not produce a result
A (compound) data type which cannot be modified.
Both as a noun and as a verb; means to increase by 1
A numerical data type that stores numbers without a fractional component (such as -3, 5, 0, etc...)
The repeated execution of a set of statements using a loop or recursion.
A reserved word that is used by the compiler to parse program; you cannot use some like if, def, and while as variable names.
A variable that can only be seen (is visible) within
the function that defined it. Once the function returns, it is lost
An operator, denoted with a percent sign ( %), that gives the remainder of an integer division
A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument
A special symbol that represents a simple computation like addition, multiplication, or string concatenation; they perform an action on one or more operands; When evaluated, they perform action on their operands, and produce a new value
A name used inside a function to refer to the value
passed as an argument.
a mechanical creature, an automaton
An error that does not occur until the program has started to execute but that prevents the program from continuing.
For example, a divide by zero error
An error (in code) that leads to unexpected behavior. The program functions correctly (does what the code says) but the code does not actually perform the action that
the programmer intended.
A subsequence copied from a sequence specified by a range of indices
Operator is: sequence[start:stop]
A Python data type that holds a string of characters
An error in a program that makes it impossible to parse — and therefore impossible to interpret
To iterate through the elements of a collection, performing a similar operation on each.
An explicit function call that takes a value of one type and computes a corresponding value of another type
A name (more specifically, an identifier) that refers to a value.
Two variables that point to the same data.
In python, the operation of making a complete copy of some data item, such as a picture or a list. This allows you to modify it without affecting the original.
compound data type
A data type in which the values are made up of components, or elements, that are themselves values
Decrease by 1
A collection of key:value pairs that maps from keys to values. The keys can be any immutable value, and the associated value can be of any type.
An error that occurs at runtime
A named entity, usually stored on a hard drive, floppy disk, or CD-ROM, that contains a stream of characters or bytes
A variable that can be seen (is visible) throughout a program module. Defined outside of all functions.
Can be used in multiple regions of a program.
A kind of compound data types whose elements can be assigned new values.
Lists and dictionaries are this value; strings and tuples are not
A list that is an element of another list
A single picture element, or dot, from which images are made
The process of a function calling itself.
The process of calling a function that is already executing
Any of the data types that consist of an ordered collection of elements, with each element identified by an index
short circuit evaluation
A style of programming that shortcuts extra work as soon as the outcome is know with certainty
One of the values in a list (or other sequence), selected using the bracket (indexing) operator.
A piece of code which can be executed as if it were a function but without a name.
(Also a keyword used to create such an anonymous function.)
Sensors that detect internal state. On your scribbler, stall, time and battery voltage are examples of internal sensors
In python 2.x, when you divide two integers (int
data type) the division will return an integer data type (int). Any remainder will be lost
A higher-order function that processes a sequence in some order and accumulates a return value.
A higher-order function that applies a given function to a sequence of elements (such as a list) and returns a sequence of results.