BIS 311 DeVry Week 5 Quiz
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 5 <strong>Quiz</strong><br />
Downloading is very simple, you can download this Course here:<br />
http://mindsblow.us/question_des/<strong>BIS</strong><strong>311</strong><strong>DeVry</strong><strong>Week</strong>5<strong>Quiz</strong>/4369<br />
Or<br />
Contact us at:<br />
help@mindblows.us<br />
<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 5 <strong>Quiz</strong><br />
<strong>BIS</strong><strong>311</strong><br />
<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 5 <strong>Quiz</strong><br />
1. (TCO 7) The syntax of the Call statement is _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Call procedureName([argumentList])<br />
Call procedureName{[parameterList]}<br />
Call procedureName([argumentList], dataType)<br />
Call procedureName([argumentList]) As dataType<br />
Question 2. 2. (TCO 7) (TCO 4) You pass a variable _____ when the receiving procedure needs to know the<br />
variable's contents but the receiving procedure does not need to change the contents. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
by reference<br />
by parameter<br />
by data type<br />
by value<br />
Question 3. 3. (TCO 7) The procedure footer in a Function procedure is always _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
End Function<br />
End Procedure<br />
End Sub<br />
End Sub Procedure<br />
Question 4. 4. (TCO 7) The syntax _____ assigns a function’s return value to a variable. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
dblNewPrice = GetNewPrice(dblCurrentPrice)<br />
lblNewPrice.Text = GetNewPrice(dblCurrentPrice).ToString<br />
Dim dblNewPrice<br />
dblNewPrice = dblCurrentPrice<br />
Question 5. 5. (TCO 7) The syntax _____ displays a return value. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
dblNewPrice = GetNewPrice(dblCurrentPrice)<br />
lblNewPrice.Text = GetNewPrice(dblCurrentPrice).ToString<br />
Dim dblNewPrice<br />
dblTotalDue = intQuantity * GetNewPrice(dblCurrentPrice)
Question 6. 6. (TCO 7) The default combo-box style in Visual Basic is _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Text<br />
Simple<br />
DropDown<br />
DropDownList<br />
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<br />
: 1)<br />
o 0<br />
o 1<br />
o 2<br />
o 3<br />
Question 8. 8. (TCO 7) The expression Math.Round(287.876, 2) yields a value of _____. (Points : 1)<br />
o 287.87<br />
o 287.88<br />
o 288.00<br />
o 290.00<br />
Question 9. 9. (TCO 7) The number of characters contained in a string is stored in the string’s _____ property.<br />
(Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Size<br />
Characters<br />
Length<br />
NumChars<br />
Question 10. 10. (TCO 7) If the argument indicating the number of characters to the Remove method is omitted,<br />
the Remove method _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
removes no characters<br />
causes a runtime error<br />
removes the single character at the starting position only<br />
removes all characters from the starting position through the end of the string<br />
Question 11. 11. (TCO 7) The _____ method allows you to add characters anywhere in a string. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Add<br />
Update<br />
New<br />
Insert<br />
Question 12. 12. (TCO 7) If the specified substring is not found within the string being searched, the IndexOf<br />
method returns the value _____. (Points : 1)<br />
o False<br />
o the empty string<br />
o 0<br />
o -1<br />
Question 13. 13. (TCO 7) If strDepartment contains "Sales and Marketing", the expression<br />
strDepartment.Substring(6, 3) returns _____. (Points : 1)
o<br />
o<br />
o<br />
o<br />
"and"<br />
"es and"<br />
" an"<br />
"les an"<br />
Question 14. 14. (TCO 7) The _____ operator allows you to use pattern-matching characters to determine if one<br />
string is equal to another. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Similar<br />
Compare<br />
Match<br />
Like<br />
Question 15. 15. (TCO 7) When using pattern matching to compare strings, the * character matches _____. (Points<br />
: 1)<br />
o<br />
o<br />
o<br />
o<br />
zero or more characters<br />
any single character<br />
any single digit<br />
any single character not in a specified character list<br />
Question 16. 16. (TCO 7) The _____ keyword in a procedure header indicates the procedure can only be used<br />
within the current Code Editor window. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Public<br />
Private<br />
Static<br />
Local<br />
Question 17. 17. (TCO 7) The keyword _____ before a parameter in a procedure's parameter list indicates a<br />
variable for that parameter will be passed by value. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
ByRef<br />
AsRef<br />
AsVal<br />
ByVal<br />
Question 18. 18. (TCO 7) The keyword _____ before a parameter in a procedure's parameter list indicates a<br />
variable for that parameter will be passed by reference. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
ByCopy<br />
ByAddress<br />
ByVal<br />
ByRef<br />
Question 19. 19. (TCO 7) The data type of the expression in a function's Return statement must agree with the<br />
data type _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
of the function's parameters<br />
of the arguments passed to the function<br />
specified in the As dataType section of the function header<br />
specified in the function footer<br />
Question 20. 20. (TCO 7) Which statement could correctly be used to invoke the following Sub procedure?<br />
Private Sub DisplayResults(intQuantity As Integer, decPrice As Decimal)
lblQuantity.Text = Format(intQuantity, "Standard")<br />
lblPrice.Text = Format(decPrice, "Currency")<br />
End Sub (Points : 1)<br />
o Call DisplayResults()<br />
o Call DisplayResults(17, 9.95)<br />
o Call DisplayResults(intNewQty)<br />
o decNewPrice = DisplayResults(intNewQty)