PROGRAMMING FOUNDATIONS / FINAL
EXAM REVIEW / ACTUAL QUESTIONS AND
ANSWERS (A+ GUIDE SOLUTION)
Computer program - Answer--instructions executing one at a time
Basic instruction types - Answer--input, process, output
input - Answer--A program gets data, perhaps from a file, keyboard, touchscreen, network, etc.
process - Answer--A program performs computations on that data, such as adding two values like x + y.
output - Answer--A program puts that data somewhere, such as to a file, screen, network, etc.
variable - Answer--programs use these because its value varies e.g. x, y, z; some name that can hold a
value; named item
,Computational Thinking - Answer--creating a sequence of instructions to solve a problem
Algorithm - Answer--A sequence of instructions that solves a problem
Flowchart - Answer--graphical language for creating or viewing computer programs
coral language - Answer--A language intended for learning to program
program - Answer--list/sequence of statements
statement - Answer--carries out some action and executes one at a time; specific action; set of
instructions
node - Answer--each statement is located in one of these (e.g. coral language has these in graphical
____)
interpreter - Answer--tool that runs a program's statements
run and execute - Answer--Words for carrying out a program's statements.
start - Answer--program execution begins at the ____ node
input statement - Answer--variable = Get next input; commonly a parallelogram in a coral flowchart
output statement - Answer--put item to output
, string literal - Answer--consists of text (characters) within double quotes, as in "Go #57!".
character - Answer--includes any letter (a-z) or digit (0-9) or symbol (#,@,&,!, etc.)
cursor - Answer--indicates where the next output item will be placed in the output
newline - Answer--Special two-character sequence \n whose appearance in an output string literal
causes the cursor to move to the next output line.
put x to output - Answer--outputting a variable's value is achieved by
comment - Answer--text a programmer adds to a program, to be read by humans to better understand
code, but ignored by the program when executing; usually starts with "//"
Whitespace - Answer--refers to blank spaces (space and tab characters) between items within a
statements, and to newlines; helps improve readability for humans, but is ignored during execution by
program
switch - Answer--either a 1 (on) or a 0 (off)
Moore's Law - Answer--reducing switch sizes by half nearly every 2 years
Integer - Answer--All whole numbers (both positive and negative) and zero.