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