The parameter list that accepts arguments is optional in a function definition.
Front
true
Back
Multiple-dimensional arrays can be used to model data that occurs in multiple sets.
Front
true
Back
The value that is returned from a function can be used just like any other value.
Front
True
Back
When a piece of data is written to a file, it is copied from a variable in ________ to the file.
Front
ram
Back
Unlike variables, arrays need to be initialized separately from the declaration.
Front
false
Back
Which of the following library functions could be used to validate the length of a string?
Front
length
Back
Data files are less and less needed in current gaming software.
Front
false
Back
What type of file does the AppendMode work with?
Front
output file
Back
What type of function can be used to see if the password entered has the minimum number of characters?
Front
string
Back
A nested decision structure can be used to test more than one condition.
Front
true
Back
When processing the data in a two-dimensional array, each element has two subscripts.
Front
true
Back
What is the term used for the variable that receives an argument that passed into a module?
Front
Parameter
Back
The function ________ comprises one or more statements that are executed when the function is called.
Front
Body
Back
If you mistakenly write pseudocode into an editor for an actual programming language, such as Python or Visual Basic, errors will result.
Front
true
Back
A case structure is a ________ alternative decision structure.
Front
Multiple
Back
In the following declaration, what is the data type of the elements of the array?
Front
integer
Back
To calculate the total of the values in an array, a loop is used with an accumulator variable.
Front
true
Back
The ________ operator is a unary operator, as it works with only one operand.
Front
NOT
Back
What term is used in the ending terminal symbol of a function flowchart?
Front
return
Back
The empty read is not an obvious input error and is a difficult one to handle.
Front
True
Back
How many steps must be taken when a file is used by a program?
Front
three
Back
Which of the following statements is true after the execution of the following statement?
y=abs(x)
Front
Correct y contains the absolute value of the value in x
Back
In an input file, what maintains the location of the next item that will be read from the file?
Front
read position
Back
The data saved in a file will remain there even after the program stops running but will be wiped out when the computer is turned off.
Front
false
Back
The program development cycle is made up of ________ steps that are repeated until no errors can be found in the program.
Front
five
Back
The term "output file" is used to describe a file that data is read from.
Front
false
Back
Input validation is not needed if the program is well designed.
Front
False
Back
Random numbers are commonly used in which type of program?
Front
All of these
Back
Although the sequence structure is heavily used in programming, it cannot handle every type of task.
Front
True
Back
If, when asked for a date of birth, the user enters a future date, this error should be caught by a ________ check.
Front
Reasonableness
Back
Which of the following library functions could be used to simplify the process of string validation?
Front
toUpper
Back
________ is sometimes the term used for input validation.
Front
Error trap
Back
What is the data type of the value returned by the random library function?
Front
Integer
Back
When working with arrays, most programming languages perform ________, which means they do not allow programs to use invalid subscripts.
Front
array bounds checking
Back
What type of error occurs when a loop iterates one time too few or one time too many?
Front
off-by-one error
Back
When an input file is opened, the read position is initially set to the first item in the file.
Front
true
Back
The scope of the parameter variables is the entire program and it is visible to any statement in the program.
Front
False
Back
The term ________ is used to describe any mechanism that accepts input, performs some operation that cannot be seen on the input, and produces output.
Front
Black box
Back
What type of data file can be opened and viewed in an editor such as Notepad?
Front
text file
Back
Programming languages have not yet started to support localization.
Front
false
Back
Array bounds checking happens at runtime, which is while the program is running.
Front
true
Back
Which function accepts two strings as arguments, returns "True" if the first string contains the second string, and otherwise returns "False"?
Front
Contains
Back
Which of the following is not a check for data accuracy?
Front
All of these are checks for data accuracy
Back
Which of the following array declarations would be best suited for storing the retail prices?
Front
Correct Declare Real retailPrice[SIZE]
Back
Function is another name for ________.
Front
module
Back
The purpose of the ________ is to get the first input value for the validation of a loop.
Front
Priming read
Back
A file with the extension .doc usually indicates that the file contains a note written by a doctor.
Front
False
Back
Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.
Front
true
Back
Variables work well in many situations, but they have limitations.
Front
True
Back
An input validation loop is sometimes called an error handler.
Front
True
Back
Section 2
(32 cards)
The hierarchy chart does not reveal any details of the steps taken inside the module.
Front
True
Back
Computer programming languages are only able to perform sort algorithms on numeric arrays.
Front
false
Back
In a selection sort algorithm, the variable minValue holds the smallest value found in the scanned area of the array.
Front
true
Back
To order an array of strings in alphabetic order, the sorting algorithm should be structured for ________ order.
Front
ascending
Back
Which structure causes a statement or set of statements to execute repeatedly?
Front
Repetition
Back
Any loop that can be written as a Do-While loop can also be written as a While loop.
Front
True
Back
To ________ a variable means to decrease its value.
Front
Decrement
Back
Which searching algorithm requires the array to be ordered?
Front
binary
Back
The If-Then-Else statement should be used to write a single alternative decision structure.
Front
False
Back
A nested decision structure can achieve the same logic as a case structure.
Front
true
Back
What type of operators are the following?
> < <= >= == !=
Front
relational
Back
In most languages a module definition has three parts: a header, body, and footer.
Front
False
Back
Which search algorithm uses three variables to mark positions within the array as it searches for the searchValue?
Front
Binary
Back
The While loop gets its name from the way it works: While a condition is false, do some task.
Front
false
Back
The structure of the camelCase naming convention is to write the first word of the variable name in lowercase letters and then to capitalize the first character of the second and subsequent words.
Front
true
Back
In an expression with an OR operator, it does not matter which sub expression is true for the compound expression to be true.
Front
true
Back
While NOT eof(salesFile)
Read salesFile sales
Display currencyFormat(sales)
End While
Front
read files
Back
For counter =1 To numDays
Display "Enter the sales for day #", counter
Input sales
Write salesFile sales //writes to the file
End For
Front
write files
Back
Which sorting algorithm moves elements to their final sorted position in the array?
Front
Selection
Back
Which of these are posttest loops?
Front
Do-While and Do-Until
Back
In a count-controlled loop, the counter performs ________ action(s).
Front
Three
Back
Which error produces incorrect results but does not prevent the program from running?
Front
logic
Back
Which of the following sorting algorithms is the least efficient?
Front
bubble sort
Back
In a For loop, the programmer should know the exact number of iterations the loop must perform before writing the code.
Front
False
Back
Which operator would make the following expression true?
false____________true
Front
OR
Back
A condition is a ________ expression.
Front
boolean
Back
Which loop statement does not contain an increment statement but automatically increments the counter at the end of each iteration?
Front
For
Back
Swapping the contents of two variables requires a third variable that can serve as a temporary storage location.
Front
true
Back
Which pair of loops causes a statement or set of statements to repeat as long as a condition is true?
Front
While and Do-While
Back
The biggest advantage of the bubble sort algorithm is that values move only by one element at a time toward their final destination in the array.
Front
false
Back
Which loop is specifically designed to initialize, test, and increment a counter variable?
Front
For
Back
Which of the following search algorithms should be used on large arrays if speed is important?