Pregunta 1
Pregunta
Which type of variable is visible to every module and the entire program?
Respuesta
-
local
-
global
-
reference
-
pass by value
-
pass by reference
Pregunta 2
Pregunta
The scope of the parameter variables is the entire program and it is visible to any statement in the program
Pregunta 3
Pregunta
A module can have two variables of the same name because they are within the same scope
Pregunta 4
Pregunta
To execute a module, we must ____ it
Respuesta
-
compile
-
parse
-
define
-
debug
-
call
Pregunta 5
Pregunta
When an argument is passed by value, the communication channel works only in one direction.
Pregunta 6
Pregunta
_________ variables are useful for establishing two-way communication between modules.
Respuesta
-
constant
-
I/O
-
reference
-
value
-
none of the above
Pregunta 7
Pregunta
The top-down design process is sometimes called stepwise refinement.
Pregunta 8
Pregunta
The module definition comprises the module header and the module _________.
Respuesta
-
arguments
-
body
-
parameters
-
statements
-
call
Pregunta 9
Pregunta
Which of the following is not a benefit of using modules?
Respuesta
-
simpler code
-
code reuse
-
better testing
-
faster development
-
none of the above
Pregunta 10
Pregunta
The following is an example of a module _______.
Call showNetPay( )
Respuesta
-
header
-
body
-
display
-
definition
-
execution
Pregunta 11
Pregunta
When an argument is passed by ______., it is not affected by a change of the content of the parameter variable.
Respuesta
-
reference
-
constant
-
variable
-
value
-
none of the above
Pregunta 12
Pregunta
The arguments in a module call and the parameters listed in the module header must be of compatible data types.
Pregunta 13
Pregunta
Passing an argument by ____ means that only a copy of the argument's value is passed into the parameter variable.
Respuesta
-
constant
-
value
-
reference
-
variable
-
none of the above
Pregunta 14
Pregunta
The scope of the variable is the segment of the program in which the variable can be accessed.
Pregunta 15
Pregunta
In most languages a module definition has three parts: a header, body, and a footer.
Pregunta 16
Pregunta
Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
Respuesta
-
reference
-
global
-
pass by reference
-
pass by value
-
local
Pregunta 17
Pregunta
Modules can be written for commonly needed tasks and those modules can be incorporated into each program that needs them.
Pregunta 18
Pregunta
A pass by reference argument established a two-way communication with the module, but the value of the argument cannot be modified via the reference variable.
Pregunta 19
Pregunta
A bit that is turned off is represented by the value -1.
Pregunta 20
Pregunta
RAM is a volatile memory used for temporary storage while a program is running.
Pregunta 21
Pregunta
The process known as the _____ cycle is used by the CPU to execute instructions in a program.
Respuesta
-
decode-execute-fetch
-
execute-decode-fetch
-
decode-fetch-execute
-
fetch-decode-execute
-
fetch-execute-decode
Pregunta 22
Pregunta
What functions(s) does an interpreter perform with the instructions in a high level programming language?
Respuesta
-
translates
-
compiles
-
compiles and translates
-
translates and execute
-
execute
Pregunta 23
Pregunta
The following is an example of an instruction written in which computer language?
10110000
Respuesta
-
JAVA
-
C#
-
C++
-
Machine Language
-
Assembly Language
Pregunta 24
Pregunta
Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.
Pregunta 25
Pregunta
The main reason for using secondary storage is to hold data for long periods of time, even when the power to the computer is turned off.
Pregunta 26
Pregunta
Most programs written in high-level language need to be translated into machine language.
Pregunta 27
Pregunta
Programs that make a computer useful for everyday tasks are known as _______.
Respuesta
-
utility programs
-
system software
-
application software
-
operation system
-
none of the above
Pregunta 28
Pregunta
The term used for a set of rules that must be strictly followed when writing a program is ________.
Respuesta
-
semantics
-
punctuations
-
syntax
Pregunta 29
Pregunta
The CPU understands instructions in machine language, which are written in binary.
Pregunta 30
Pregunta
Which computer language uses short words known as mnemonics for writing programs?
Respuesta
-
Java
-
Visual Basic
-
Pascal
-
Assembly
-
C#
Pregunta 31
Pregunta
Assembly language is referred to as a low-level language because it is close to the C++ language.
Pregunta 32
Pregunta
It has been proven by a group of mathematicians that all programs can be written using only three structures.
Pregunta 33
Pregunta
A variable is a storage location in memory that is represented by a name and can hold different values during the execution of the program.
Pregunta 34
Pregunta
What term is used for a string that appears in the actual code of the program?
Respuesta
-
virtual string
-
hard copy
-
strongly typed
-
string literal
-
none of the above
Pregunta 35
Pregunta
Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
Pregunta 36
Pregunta
A ______ structure is a set of statements that execute in the order that they appear.
Respuesta
-
sequence
-
control
-
repetition
-
decision
-
none of the above
Pregunta 37
Pregunta
A sequence of characters that is used as data is called a string in programming.
Pregunta 38
Pregunta
Programmers start writing code as the first step when they begin a new project.
Pregunta 39
Pregunta
The expressions (a+b) / c and a + b /c will always yield identical results.
Pregunta 40
Pregunta
Which of the following is not a variable data type?
Respuesta
-
integer
-
number
-
real
-
string
-
none of the above
Pregunta 41
Pregunta
Although the sequence structure is heavily used in programming, it cannot handle every type of task.
Pregunta 42
Pregunta
A case structure is a ________ alternative decision structure.
Respuesta
-
dual
-
multiple
-
single or dual
-
single
-
all of the above
Pregunta 43
Pregunta
What type of operators are the following?
> = = = ! =
Respuesta
-
boolean
-
mathematical
-
relational
-
logical
-
none of the above
Pregunta 44
Pregunta
An If statement will produce unpredictable results if the programmer does not use proper indentations in psuedocode
Pregunta 45
Pregunta
Decision structures are also known as selection structures
Pregunta 46
Pregunta
It is possible to write a complete program using only a decision structure
Pregunta 47
Pregunta
Which operator is best to determine whether x contains a value in the range of 10 through 57?
Respuesta
-
AND
-
==
-
NOT
-
OR
-
none of the above
Pregunta 48
Pregunta
The first line of the case structure starts with the word CASE followed by the test expression.
Pregunta 49
Pregunta
What two logical operators perform short circuit evaluation?
Respuesta
-
AND and OR
-
NOT and OR
-
AND and NOT
-
all of the above
-
none of the above
Pregunta 50
Pregunta
Which operator is used to determine that the operands are not exactly of the same value?
Respuesta
-
==
-
=!
-
=
-
!
-
none of the above
Pregunta 51
Pregunta
In an expression with an OR operator, it does not matter which sub expression is true for the compound expression to be true.
Pregunta 52
Pregunta
What type of operator can be used to determine whether a specific relationship exists between two values?
Respuesta
-
mathematical
-
logical
-
relational
-
boolean
-
none of the above
Pregunta 53
Pregunta
Which of the following is a logical operator?
Respuesta
-
NOT
-
AND
-
OR
-
all of the above
-
none of the above
Pregunta 54
Pregunta
In many languages the case structure is called a _____ statement.
Respuesta
-
branch
-
selective
-
jump
-
switch
Pregunta 55
Pregunta
A nested decision structure can be used to test more than one condition.
Pregunta 56
Pregunta
A nested decision structure can be used to test more than one condition.
Pregunta 57
Pregunta
If the expression is false, the ________ operator will return true.
Respuesta
-
AND
-
OR
-
NOT
-
All of the above
Pregunta 58
Pregunta
The if-then-else statement should be used to write a single alternative decision structure
Pregunta 59
Pregunta
A file that data is written to is known as a(n)
Respuesta
-
output file
-
sequential access file
-
binary file
Pregunta 60
Pregunta
A file that data is read from is known as a(n)
Respuesta
-
input file
-
output file
-
sequential access file
-
binary file
Pregunta 61
Pregunta
Before a file can be used by a program it must be
Respuesta
-
formatted
-
encrypted
-
closed
-
opened
Pregunta 62
Pregunta
This type of file contains data that has not been converted to text.
Respuesta
-
text file
-
binary file
-
English file
-
human readable file
Pregunta 63
Pregunta
This is a character or set of characters that marks the end of a piece of data
Respuesta
-
median value
-
delimeter
-
boundary marker
-
EOF marker
Pregunta 64
Pregunta
This is a character or set of characters that mark the end of a file
Respuesta
-
delimeter
-
boundary marker
-
EOF marker
Pregunta 65
Pregunta
This marks the location of the next item that will be read from a file
Respuesta
-
input position
-
delimeter
-
pointer
-
read position
Pregunta 66
Pregunta
When a file is opened in this mode, data will be written at the end of the file's existing contents
Respuesta
-
append mode
-
backup mode
-
read-only mode
Pregunta 67
Pregunta
When working with a sequential access file, you can jump directly to any piece of data in the file without reading the data that comes before it.
Pregunta 68
Pregunta
In most languages, when you open an output file and that file already exists on the disk, the contents of the existing file will be erased