Reference no: EM132171772
Using (.NET) Microsoft Visual Basics ONLY:
Chapter 4-
3. Based on the variable declarations below, determine the value, true or false, for each of the following Boolean expressions.
Dim quantity As Integer = 5
Dim color As String = "Green"
Boolean Expression
|
Boolean Result
|
quantity = 5 And color = "Blue"
|
|
quantity = 10 And color = "Green"
|
|
quantity = 10 Or color = "Blue"
|
|
quantity = 5 Or color = "Blue"
|
|
Not color = "Blue"
|
|
4. Write an appropriate decision statement for each of the following.
Display "Number must be no more than 100." in a message box if the value in the textbox name txtScore is greater than 100.
Display "Cooked" in a label named lblMessage when variable temp is between 140 and 160, inclusive.
5. Which is the appropriate word for the first blank below, odd or even? Which is the appropriate word for the second blank?
If number Mod 2 <> 0 Then
MessageBox.Show ("Your number is _____")
Else
MessageBox.Show ("Your number is _____")
End If
Which is the appropriate word for the first blank above, odd or even?
Which is the appropriate word for the second blank, odd or even?