and answers already graded A+
Algorithm - CORRECT ANSWERS - A sequence of steps that can be followed to
complete a task.
Decomposition - CORRECT ANSWERS - Breaking a problem into a number of sub-
problems, so that each sub-problem accomplishes an identifiable task.
Abstraction - CORRECT ANSWERS - The process of removing unnecessary detail from
a problem.
Variable - CORRECT ANSWERS - A storage location paired with an associated name
used to describe it. The data stored within a variable can change.
Constant - CORRECT ANSWERS - A storage location paired with an associated name
used to describe it. The data stored within a constant can not change.
Boolean - CORRECT ANSWERS - A data type, can be either true or false - 1 bit
Character - CORRECT ANSWERS - A single character - 1 byte
String - CORRECT ANSWERS - A collection of characters - 1 byte per character
Integer - CORRECT ANSWERS - An integer - 2 or 4 bytes
Real - CORRECT ANSWERS - A decimal number - 4 bytes
Boolean Operator - AND - CORRECT ANSWERS - Two conditions, true only if both are
true
,Boolean Operator - OR - CORRECT ANSWERS - Two conditions, returns true if atleast
one is true
Boolean Operator - NOT - CORRECT ANSWERS - Single condition, returns the opposite
of the condition
Sequence - CORRECT ANSWERS - A set of instructions that must all be completed and
are followed in the order they are presented.
Selection - CORRECT ANSWERS - A type of programming statement that uses a
boolean condition to determine whether or not to run a certain block of statements.
Iteration - CORRECT ANSWERS - A type of programming statement that repeats a block
of statements if or until a condition is met.
Subroutine - CORRECT ANSWERS - A small program inside a large one. Used when the
same series of commands are repeated multiple times. Examples include functions and
procedures.
Function - CORRECT ANSWERS - Carries out a subtask of a larger task for which the
program is responsible. It then returns a value. It also has a data type.
Procedure - CORRECT ANSWERS - Carries out a subtask of a larger task for which the
program is responsible. It does not return a value.
Parameter - CORRECT ANSWERS - A special kind of variable used in a subroutine to
refer to one of the pieces of data provided as an input to the subroutine.
Argument - CORRECT ANSWERS - A variable passed into a subroutine
Local variable - CORRECT ANSWERS - Are variables that have been declared within a
function and so can only be used 'locally' (within the function)
Global variables/constants - CORRECT ANSWERS - Are variables that can be used
anywhere within a program
, Syntax Error - CORRECT ANSWERS - An error that occurs when there is a mistake in
the source code such as a typo or calling on an object that does not exist.
Logic Error - CORRECT ANSWERS - An error that occurs when there is a fault in the
logic or structure of the problem. They do not cause the program to crash however can cause
unexpected results.
Run-Time Error - CORRECT ANSWERS - An error in a program that makes it
impossible to run to completion. Also called an "exception".
Trace Tables - CORRECT ANSWERS - A table used to keep track of variables and their
changing values to make sure there are no logic errors. Each column represents a variable,
and the rows are its value at different points in the program.
High-Level languages - CORRECT ANSWERS - 3rd to 5th generation languages, that
strongly resemble English and is easy for humans to read and write. However computers
require a translator to convert it into machine code before running it.
Low-Level languages - CORRECT ANSWERS - 1st and 2nd generation languages,
difficult and slow for humans to read and write, however 2nd generation languages are much
faster to convert and 1st do not require any translator
Compilers - CORRECT ANSWERS - Software used to convert high-level code into
machine code. Translates all of the source code at the same time and creates one executable
file. Only needed once to create the executable file. Returns a list of errors for the entire
program once compiling is complete. Once complete the program runs quickly, however
compiling can take a long time. Used for distributing software.
Assemblers - CORRECT ANSWERS - Software that converts assembly languages into
machine code
Interpreters - CORRECT ANSWERS - Software used to convert high-level code into
machine code. Translates and runs the source code one instruction at a time, but doesn't
create an executable file. Needed every time you want to run the program. The interpreter
will return the first error it finds and then stops - this is useful for debugging. Programs will