Exam 3: Variables, Input, and Output

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

The following statement is valid. y = y + 72

(True/False)
4.8/5
(28)

The variables firstName and firstNAME are identical.

(True/False)
5.0/5
(35)

The value of (11 \ 2) is 1.

(True/False)
4.9/5
(46)

Option Explicit requires you to declare every variable before its use.

(True/False)
4.8/5
(40)

Which statement assigns today's date to the Date variable currently?

(Multiple Choice)
4.8/5
(34)

The lstBox.Items.Clear statement is used to empty the contents of a list box.

(True/False)
4.8/5
(33)

Which of the following statements is a valid assignment statement?

(Multiple Choice)
4.8/5
(39)

The statement a + b = c assigns to c the sum of the values of a and b.

(True/False)
4.8/5
(39)

Which of the following is the same as 2 ^ 3?

(Multiple Choice)
4.9/5
(44)

Suppose you are 20 years old, num is an integer variable, and the statement  num =1+ CInt (InputBox ("How old are you?")) \text { num } = 1 + \text { CInt (InputBox ("How old are you?")) } is executed and responded to? What will be the output of txtBox. Text == num &"\& " years old ""

(Multiple Choice)
4.9/5
(40)

Typecasting is used to convert a value to a different data type.

(True/False)
5.0/5
(31)

Which of the following expressions has as its value the value of strVar with its leading and trailing spaces removed?

(Multiple Choice)
4.8/5
(33)

Numeric variables can be initialized to zero or any other number, but once they are initialized, they cannot be changed.

(True/False)
4.8/5
(32)

The line continuation character must be preceded with a space.

(True/False)
4.8/5
(39)

The type of error that is normally spotted by the Code Editor is:

(Multiple Choice)
4.7/5
(43)

Which statement can be used to clear the contents of a text box?

(Multiple Choice)
4.8/5
(44)

Which of the following masks is appropriate for a masked text box into which the user will enter a license plate consisting of two digits followed by 4 letters?

(Multiple Choice)
4.8/5
(39)

The following two statements are equivalent. var1 = var2 var2 = var1

(True/False)
4.9/5
(35)

A statement of the form dblVar = intVar is a narrowing assignment statement.

(True/False)
4.8/5
(34)

The value of (12345).ToString("C") is $12,345.00.

(True/False)
4.8/5
(45)
Showing 41 - 60 of 101
close modal

Filters

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