Exam 3: Variables, Input, and Output

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

The value of (#1/1/2014#).ToString("D") is

(Multiple Choice)
4.8/5
(25)

The Substring method is used to extract a portion of a string.

(True/False)
4.9/5
(43)

Which of the following statements declare the variables a and b as type Integer?

(Multiple Choice)
4.7/5
(43)

Which statement assigns the date of the first day of the year 2014 to the Date variable firstDay?

(Multiple Choice)
4.9/5
(41)

Which of the following statements will NOT display the number 5 in the text box?

(Multiple Choice)
4.8/5
(28)

What will be displayed when the following lines are executed?Dim a,ba , b , c As String a = "THE WHOLE" b=\mathbf { b } = "PART" c=ac = a . Substring (CInt (Math.Sqrt (4)), b. Length) txtBox. Text == cStr (c)( c ) (A) THE WHOLE PART (B) 6 (C) E\mathrm { E } ?H (D) HE\mathrm { HE } W

(Multiple Choice)
4.9/5
(29)

Which statement prompts the user for a name and then assigns the name to the string variable strName?

(Multiple Choice)
4.9/5
(45)

The joining of two strings together to form a new string is called

(Multiple Choice)
4.8/5
(43)

The statement lstBox.Items.Add("") clears all the text from the list box.

(True/False)
4.9/5
(34)

Visual Basic always displays numbers in decimal format.

(True/False)
4.8/5
(36)

The function Math.Int will always round mixed numbers down to the next lowest integer.

(True/False)
4.8/5
(31)

The following statement is valid. Dim x As Double = 3,542.36

(True/False)
4.9/5
(39)

The following statement assigns 6 times the value of y to x. x = 6y

(True/False)
4.9/5
(36)

What will be displayed when the following lines are executed? Dim xx As Double =3,y= 3 , y As Double =1= 1 Dim z As Double =+(\star) = =+ lstBox. Items. Add (x+y+z)( x + y + z )

(Multiple Choice)
4.8/5
(40)

A variable declared inside an event procedure is said to have local scope.

(True/False)
4.8/5
(42)

Named constants must have class-level scope.

(True/False)
4.7/5
(45)

The symbol for the string concatenation operator is

(Multiple Choice)
4.8/5
(36)

A variable declared inside an event procedure cannot have the same name as a variable declared inside another procedure.

(True/False)
4.8/5
(36)

The following two statements are equivalent, where numVar is a numeric variable. numVar = numVar + 1 numVar += 1

(True/False)
4.9/5
(32)

What is displayed in the title bar of the message dialog box by the following statement? MessageBox.Show("This is a test.", "Test")

(Multiple Choice)
4.8/5
(40)
Showing 61 - 80 of 101
close modal

Filters

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