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

1. The following lines of code are correct.
If age >= 13 And < 20 Then
txtOutput.Text = ";You are a teenager."
End If
2. The Else part of an If block may be omitted if no action is associated with it.
3. Given that x = 7, y = 2, and z = 4, the following If block will display "TRUE".
If (x >y) Or (y > z) Then
txtBox.Text = "TRUE"
End If
4. Given that x = 7, y = 2, and z = 4, the following If block will display "TRUE"
If (x > y) And (y > z) Then
txtBox.Text = "TRUE'
End If
5. Every If block must have a Then and an Else.

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

Computer Science & Information Technology

You might also like to view...

Where is the spelling command found?

A) Home tab; Spelling group B) Review tab; Spelling group C) Review tab; Proofing group D) Home tab; Proofing group

Computer Science & Information Technology

What are the characteristics of a RISC processor that distinguish it from a CISC processor? Does it matter whether this question is asked in 2015 or 1990?

What will be an ideal response?

Computer Science & Information Technology