MIS 525 Week 4 Quiz | Devry University
- Devry University / MIS 525
- 16 Dec 2021
- Price: $4
- Management Assignment Help / Management Information Systems
MIS 525 Week 4 Quiz | Devry University
Week 4 Review Questions - ONLINE VERSION
Question 1
The selection statement if quantity > 100 then discountRate = RATE is an example of a _____.
· dual-alternative selection
· single-alternative selection
· structured loop
· all of these
Question 2
"The selection statement if dayOfWeek = ""Sunday"" then price = LOWER_PRICE else price = HIGHER_PRICE is an example of a _____."
· dual-alternative selection
· single-alternative selection
· unary selection
· all of the above
Question 3
All selection statements must have _____.
· an then clause
· an else clause
· both of these
· none of these
Question 4
An expression like amount < 10 is a _____ expression.
· Gregorian
· Edwardian
· Machiavellian
· Boolean
Question 5
"Usually, you compare only variables that have the same _____."
· type
· size
· name
· value
Question 6
Symbols such as > and < are known as _____ operators.
· arithmetic
· sequential
· relational comparison
· scripting accuracy
Question 7
"If you could use only three relational comparison operators, you could get by with _____."
· "greater than, less than, and greater than or equal to"
· "equal to, less than, and greater than"
· "less than, less than or equal to, and not equal to"
· "equal to, not equal to, and less than"
Question 8
"If a > b is false, then which of the following is always true?"
· a <= b
· a < b
· a = b
· a >= b
Question 9
"Usually, the most difficult comparison operator to work with is _____."
· equal to
· greater than
· less than
· not equal to
Question 10
Which of the lettered choices is equivalent to the following decision?
if x > 10 then
if y > 10 then
output "X"
endif
endif
· "if x > 10 OR y > 10 then output ""X"""
· "if x > 10 AND x > y then output ""X"""
· "if y > x then output ""X"""
· "if x > 10 AND y > 10 then output ""X"""
Question 11
"The Midwest Sales region of Acme Computer Company consists of five states Illinois, Indiana, Iowa, Missouri, and Wisconsin. About 50 percent of the regional customers reside in Illinois, 20 percent in Indiana, and 10 percent in each of the other three states. Suppose you have input records containing Acme customer data, including state of residence. To most efficiently select and display all customers who live in the Midwest Sales region, you would ask first about residency in _____."
· Illinois
· Indiana
· "Either Iowa, Missouri, or Wisconsin it does not matter which one of these three is first."
· Any of the five states it does not matter which one is first.
Question 12
"The Boffo Balloon Company makes helium balloons. Large balloons cost $13.00 a dozen, medium-sized balloons cost $11.00 a dozen, and small balloons cost $8.60 a dozen. About 60 percent of the company s sales are of the smallest balloons, 30 percent are medium, and large balloons constitute only 10 percent of sales. Customer order records include customer information, quantity ordered, and size. To write a program that makes the most efficient determination of an order s price based on size ordered, you should ask first whether the size is _____."
·
Question 13
"The Boffo Balloon Company makes helium balloons in three sizes, 12 colors, and with a choice of 40 imprinted sayings. As a promotion, the company is offering a 25 percent discount on orders of large, red Happy Valentine s Day balloons. To most efficiently select the orders to which a discount applies, you would use _____."
· nested if statements using OR logic
· nested if statements using AND logic
· three completely separate unnested if statements
· Not enough information is given.
Question 14
"In the following pseudocode, what percentage raise will an employee in Department 5 receive?"
if department < 3 then
raise = SMALL_RAISE
else
if department < 5 then
raise = MEDIUM_RAISE
else
raise = BIG_RAISE
endif
endif
· SMALL_RAISE
· MEDIUM_RAISE
· BIG_RAISE
· impossible to tell
Question 15
"In the following pseudocode, what percentage raise will an employee in Department 8 receive?"
if department < 5 then
raise = SMALL_RAISE
else
if department < 14 then
raise = MEDIUM_RAISE
else
if department < 9
raise = BIG_RAISE
endif
endif
endif
· SMALL_RAISE
· MEDIUM_RAISE
· BIG_RAISE
· impossible to tell
Question 16
"In the following pseudocode, what percentage raise will an employee in Department 10 receive?"
if department < 2 then
raise = SMALL_RAISE
else
if department < 6 then
raise = MEDIUM_RAISE
else
if department < 10
raise = BIG_RAISE
endif
endif
endif
· SMALL_RAISE
· MEDIUM_RAISE
· BIG_RAISE
Question 17
"When you use a range check, you compare a variable to the _____ value in the range."
· lowest
· middle
· highest
· lowest or highest
Question 18
"If sales = 100, rate = 0.10, and expenses = 50, which of the following expressions is true?"
· sales >= expenses AND rate < 1
· sales < 200 OR expenses < 100
· expenses = rate OR sales = rate
· two of the above
Question 19
"If a is true, b is true, and c is false, which of the following expressions is true?"
· a OR b AND c
· a AND b AND c
· a AND b OR c
· two of the above
Question 20
"If d is true, e is false, and f is false, which of the following expressions is true?"
· e OR f AND d
· f AND d OR e
· d OR e AND f
· two of the above