Test 2 Flashcards
File object
Object in a specific file
Method
Belongs to and operates with a specific object
Record
Set of data for one item
Field
Single piece of data within a record
Traceback
Error message that gives information on the exception
Exception handler
Code that prevents program to crash from an exception
Function
Group of statements in a program that perform specific task
Modularized program
Program where each task is it’s own function
Void Function
Executes the statements then terminates
Value returning function
Returns value to the statement that called it
Local variable
variable assigned to a value within a function
scope
part of the program where the variable can be accessed.
argument
piece of data sent into the argument
Parameter variable
variable that is assigned the value of an argument when the function is called
Global Variable
assignment statement written outside of all functions
Standard Library
library of pre-written functions that come with Python
Modules
files that store functions of the standard library
IPO Chart
Describes the Input, Processing, and Output of a function
Boolean function
Returns true or false
Repetition structure (loop)
Repeats the function as much as necessary
While loop
While statement is true do this (pretest loop)
Count Controlled loop
Iterates a specific number of times
sentinel
Special character that marks the end of a sequence of variables
Input Validation
Inspecting the value before being processed
Nested loop
A loop that contains another loop