Which of the following data sets (for x) would be best for checking this code:

if (x > 7)
cout << x + 3;
else if (x > 4)
cout << x – 4;
else
cout << x + 1;

a) 5, 8, 10
b) 3, 5, 11
c) 4, 10, 15
d) 3, 4, 7


b) 3, 5, 11

Computer Science & Information Technology

You might also like to view...

Traditional Chinese is an example of a(n) ___________ language.

a. multi-byte b. single-byte c. internationalized d. localized

Computer Science & Information Technology

A ________ drive is often located on another computer and is accessible to other users

A) root B) flash C) local D) network

Computer Science & Information Technology

FIGURE WD 8-1Referring to Figure WD 8-1 above, to select documents from a list of recently opened documents, you would click the ____.

A. the open folder icon to the right of the Original document box or Revised document box B. list arrow to the right of the Original document box or Revised document box C. either a. or b. D. neither a. nor b.

Computer Science & Information Technology

Validation is done at the point of entry, at the point of origin, or on the fly.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology