In an AND decision, why is it good practice to make the first question the one that is less likely to be true?

A. This eliminates all instances of the second decision.
B. This eliminates as many instances of the second decision as possible.
C. This eliminates evaluation of the first decision.
D. This makes program execution longer.


Answer: B

Computer Science & Information Technology

You might also like to view...

Consider the following interleaving of transactions T and U:


The outcome of optimistic concurrency control with backward validation is that T will be aborted because its read operation conflicts with U's write operation on ai, although the interleavings are serially equivalent. Suggest a modification to the algorithm that deals with such cases.

Computer Science & Information Technology

Critical Thinking QuestionsCase Integration 1You received the entire Adobe Creative Suite CS6 as a gift, but until now you haven't had occasion to use all the components. You take a brief online tutorial to familiarize yourself with the uses of each of the applications in the suite. Which of the following can you use to save a Flash animation as its own HTML document? a. Fireworksb. Illustratorc. Photoshopd. Dreamweaver

What will be an ideal response?

Computer Science & Information Technology

In Impress, a(n) ________ is a preformatted area that determines the type of information to place in an area of a slide

Fill in the blank(s) with correct word

Computer Science & Information Technology

Elements and events are organized along a timeline in a(n) ____________________ authoring system.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology