The part of the computer that runs programs is called ____
RAM
Secondary Storage
Main memory
CPU
The computer stores a program while the program is running, as well as the data that the program is working with in, _____
secondary storage
main memory
the microprocessor
A type of memory that can hold data for long periods of time- even when there is no power to the computer- is called _____
CPU storage
A computer component that collects data from people or other devices and sends it to the computer is called _____
an output device
an input device
a secondary storage device
Negative numbers are encoded using the ____ technique.
two's complement
floating point
ASCII
Unicode
Real numbers are encoded using the ____ technique
In the ___ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.
fetch
decode
execute
immediately after the instruction is executed
Computers can only execute programs that are written in ___
Java
assembly language
machine language
C++
The ___ translates an assembly language program into a machine language program
assembler
compiler
translator
interpreter
The words that make up a high level programming language are called ____
binary instructions
mnemonics
commands
keys words
A(n) ___ program translates a high level language program into a separate machine language program
utility
An interpreter is a program that both translates and executes the instructions in a high level language program.
True
False
A syntax error does not prevent a program from being compiled and executed.
A ___ structure can execute a set of statements only under certain circumstances.
sequence
circumstantial
decision
Boolean
A ____ structure provides one alternative path of execution.
single alternative decision
one path alternative
single execution decision
In pseudo code, the if-then-else statement is an example of ____
sequence structure
decision structure
pathway structure
class structure
A(n) ____ expression has a value of either true or flase
binary
unconditional
The symbols >,
relational
logical
conditional
ternary
A _____ structure allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute
variable test decision
dual alternative decision
multiple alternative decsion
A(n) ___ section of a Select Case statement is branched to if none of the case values match the expression listed after the Select statement
Else
Default
Case
Otherwise
AND, OR, and NOT are ____ operators.
You can write any program using only sequence structures
A program can be made of only one type of control structure. You cannot combine structures.
A decision structure can be nested inside another decision structure.
A benefit of using modules that helps to reduce the duplication of code within a program is ______.
code reuse
divide and conquer
debugging
facilitation of teamwork
The first line of a module definition is known as the _____
body
introduction
initialization
header
A design technique that programmers use to break down an algorithm into modules is known as _____
top-down design
code simplification
code refactoring
hierarchical sub tasking
A(n) ____ is a piece of data that is sent into a module
argument
parameter
packet
A(n) ___ is a special piece of data when a module is called
When ____ , only a copy of the argument's value is passed into the parameter variable.
passing an argument by reference
passing an argument by name
passing an argument by value
passing an argument by data type
When ____, the module can modify the argument in the calling part of the program.
Module names should be as short as possible.
Calling a module and defining a module mean the same thing.
A statement in one module can access a local variable in another module.
In most programming languages, you cannot have two variables with the same name in the same scope.
Programming languages typically require the arguments be of the same data type as the parameters they are passed to.
Most languages do not allow you to write modules that accept multiple arguments.
When an argument is passed by reference, the module can modify the argument in the calling part of the program.
Passing an argument by value is a means of establishing two-way communication between modules.