Question: 1 ( Cryptography: A Secret Message ) Determine the secret message that will be displayed by this program segment. Dim A As Char = M
1 ( Cryptography: A Secret Message )
Determine the secret message that will be displayed by this program segment.
Dim A As Char = "M"
Dim B As Char = "A"
Dim C As Char = "T"
Dim D As Char = "E"
Console.Write(C)
Console.Write(D)
Console.WriteLine(B & A)
'Answer: __________
2. Given the following programming segment, which of these would be correct concerning an available option? Select all that apply.
If (distance < 25 miles) Then
Write("Options are to drive your own car or take a taxi")
ElseIf (distance >= 25 And <= 300 miles) Then
Write("Only option is to drive your own car")
ElseIf (distance > 300 miles)
Write("Only option is to take a bus")
Else
Write("Only option is riding a bicycle")
End If
(a) People within 50 miles must drive.
(b) People under 25 miles may take a taxi.
(c) People over 300 miles may fly.
(d) People traveling 200 miles may ride a bicycle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
