Exam 4: Making Decisions in a Program
Exam 1: An Introduction to Visual Basic 201250 Questions
Exam 2: Creating a User Interface50 Questions
Exam 3: Memory Locations and Calculations50 Questions
Exam 4: Making Decisions in a Program50 Questions
Exam 5: More on the Selection Structure50 Questions
Exam 6: Repeating Program Instructions50 Questions
Exam 7: More on the Repetition Structure50 Questions
Exam 8: Sub and Function Procedures50 Questions
Exam 9: Arrays50 Questions
Exam 10: String Manipulation and Menus50 Questions
Exam 11: Structures and Sequential Files50 Questions
Exam 12: Access Databases and Linq50 Questions
Exam 13: Creating Simple Web Applications50 Questions
Exam 14: Creating Classes and Objects50 Questions
Exam 15: an Introduction to Programming17 Questions
Select questions type
If intQuantity >= 10 Then dblTotal = intQuantity * 2.5
Else
DblTotal = intQuantity * 3.5
End If
The intQuantity variable contains the number 8 before the code above is processed. What value will be in the dblTotal variable after the code is processed?
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
C
A(n) ______________________________ is a device that produces a sequence of numbers that meet certain statistical requirements for randomness.
Free
(Short Answer)
4.9/5
(36)
Correct Answer:
pseudo-random number generator
You do not always need to include the ____ clause in an If...Then...Else statement.
Free
(Multiple Choice)
4.7/5
(49)
Correct Answer:
C
The set of statements contained in each path of the If...Then...Else statement is referred to as a(n) ____.
(Multiple Choice)
4.9/5
(35)
Match each item with a statement below.
a.ControlChars.NewLine constant
f.AndAlso
b.condition
g.&
c.>
h.single-alternative selection structure
d.dual-alternative selection structure
i.OrElse
e.<
-The greater than operator.
(Short Answer)
4.8/5
(38)
____________________ operators allow you to combine two or more conditions into one compound condition.
(Short Answer)
4.8/5
(47)
If the intAge variable contains the number 30, the condition If intAge > 20 AndAlso intAge < 30 Then will evaluate to
(Multiple Choice)
4.8/5
(36)
Match each item with a statement below.
a.ControlChars.NewLine constant
f.AndAlso
b.condition
g.&
c.>
h.single-alternative selection structure
d.dual-alternative selection structure
i.OrElse
e.<
-The less than operator.
(Short Answer)
4.7/5
(25)
Pseudo-random numbers are chosen with equal probability from a(n) ____ set of numbers.
(Multiple Choice)
4.8/5
(36)
Truth tables summarize how the computer evaluates the ____ operators in an expression.
(Multiple Choice)
4.7/5
(39)
Match each item with a statement below.
a.ControlChars.NewLine constant
f.AndAlso
b.condition
g.&
c.>
h.single-alternative selection structure
d.dual-alternative selection structure
i.OrElse
e.<
-The logical operator where the compound condition evaluates to True only when both sub-conditions are True.
(Short Answer)
4.9/5
(33)
Explain logical operators in terms of how they are used and evaluated within an expression. Provide an example of a logical operator.
(Essay)
4.8/5
(38)
Match each item with a statement below.
a.ControlChars.NewLine constant
f.AndAlso
b.condition
g.&
c.>
h.single-alternative selection structure
d.dual-alternative selection structure
i.OrElse
e.<
-Specifies the decision you are making.
(Short Answer)
4.9/5
(44)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)