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

1) Every if statement requires an associated else statement, but not every else statement requires an associated if statement.
2) In a nested if statement an else clause is matched to the closest unmatched if.
3) In Java, a boolean expression is limited to having exactly 2 logical operators.
4) A do statement should be used to avoid creating an infinite loop.
5) A while statement always executes its loop body at least once.

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

Computer Science & Information Technology

You might also like to view...

________ is the process by which over time areas of a storage medium become unusable

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

Computer Science & Information Technology

If you need to move objects on a slide once they are displayed, you can define a(n) ____.

A. compression path B. background C. motion path D. animation path

Computer Science & Information Technology