BIS 311 DeVry Week 5 Quiz

Downloading is very simple, you can download this Course here:

http://mindsblow.us/question_des/BIS311DeVryWeek5Quiz/4369

Or

Contact us at:

help@mindblows.us

BIS 311 DeVry Week 5 Quiz

BIS311

BIS 311 DeVry Week 5 Quiz

  1. (TCO 7) The syntax of the Call statement is _____. (Points : 1)
  • Call procedureName([argumentList])
  • Call procedureName{[parameterList]}
  • Call procedureName([argumentList], dataType)
  • Call procedureName([argumentList]) As dataType

Question 2. 2. (TCO 7) (TCO 4) You pass a variable _____ when the receiving procedure needs to know the variable’s contents but the receiving procedure does not need to change the contents. (Points : 1)

  • by reference
  • by parameter
  • by data type
  • by value

Question 3. 3. (TCO 7) The procedure footer in a Function procedure is always _____. (Points : 1)

  • End Function
  • End Procedure
  • End Sub
  • End Sub Procedure

Question 4. 4. (TCO 7) The syntax _____ assigns a function’s return value to a variable. (Points : 1)

  • dblNewPrice = GetNewPrice(dblCurrentPrice)
  • lblNewPrice.Text = GetNewPrice(dblCurrentPrice).ToString
  • Dim dblNewPrice
  • dblNewPrice = dblCurrentPrice

Question 5. 5. (TCO 7) The syntax _____ displays a return value. (Points : 1)

  • dblNewPrice = GetNewPrice(dblCurrentPrice)
  • lblNewPrice.Text = GetNewPrice(dblCurrentPrice).ToString
  • Dim dblNewPrice
  • dblTotalDue = intQuantity * GetNewPrice(dblCurrentPrice)

Question 6. 6. (TCO 7) The default combo-box style in Visual Basic is _____. (Points : 1)

  • Text
  • Simple
  • DropDown
  • DropDownList

Question 7. 7. (TCO 7) Like the first item in a list box, the first item in a combo box has an index of _____. (Points : 1)

  • 0
  • 1
  • 2
  • 3

Question 8. 8. (TCO 7) The expression Math.Round(287.876, 2) yields a value of _____. (Points : 1)

  • 287.87
  • 287.88
  • 288.00
  • 290.00

Question 9. 9. (TCO 7) The number of characters contained in a string is stored in the string’s _____ property. (Points : 1)

  • Size
  • Characters
  • Length
  • NumChars

Question 10. 10. (TCO 7) If the argument indicating the number of characters to the Remove method is omitted, the Remove method _____. (Points : 1)

  • removes no characters
  • causes a runtime error
  • removes the single character at the starting position only
  • removes all characters from the starting position through the end of the string

Question 11. 11. (TCO 7) The _____ method allows you to add characters anywhere in a string. (Points : 1)

  • Add
  • Update
  • New
  • Insert

Question 12. 12. (TCO 7) If the specified substring is not found within the string being searched, the IndexOf method returns the value _____. (Points : 1)

  • False
  • the empty string
  • 0
  • -1

Question 13. 13. (TCO 7) If strDepartment contains “Sales and Marketing”, the expression strDepartment.Substring(6, 3) returns _____. (Points : 1)

  • “and”
  • “es and”
  • ” an”
  • “les an”

Question 14. 14. (TCO 7) The _____ operator allows you to use pattern-matching characters to determine if one string is equal to another. (Points : 1)

  • Similar
  • Compare
  • Match
  • Like

Question 15. 15. (TCO 7) When using pattern matching to compare strings, the * character matches _____. (Points : 1)

  • zero or more characters
  • any single character
  • any single digit
  • any single character not in a specified character list

Question 16. 16. (TCO 7) The _____ keyword in a procedure header indicates the procedure can only be used within the current Code Editor window. (Points : 1)

  • Public
  • Private
  • Static
  • Local

Question 17. 17. (TCO 7) The keyword _____ before a parameter in a procedure’s parameter list indicates a variable for that parameter will be passed by value. (Points : 1)

  • ByRef
  • AsRef
  • AsVal
  • ByVal

Question 18. 18. (TCO 7) The keyword _____ before a parameter in a procedure’s parameter list indicates a variable for that parameter will be passed by reference. (Points : 1)

  • ByCopy
  • ByAddress
  • ByVal
  • ByRef

Question 19. 19. (TCO 7) The data type of the expression in a function’s Return statement must agree with the data type _____. (Points : 1)

  • of the function’s parameters
  • of the arguments passed to the function
  • specified in the As dataType section of the function header
  • specified in the function footer

Question 20. 20. (TCO 7) Which statement could correctly be used to invoke the following Sub procedure?

Private Sub DisplayResults(intQuantity As Integer, decPrice As Decimal)

lblQuantity.Text = Format(intQuantity, “Standard”)

lblPrice.Text = Format(decPrice, “Currency”)

End Sub (Points : 1)

  • Call DisplayResults()
  • Call DisplayResults(17, 9.95)
  • Call DisplayResults(intNewQty)
  • decNewPrice = DisplayResults(intNewQty)