SSL Certificate
  • Typically, the last action in a housekeeping method is

Question 1  Typically, the last action in a housekeeping method is _________.
closing a file
opening a file
a priming read checking for eof
--------------------------------------------------------------------------------
Question 2 (Multiple Choice Worth 1 points) In an AND decision structure the second condition is tested only if the first condition evaluates to _________.
False
true
0
100
 --------------------------------------------------------------------------------
Question 3 (Multiple Choice Worth 1 points) When making a decision based on a range, the ____ operator must be used.
OR
AND
NOT
=
--------------------------------------------------------------------------------
Question 4 (Multiple Choice Worth 1 points) If you were asked to write a program containing a list of people who live in New York and New Jersey, what type of decision structure would you use?
dual-alternative
 AND
OR
tertiary
--------------------------------------------------------------------------------
Question 5 (Multiple Choice Worth 1 points) When you use the ___ operator, the expression is true if at least one of the operands is true.
logical AND
logical OR
unary multiplication
 --------------------------------------------------------------------------------
Question 6 (Multiple Choice Worth 1 points) In a range check, programmers sometimes ask too many questions resulting in a(n) ____________.
default value
error
unreachable path
nested statement
 --------------------------------------------------------------------------------
Question 7 (Multiple Choice Worth 1 points) Which of the following is not part of a decision table? Conditions
 possible combinations of Boolean values
possible actions
number of operations
--------------------------------------------------------------------------------
Question 8 (Multiple Choice Worth 1 points) Which of the following is usually the last step in a loop? compare the variable to a value that determines if the loop stops or continues
initialize the variable
 increment the variable
perform the loop action
--------------------------------------------------------------------------------
Question 9 (Multiple Choice Worth 1 points) A loop control variable that is incremented a specific number of times is known as a(n)_____________.
sentinel
indefinite value
trivial comparison
counter
 --------------------------------------------------------------------------------
Question 10 (Multiple Choice Worth 1 points) When a value is incremented _________.
1 is added to the value
1 is subtracted from the value
the value is multiplied by 1
the value is divided by 1
 --------------------------------------------------------------------------------
Question 11 (Multiple Choice Worth 1 points) In a for loop, a(n) ______ value is used to control how the loop control variable is incremented.
step
group id
sentinel
 --------------------------------------------------------------------------------
Question 12 (Multiple Choice Worth 1 points) When printing a list of employees by department, the most likely value to be examined for the control break would be _____
the employee's last name
the employee's department number
the number of departments
the number of employees processed
--------------------------------------------------------------------------------
Question 13 (Multiple Choice Worth 1 points) Where is the best place to declare the variable that holds the control break value?
housekeeping
mainloop
printHeaders()
finish()
 Question 14 (Multiple Choice Worth 1 points) When initializing the value of the loop control field, what is the best choice of initial value?
 null
-1
empty space
value of the first field in input file
--------------------------------------------------------------------------------
Question 15 (Multiple Choice Worth 1 points) Assume that within the main loop, a control break directs the program logic to the newPage() module. The program also contains the standard housekeeping() and finish() modules. From which module is the last footer in the report printed.
 mainLoop()
newPage()
housekeeping()
finish()
--------------------------------------------------------------------------------
Question 16 (Multiple Choice Worth 1 points) A control break program that calculates totals for each category and a grand total has four modules: startUP, bookListLoop, categoryChange, closeDown. In which module would you expect to see the category total incremented?
startUp
bookListLoop
categoryChange
closeDown
--------------------------------------------------------------------------------
Question 17 (Multiple Choice Worth 1 points) An array is a(n) ______ of variables in memory.
list
group
set
absence
--------------------------------------------------------------------------------
Question 18 (Multiple Choice Worth 1 points) Array subscripts are always _________.
large numbers
characters
negative values
integers
 --------------------------------------------------------------------------------
Question 19 (Multiple Choice Worth 1 points) What type of loop is used to set the initial value for array variables?
Declaration
 initialization
defaultation
direct
Question 20 (Multiple Choice Worth 1 points) When an element in one array is associated with an element in another array with the same subscript, the two arrays are _____.
joined
equivalent
the same
parallel



===============

*Instant Download

Write a review

Please login or register to review

Typically, the last action in a housekeeping method is

  • $9.99


*All your data are SECURED & ENCRYPTED using a valid, trusted server certificate (Comodo SSL) and we don't store credit card information on our servers and all Payments are SECURED & handled by Paypal.
SSL CertificatePaypal

Related Products

The task this week is to complete the following 2 structures using a linked list Stack Queue

The task this week is to complete the following 2 structures using a linked list Stack Queue

The task this week is to complete the following 2 structures using a linked list: Stack ..

$9.99

CoffeeOrder.java

CoffeeOrder.java

Need 4 or 5 classes and need input like decaf, regular, specialty, sugar, cream etc. It should calcu..

$9.99

Tags: multiple choice questions, java, object oriented