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...

The file extension for an OpenOffice Writer document is ________

A) .doc B) .docx C) .odt D) .rtf

Computer Science & Information Technology

Which of the following is not a function of a VoIP gateway?

a. Provides an interface for IP telephony calls to the PSTN b. To interface one IP telephone system with another c. Makes sure that the proper signaling is included d. Does not package data

Computer Science & Information Technology

Programs that run within a browser and allow users to view and interact with files within the browser’s window are called _______________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Case-Based Critical Thinking Question ? Patrice hosts a radio show on his college station. He wants to post clips from some of his shows on his website for review by potential employers. Patrice specifies a MIME type ofaudio/mpegfor each of his clips. This is because the clips are encoded in which audio format?

A. AAC B. mp3 C. Opus D. Vorbis

Computer Science & Information Technology