Share
Explore BrainMass

Information Systems and Design

Questions 2-8 only require "yes" or "no."

1. If you have a program with a housekeep() module, a mainloop() module, and a finishup() module, when is the second input record usually read?

2. Is it ever correct to create a loop that cannot terminate?

3. Is it inefficient to place the calculation within the loop when a calculation can be performed once before entering a loop?

4. When you must satisfy two or more criteria to initiate an event in a program, should you make sure that the second decision is made entirely within the first decision?

5. In most programming languages, are you allowed to ask two or more questions in a single comparison by using a logical AND operator?

6. Do most programming languages allow you to ask two or more questions in a single comparison by using a logical OR operator?

7. In an AND situation, do you first ask the question that is more likely to be true?

8. Are elements in an array differentiated by numbers called subnumbers?

9. Of the following, which does not need to occur in a loop: you must initialize a variable that will control the loop; you must compare the variable to some value that stops the loop; within the loop, you must alter the variable? Or is it none of the above answers?

Solution Preview

1. If you have a program with a housekeep() module, a mainloop() module, and a finishup() module, when is the second input record usually read?
- In the mainloop() module.

2. Is it ever correct to create a loop that cannot terminate?
- Yes

3. Is it inefficient to place the calculation within the loop when a calculation ...

$2.19