Exam 3: Variables, Input, and Output

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The value of strVar.Length is the number of characters in the value of strVar.

Free
(True/False)
4.7/5
(33)
Correct Answer:
Verified

True

What will be displayed when the following lines are executed? Dim x As Double = 2 'x = 3 txtBox.Text = CStr(x)

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

C

When using the equal sign to assign values, the variable on the left hand side of the equal sign will always receive the value.

Free
(True/False)
4.7/5
(38)
Correct Answer:
Verified

True

What is the value of Int(8.9)?

(Multiple Choice)
4.7/5
(32)

Which of the following is not used to assign a value to a variable?

(Multiple Choice)
4.9/5
(48)

Given x = 3 and y = 1, what value will be assigned to the Double variable w when the following statement is executed? w = (x + y) / (x - y)

(Multiple Choice)
4.8/5
(38)

Suppose the Double variable num has the value 123.4567. What value will the following statement assign to num? num = Math.Round(num, 2)

(Multiple Choice)
4.9/5
(49)

The value of (11 Mod 2) is 1.

(True/False)
4.9/5
(34)

What is the value of ("12/15/09").Substring(3,2)?

(Multiple Choice)
4.8/5
(25)

The empty string is the same as a string that contains one space.

(True/False)
4.9/5
(33)

When a variable declared in one event procedure has the same name as a variable declared in another event procedure, any change to the value of one of the variables will affect the value of the other variable.

(True/False)
4.9/5
(33)

Which statement will display the words "Hello World" in a text box?

(Multiple Choice)
4.9/5
(37)

What is the correct syntax for displaying the value of the String variable myString in a text box?

(Multiple Choice)
4.9/5
(41)

Which of the following is a valid name for a variable?

(Multiple Choice)
4.9/5
(30)

If the value of the Date variable currently is the first day of 2011, then what is displayed by the statement txtBox.Text = CStr(currently.AddMonths(1))?

(Multiple Choice)
4.8/5
(36)

The value returned by InputBox is a string.

(True/False)
4.9/5
(45)

The value of DateDiff(DateInterval.Day, #1/1/2014#, #2/1/2014#) is 31.

(True/False)
4.9/5
(39)

The following statement contains what type of error? txtAverage.Txt = CStr(CDbl(txtNum1.Text) + CDbl(txtNum2.Text) / 2)

(Multiple Choice)
4.7/5
(32)

Which of the following code statements generates an error?

(Multiple Choice)
4.8/5
(35)

The statement Const TAX_RATE As Double is not valid.

(True/False)
4.9/5
(34)
Showing 1 - 20 of 101
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)