You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 3 <strong>Quiz</strong><br />
Downloading is very simple, you can download this Course here:<br />
http://wiseamerican.us/product/bis-<strong>311</strong>-devry-week-3-quiz/<br />
Or<br />
Contact us at:<br />
SUPPORT@WISEAMERICAN.US<br />
<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 3 <strong>Quiz</strong><br />
<strong>BIS</strong><strong>311</strong><br />
<strong>BIS</strong> <strong>311</strong> <strong>DeVry</strong> <strong>Week</strong> 3 <strong>Quiz</strong><br />
1. (TCO 5) The three basic control structures used in programming are sequence, selection, and _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
deselection<br />
repetition<br />
filtering<br />
modification<br />
Question 2. 2. (TCO 5) The selection structure indicates that a decision needs to be made, followed by a(n) _____<br />
appropriate to that decision. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
action<br />
condition<br />
test<br />
assertion<br />
Question 3. 3. (TCO 5) The condition in a _____ structure must be phrased so that it evaluates to either true or<br />
false. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
sequence<br />
transformation<br />
linear<br />
selection<br />
Question 4. 4. (TCO 5) A _____ selection structure performs one or more actions only when its condition evaluates<br />
to true. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
dual-alternative<br />
single-alternative<br />
multiple-alternative<br />
non-alternative<br />
Question 5. 5. (TCO 5) The _____ of a selection structure is placed inside a diamond symbol in a flowchart. (Points<br />
: 1)<br />
o<br />
o<br />
o<br />
true path<br />
false path<br />
condition
o<br />
result<br />
Question 6. 6. (TCO 5) The set of statements contained in each path of an If . . . Then . . . Else statement is called<br />
a _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
statement block<br />
loop body<br />
procedure call<br />
function<br />
Question 7. 7. (TCO 5) Expressions containing a comparison operator always evaluate to _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
True or False<br />
zero<br />
a positive integer<br />
a negative integer<br />
Question 8. 8. (TCO 5) In Visual Basic, the comparison operator that should be thought of as the exact opposite<br />
of “greater than” (>) is _____. (Points : 1)<br />
o <<br />
o >=<br />
o =<br />
o <br />
intValue2 Then<br />
Dim intTemp As Integer<br />
intTemp = intValue1<br />
intValue1 = intValue2<br />
intValue2 = intTemp<br />
End If (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
procedure scope<br />
module scope<br />
block scope<br />
namespace scope<br />
Question 10. 10. (TCO 5) Which logical operator is not used for combining two or more conditions into a compound<br />
condition? (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
And<br />
Or<br />
Not<br />
Xor<br />
Question 11. 11. (TCO 5) The method in Visual Basic for converting a string to all uppercase is _____. (Points :<br />
1)<br />
o<br />
o<br />
o<br />
o<br />
Capitalize<br />
AllCaps<br />
FromLower<br />
ToUpper
Question 12. 12. (TCO 5) The optional identifying label for a group box is entered in its _____ property. (Points :<br />
1)<br />
o<br />
o<br />
o<br />
o<br />
Caption<br />
Text<br />
Label<br />
ID<br />
Question 13. 13. (TCO 5) When a message box requires the user to make a decision, it should be displayed with<br />
the _____ icon. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Information<br />
Exclamation<br />
Stop<br />
Interrogation<br />
Question 14. 14. (TCO 5) Which of the following is a valid combination of buttons that can be displayed in a<br />
message box? (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Retry, OK<br />
Yes, No, OK<br />
OK, Abort, Retry<br />
Abort, Retry, Ignore<br />
Question 15. 15. (TCO 5) When a selection structure’s true path or false path contains another selection structure,<br />
it is referred to as a(n) _____ selection structure. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
indented<br />
nested<br />
embedded<br />
complex<br />
Question 16. 16. (TCO 5) The process of reviewing an algorithm for correctness using pencil and paper rather<br />
than a computer is called _____. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
flowcharting<br />
pseudocoding<br />
data validation<br />
desk-checking<br />
Question 17. 17. (TCO 5) In Visual Basic, a multiple-alternative selection structure can be coded using the _____<br />
keyword in the If . . . Then . . . Else statement. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Option<br />
ElseIf<br />
Otherwise<br />
When<br />
Question 18. 18. (TCO 5) In Visual Basic, multiple-alternative selection structures can be coded using the _____<br />
statement instead of the If . . . Then . . . Else statement. (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
Choose Option<br />
Select Case<br />
Make Decision<br />
Pick Alternative
Question 19. 19. (TCO 5) What value will the following code snippet assign to the variable decPrice when the<br />
variable intPriceCode has the value 2?<br />
Select Case intPriceCode<br />
Case 1 To 2<br />
decPrice = 15.00<br />
Case 3<br />
decPrice = 25.00<br />
Case 4<br />
decPrice = 35.00<br />
Case 5<br />
decPrice = 37.00<br />
Case Else<br />
decPrice = 99.99<br />
End Select (Points : 1)<br />
o 15.00<br />
o 25.00<br />
o 35.00<br />
o 99.99<br />
Question 20. 20. As part of calculating a student’s grade point average (GPA), we want to create a Select Case<br />
statement to assign the correct point value to the variable intPoints based on the student’s letter grade in variable<br />
strGrade (i.e., A = 4 points, B = 3 points, C = 2 points, D = 1 point, F = 0 points). What should go in the blank to complete<br />
the code snippet below?<br />
Select Case strGrade<br />
Case “A”<br />
intPoints = 4<br />
Case “B”<br />
intPoints = 3<br />
Case “C”<br />
intPoints = 2<br />
Case “D”<br />
intPoints = 1<br />
Case Else<br />
intPoints = 0 _____ (Points : 1)<br />
o<br />
o<br />
o<br />
o<br />
End Select<br />
Stop Select<br />
End Case<br />
Close Case