Answer the following questions true (T) or false (F)
1. True/False: The statement Set Cost = Price + Tax is an example of a comparison statement.
2. True/False: The statement 15 >= -63 will result in the value True.
3. True/False: If X = False and Y = False, is the statement:
NOT X OR NOT Y
True or False?
1. F
2. T
3. T
You might also like to view...
A Word outline can be imported into a PowerPoint presentation
Indicate whether the statement is true or false
Answer the following statements true (T) or false (F)
1. A Do While loop checks the While condition before executing the statements in the loop. 2. If the While condition in a Do While loop is false the first time it is encountered, the statements in the loop are still executed once. 3. The following statement is valid. Do While x <> 0 4. The following two sets of code produce the same output. ``` Dim num As Integer = 1 Dim num As Integer = 1 Do While num <= 5 Do lstBox.Items.Add("Hello") lstBox.Items.Add("Hello") num += 1 num += 1 Loop Loop Until (num > 5) ``` 5. A loop written using the structure Do While...Loop can usually be rewritten using the structure Do...Loop Until.