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

1) The initialization portion of a for loop header can be used to declare a variable that is used during loop execution.
2) The relational operators should not be used to test the equality of objects.
3) It is possible to implement a switch statement using if statements.
4) An infinite loop is a compile-time error.
5) The Scanner object can be used to read text files.


1) T
2) T
3) T
4) F
5) T

Computer Science & Information Technology

You might also like to view...

namespaces cannot contain:

a. Any functions. b. main. c. Classes. d. Other namespaces.

Computer Science & Information Technology

Laser printers use ____________________ cartridge refills or replacements instead of ink cartridges.

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

Computer Science & Information Technology

Case 4-2 The arithmetic operators in your program are not behaving the way you think they should be, so you decide to brush up on your operators and the hierarchy of operations. What is the correct order among the following operations?

A. exponentiation, multiplication, integer division, MOD, addition B. multiplication, exponentiation, MOD, integer division, addition C. integer division, multiplication, exponentiation, MOD, addition D. multiplication, integer division, exponentiation, MOD, addition

Computer Science & Information Technology

__________________ is the study of how human beings interact with computers.

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

Computer Science & Information Technology