Exam 3: Variables, Input, and Output

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

An assignment statement of the form intVar = 8 / 4 is not valid.

(True/False)
5.0/5
(42)

Given the data assigned to the string variable str2 shown below, which of the following statements will assign the value ALL to the string variable str1? str2 = "WHEN ALL ELSE FAILS, READ THE DIRECTIONS"

(Multiple Choice)
4.9/5
(42)

What character is used to signify the beginning of a comment statement?

(Multiple Choice)
4.9/5
(41)

What will be the value of numVar when the following code is executed? Dim strVar As String, numVar As Integer strvar == "Now is the time for all good men" numVar == strVar. Indexof ("the time for")

(Multiple Choice)
4.8/5
(40)

The following statements assign the lowercase letters to the string variable alphabet. Dim alphabet As String alphabet = abcdefghijklmnopqrstuvwxyz

(True/False)
4.8/5
(39)

Which of the numbers below is equivalent to 0.000017489?

(Multiple Choice)
4.8/5
(35)

You can use a variable name in almost any place you could use a literal value.

(True/False)
4.8/5
(35)

The following statement is valid where dog and cat are variables of the same type. dog = cat

(True/False)
4.8/5
(37)

An assignment statement is used to assign a value to a variable or property.

(True/False)
4.8/5
(33)

The exponential notation used in Visual Basic is exactly the same as standard mathematical notation.

(True/False)
4.7/5
(37)

Keywords in Visual Basic are words that

(Multiple Choice)
4.8/5
(38)

What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople?

(Multiple Choice)
4.9/5
(38)

Which of the following arithmetic operations has the highest level of precedence?

(Multiple Choice)
4.8/5
(35)

What will be the output of the following statement? txtBox.Text = (1234.567).ToString("C")

(Multiple Choice)
4.9/5
(37)

With Option Strict On, a statement of the form intVar = dblVar is not valid.

(True/False)
4.9/5
(30)

What will be the contents of the variable x after the following statement is executed? x = Math.Sqrt(((9 + 7) / (4 * 2)) + 2)

(Multiple Choice)
4.9/5
(39)

A variable declared outside of an event procedure is said to have class-level scope.

(True/False)
4.8/5
(37)

All comment statements must be placed at the beginning of a program.

(True/False)
5.0/5
(28)

What is the proper syntax when using a message dialog box?

(Multiple Choice)
4.7/5
(43)

The statement txtBox = "Hello" is an example of a syntax error.

(True/False)
4.9/5
(36)
Showing 21 - 40 of 101
close modal

Filters

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