A dual-alternative selection structure is also known as a(n) __________ structure.

Fill in the blank(s) with correct word


If-Then-Else

Computer Science & Information Technology

You might also like to view...

An app that performs synchronous tasks on a single-core computer often takes longer to execute than on a multi-core computer, because ________.

a) it’s too costly to convert them to asynchronous tasks b) the processor is shared between the app and all the others that happen to be executing on the computer at the same time c) multi-core computers have no overhead d) single-core compters generally have slower processors

Computer Science & Information Technology

A function can return a value of type T in one of several different ways. Which of these is correct? If correct, give a short declaration of a function that returns its value by these mechanism. Comment on the const methods of function return value. Comment on when there is danger involved in returning a reference of any kind from a function. Finally, which one of these returns an l-value and which an r-value?

a) By value b) By lazy evaluation. c) By reference d) By const value e) By const reference

Computer Science & Information Technology

The ____________________ Tool is used to draw straight lines.

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

Computer Science & Information Technology

Suppose x = 1, y = -1, and z = 1. What is the output of the following statement? (Please indent the statement correctly first.)

``` if (x > 0) if (y > 0) System.out.println("x > 0 and y > 0"); else if (z > 0) System.out.println("x < 0 and z > 0"); ``` a. x > 0 and y > 0; b. x < 0 and z > 0; c. x < 0 and z < 0; d. no output.

Computer Science & Information Technology