A programmer writes a for statement to count from 1 to 10 and explicitly mentions the 1 and the 10 in the for “header.” Which rela-tional operator would probably be used in the loop-continuation test?

a) >
b) >=
c) <
d) <=


d) <=

Computer Science & Information Technology

You might also like to view...

When you don’t recall operator precedences you can

a) Look in a table of precedences b) Guess c) Use parentheses d) Experiment with the compiler

Computer Science & Information Technology

What do the calls to exit(…) do? When exit(0) and exit(1) are called, what receives these arguments and what is done with them?

a) The exit( ) function stops the program. The argument is discarded. b) The exit( ) function is obsolete. There is no longer any such function in the C++ libraries. c) The exit( ) function stops the program. The argument is passed to the operating system which uses it for an error code. d) The exit( ) function temporarily stops the program, and sends the argument to the operating system which uses it for an error code. The operating system restarts the program after fixing the error. e) The exit( ) function allows the systems programmer to escape when the power supply catches fire.

Computer Science & Information Technology

Which of the following statements about Swing GUI components is false?

a. Swing components are less portable but more flexible than the original Java GUI components from package java.awt. b. Most Swing components are written completely in Java. c. Swing components allow the user to specify a uniform look-and-feel across all platforms. d. Swing components allow the user to change the look-and-feel while the program is running.

Computer Science & Information Technology

In which package is the class Vector located?

A. java.io B. java.lang C. java.util D. java.text

Computer Science & Information Technology