Answer the following statements true (T) or false (F)
1. The if, while and for statements control only one statement.
2. Given the declaration int x = 0;
The following expression causes a divide by zero error:
(x !=0) || (2/x < 1);
3. Suppose we have these declarations,
int x = -1, y = 0, z = 1;
This Boolean expression is correct and it does what the programmer intends.
x < y < z
4. You want to determine whether time has run out. The following code correctly
implements this. !time > limit
5. The value of count is 0; limit is 10. Evaluate:
(count == 0)&&(limit < 20)
1. True
2. False.
3. False
4. False.
5. true
You might also like to view...
Which of the following is not a sorting algorithm?
a) Bubble sort b) Quick sort c) Merge sort d) Selection sort e) all of the above are sorting algorithms
Which of the following is true about static routes?
A. the metric is higher than a dynamic route B. they are created by routing protocols C. they are used for stub networks D. they change automatically as the network changes
Formulas with multiple operators CANNOT be entered in grouped worksheets
Indicate whether the statement is true or false.
Douglas Engelbart is credited with the invention of _____.
a. hypertext b. bitmapped screens c. GUIs d. the mouse