Shared Flashcard Set

Details

Program Structures
n/a
32
Computer Science
12th Grade
02/21/2013

Additional Computer Science Flashcards

 


 

Cards

Term
program
Definition
a series of coded software instructions to control the operation of a computer
Term
linear (in order from top to bottom)
Definition
order in which program statements are executed
Term
comments (also remarks)
Definition
statements included at the top of the program and in-line in the code to provide documentation and explain the logic
Term
source code
Definition
programming statements written in a higher-level language like COBOL or Python that the user can read and understand
Term
object code
Definition
programming statements written in a lower-level language like Assembly that the computer can read and understand
Term
compilation
Definition
process of translating an entire program from source to object code, with execution after
Term
interpretation
Definition
process of translating, then executing, one statement at a time
Term
syntax
Definition
errors that result from mistyped or incorrectly constructed statements; detected during translation; easy to fix
Term
logic
Definition
errors in the underlying approach to the solution; not always detected during translation; program usually runs with incorrect results
Term
conditional
Definition
statements are only executed when a given condition (criteria) is met
Term
IF-THEN-ELSE
Definition
structure used by most languages to implement conditional statements
Term
equal to - not equal to - less than - less than or equal to - greater then - greater than or equal to
Definition
meanings of the following conditional operators: = <> < <= > >=
Term
THEN
Definition
this clause contains the statements that will be executed when a condition tests TRUE
Term
FAlSE
Definition
this clause contains the statements that will be executed when a condition tests FALSE
Term
loop
Definition
one or more statements repeatedly executed as long as a given condition remains TRUE
Term
definite
Definition
loop that is repeated a set number of times which is known in advance of execution
Term
indefinite
Definition
loop that is repeated until something happens to change the value of the condition (number of executions not known in advance)
Term
variable
Definition
placeholder for a value that you may or may not know in advance
Term
name - data type - size
Definition
three characteristics that must be specified when defining a new variable in a program
Term
constant
Definition
a variable whose value does not change during execution of a program
Term
assignment statement
Definition
programming statement used to assign a value to a variable
Term
[image]
Definition

Fill in the missing values for the variables X, Y, and Z:

 

[image]

Term
array
Definition
variable that can hold more than one value
Term
index
Definition
the subscript that identifies the position in the array that holds a desired value
Term
0 - 9
Definition
index values of an array with ten items
Term
bug
Definition
slang for errors in a program
Term
debugging
Definition
process of testing → correcting → retesting a program for errors
Term
stepping
Definition
process of executing a program one line of code at a time and viewing the results in an effort to identify errors
Term
variable dump
Definition
displaying the values of the variables in a program at key intervals of execution to determine if the values are what they should be in an effort to identify errors
Term
function
Definition
a named set of programming statements
Term
call
Definition
process of inserting the statements in a function in a program
Term
recursive
Definition
function that calls itself
Supporting users have an ad free experience!