CSIS 208 Quiz 2

CSIS 208 Quiz 2 Liberty University

  1. The exponential notation used in Visual Basic is exactly the same as standard mathematical notation. (T/F)
  2. What will be the contents of the variable x after the following statement is executed?
    x = Math.Sqrt(((9 + 7) / (4 * 2)) + 2)
  3. Which statement prompts the user for a name and then assigns the name to the string variable strName?
  4. What will be the output of the following statement?
    Text = (1234.56789).ToString(“N3”)
  5. A numeric variable that has not been assigned a value has the default value zero. (T/F)
  6. What is the data type of 6D/3D?
  7. Assume that x, y, and temp are Integer variables. Which of the following lines of code swaps the values of x and y?
  8. An assignment statement is used to assign a value to a variable or property. (T/F)
  9. What is the correct syntax for displaying the value of the String variable myString in a text box?
  10. A statement of the form dblVar = intVar is a narrowing assignment statement. (T/F)
  11. Which of the numbers below is equivalent to 0.000017489?
  12. The Trim method is used to remove all blank space before and after a string. (T/F)
  13. The value returned by InputBox is a string. (T/F)
  14. The Substring method is used to extract a portion of a string. (T/F)
  15. What value will be assigned to the numeric variable x when the following statement is executed?
    x = 2 + 3 * 4
  16. What is displayed in the title bar of the message dialog box by the following statement?
    Show(“This is a test.”, “Test”)
  17. The following statement is valid. (T/F)

    Dim x As Double = 3,542.36

  18. When declaring a variable that will refer to a submarine, a good name for the variable is sub. (T/F)
  19. Suppose you are 20 years old, num is an integer variable, and the statement
    num = 1 + CInt(InputBox(“How old are you?”)) is executed and responded to? What will be the output of  txtBox.Text = num & ” years old”
  20. The following statement assigns 6 times the value of y to x. (T/F)

    x = 6y

$2.99
Buy Answer Key
  • Find by class