Question: 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

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. (1 point each)

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. (3 points each)

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? (2 points)

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? (1 point)

Which is the appropriate word for the second blank, odd or even? (1 point)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!