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
You might also like to view...
When a heading level is promoted, it moves up one level (to the left in the outline)
Indicate whether the statement is true or false
Aero Glass is the commercial name for the simplest Home version of Windows 7
Indicate whether the statement is true or false
In the Find and Replace dialog box, the ____ option on the Replace tab specifies the text with which you want to replace the found text.
A. Replace now B. Replace with C. Replace D. Replace all
What is the keyboard shortcut to deselect?
Quiz Questions What will be an ideal response?