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