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