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

1. The scope of a variable declared in a for loop's initialization expression always extends beyond the body of the loop.
2. If you want to stop a loop before it goes through all of its iterations, the break statement may be used.
3. You may not use both break and continue statements within the same set of nested loops.
4. The condition that is tested by a while loop must be enclosed in parentheses and terminated with a semicolon.


1. F
2. T
3. F
4. F

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. In a multithreaded application, threads can be distributed across multiple processors (if available) so that multiple tasks execute in parallel and the application can operate more efficiently. b. The JVM creates threads to run a program and for housekeeping tasks such as garbage collection. c. Multithreading can increase performance only on multi-core systems. d. The vast majority of programmers should use existing collection classes and interfaces from the concurrency APIs that manage synchronization for you.

Computer Science & Information Technology

When removing an element from a 2-3 tree, rotation and ______ may both be employed to maintain the properties of the B-tree.

a) reducing the height of the tree b) increasing the height of the tree c) reflection d) reinsertion e) None of these is correct

Computer Science & Information Technology

The Select Case statement begins with the keywords Select Case, followed by a(n) ____.

A. listExpression B. expressionSelector C. expressionList D. selectorExpression

Computer Science & Information Technology

A form's ________ determines how objects on a form will appear

A) criteria B) layout C) validation rule D) view

Computer Science & Information Technology