1. Which of the following compound conditions determines whether the value in
the intOrdered variable is outside the range of 0 through 25?
1. intOrdered < 0 OrElse intOrdered > 25
2. intOrdered > 0 AndAlso intOrdered < 25
3. intOrdered <= 0 OrElse intOrdered >= 25
4. intOrdered < 0 AndAlso intOrdered > 25
2. The condition in which of the following If clauses compares the string contained in
the txtId control with the abbreviation for the state of Georgia?
1. If ToUpper(txtId.Text.Trim) = "GA" Then
2. If txtId.Trim.ToUpper = "GA" Then
3. If txtId.ToLower.Trim = "ga" Then
4. If txtId.Text.Trim.ToLower = "ga" Then
3. Evaluate the following expression: 13 > 12 OrElse 6 < 5.
1. True
2. False
4. Evaluate the following expression: 6 + 3 > 7 AndAlso 11 < 2 * 5.
1. True
2. False
5. Evaluate the following expression: 8 > 10 OrElse 7 > 3.
1. True
2. False
6. Evaluate the following expression: 7 + 3 * 2 < 6 * 3 AndAlso 20 >= 4 * 5.
1. True
2. False
7. Evaluate the following expression: 5 * 7 > 6 ˆ 2.
1. True
2. False
, 8. Evaluate the following expression: False AndAlso True OrElse True.
1. True
2. False
9. What will the following code assign to the intCost variable when the intAge variable
contains the number 65?
1. 0
2. 5
3. 8
4. 10
10. What will the following code assign to the intCost variable when the intAge variable
contains the number 2?
1. 0
2. 5
3. 8
4. 10
the intOrdered variable is outside the range of 0 through 25?
1. intOrdered < 0 OrElse intOrdered > 25
2. intOrdered > 0 AndAlso intOrdered < 25
3. intOrdered <= 0 OrElse intOrdered >= 25
4. intOrdered < 0 AndAlso intOrdered > 25
2. The condition in which of the following If clauses compares the string contained in
the txtId control with the abbreviation for the state of Georgia?
1. If ToUpper(txtId.Text.Trim) = "GA" Then
2. If txtId.Trim.ToUpper = "GA" Then
3. If txtId.ToLower.Trim = "ga" Then
4. If txtId.Text.Trim.ToLower = "ga" Then
3. Evaluate the following expression: 13 > 12 OrElse 6 < 5.
1. True
2. False
4. Evaluate the following expression: 6 + 3 > 7 AndAlso 11 < 2 * 5.
1. True
2. False
5. Evaluate the following expression: 8 > 10 OrElse 7 > 3.
1. True
2. False
6. Evaluate the following expression: 7 + 3 * 2 < 6 * 3 AndAlso 20 >= 4 * 5.
1. True
2. False
7. Evaluate the following expression: 5 * 7 > 6 ˆ 2.
1. True
2. False
, 8. Evaluate the following expression: False AndAlso True OrElse True.
1. True
2. False
9. What will the following code assign to the intCost variable when the intAge variable
contains the number 65?
1. 0
2. 5
3. 8
4. 10
10. What will the following code assign to the intCost variable when the intAge variable
contains the number 2?
1. 0
2. 5
3. 8
4. 10