Exam 4: Making Decisions in a Program

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

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:
Verified

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:
Verified

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)

You use the ____ method to convert a string to uppercase.

(Multiple Choice)
4.9/5
(32)

In Visual Basic, ____ is the not equal to operator.

(Multiple Choice)
4.8/5
(35)

What is a pseudo-random number generator?

(Essay)
4.8/5
(37)

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)

How do you use the pseudo-random number generator in a procedure?

(Essay)
4.9/5
(40)

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)

Comparison operators have an order of precedence.

(True/False)
4.8/5
(34)

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)

String comparisons in Visual Basic are case-sensitive.

(True/False)
4.8/5
(25)

How do you connect or link two strings together?

(Essay)
4.9/5
(32)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)