Answer the following statements true (T) or false (F)
1. Programs should be designed to avoid looping if possible.
2. The IF THEN ELSE control structure is the simplest control structure but it is rarely used.
3. An infinite loop is an error condition.
4. A program must be designed to handle either valid or invalid data, but not both.
5. If unit testing is done thoroughly, system testing can be reduced or eliminated.
1. FALSE
2. FALSE
3. TRUE
4. FALSE
5. FALSE
You might also like to view...
The static method ________ of class String returns a formatted String.
a. printf. b. format. c. formatString. d. toFormatedString.
Method getFont of class Graphics returns ________.
a. the current font name as a string b. the font size in points c. a Graphics object representing the current font d. a Font object representing the current font
Analyze the following code:
``` public class Test1 { public static void main(String[] args) { xMethod(new double[]{3, 3}); xMethod(new double[5]); xMethod(new double[3]{1, 2, 3}); } public static void xMethod(double[] a) { System.out.println(a.length); } } ``` a. The program has a compile error because xMethod(new double[]{3, 3}) is incorrect. b. The program has a compile error because xMethod(new double[5]) is incorrect. c. The program has a compile error because xMethod(new double[3]{1, 2, 3}) is incorrect. d. The program has a runtime error because a is null.
Which form view is normally used for data entry?
A. Design view B. Layout view C. Form view D. SQL view