Exam 5: More on the Selection Structure
Exam 1: An Introduction to Visual Basic 201560 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure59 Questions
Exam 5: More on the Selection Structure60 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and Sql60 Questions
Select questions type
A meat packer grades meat "P" for Prime, "C" for Choice, "S" for Standard, and "G" for Good. Which of the following Case expressions is incorrect?
(Multiple Choice)
4.8/5
(35)
After creating a Random object, you can generate random integers using the ____ method.
(Multiple Choice)
4.8/5
(31)
The maximum number of radio buttons that can be selected from a group is ____.
(Multiple Choice)
5.0/5
(38)
Case-Based Critical Thinking Questions Case 1 - Horizon Cleaners
Horizon Cleaners is an organic dry cleaner for clothing. The price for dry cleaning a shirt is $3.00, the price for pants is $3.50, and the price for dresses is $4.00. All clothes can be either washed or dry cleaned. Dry cleaned clothes can be hung or folded, and folded items cost an additional $0.50 per item.
You meet with the manager to show her the interface and obtain feedback. She tells you that very few customers request dry cleaned clothes to be folded. She suggests only applying the folding fee if a customer makes a special request, and it should be calculated for all laundered items in a customer's order. You decide to make the folding fee ____.
(Multiple Choice)
4.8/5
(38)
A selection structure's true path should calculate the ending inventory value only when the price entered by the user can be converted to a number. Which statement will return a Boolean value of True and store it in blnPriceOK if the number can be converted?
(Multiple Choice)
4.9/5
(31)
If the intQuantity variable contains the number 25 and the customer is not a member, what value will be in the decTotal variable after the code is processed?

(Multiple Choice)
4.9/5
(40)
A common error made when writing selection structures is to use a compound condition in the outer selection structure when a nested selection structure is needed.
(True/False)
4.9/5
(27)
The price chart for Trent Wholesale is shown below. Rewrite the incorrect statements in the associated code to correct all errors.
Quantity Ordered Price per Item
1-10 $12
11-20 $11
More than 20 $9
Less than 1 $0
Case Select intQuantity
Case
intPrice = 12
Case Is 11 - 20
intPrice = 11
Case > 20
intPrice = 9
Case Else
intPrice = 0
End Select
(Essay)
4.9/5
(35)
You enter the label for a radio button using sentence capitalization in the radio button's ____ property.
(Multiple Choice)
4.9/5
(43)
Reversing the primary and secondary logical decisions when writing a selection structure that contains a nested selection structure has no impact on the program's execution.
(True/False)
4.7/5
(36)
In a nested selection structure, the primary decision is always made by the outer selection structure.
(True/False)
4.8/5
(34)
An application needs to generate a random number that is greater than or equal to 1 but less than 348. Write the statements to generate the random number and assign it to the intNum variable.
(Essay)
4.9/5
(35)
An application needs to generate three random numbers that can be from 1 to 9. The random numbers will be assigned to variables named intNum1 , intNum2 , and intNum3 . Write the necessary statements to generate the random numbers and store them in their respective variables. The following Dim statements are provided:
Dim intNum1 As Integer
Dim intNum2 As Integer
Dim intNum3 As Integer
(Essay)
4.8/5
(29)
Jamestown Medical Center pays a year-end bonus (either $100 or $200) to all employees based on their participation in a wellness program. To receive the $100 bonus, employees must pass the annual health screening. To receive the $200 bonus, employees must pass the annual health screening and participate in the Healthy Life Workshop. If an employee does not pass the health screening, he or she does not receive a bonus. The application should display the bonus amount at the end. Write the algorithm for this application.
(Essay)
4.9/5
(33)
Which of the following conditions will evaluate to True when the chkValidID check box is not selected?
(Multiple Choice)
4.9/5
(39)
The If/ElseIf/Else selection structure needs only one End If statement to mark the end of the selection structure.
(True/False)
4.7/5
(27)
An online bookseller uses the following schedule to determine the shipping costs:
What is a correct case expression for a category II book order based upon Books Ordered?

(Multiple Choice)
4.8/5
(40)
Write a multiple-alternative selection structure that displays the name of an instructor based on the class section entered by the user. The class section is stored (as uppercase) in the strSection variable. Display "Edwards" when the class section is A. Display "Hughes" when the class section is B. Display "Meadows" when the class section is C. For all other sections, display "To Be Announced". Display the message in the lblMessage control. Use the If/ElseIf/Else form of the If...Then...Else statement.
(Essay)
4.9/5
(36)
When the Select Case statement includes a Case ____ clause, this clause must be the last clause in the statement.
(Multiple Choice)
4.7/5
(41)
Showing 21 - 40 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)