Exam 4: 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
Consider the expression 3 * 2 ^ 2 15 - 3. Which operation is performed second?
(Multiple Choice)
4.8/5
(35)
Case-Based Critical Thinking Questions Case 1 - Jack of All Trades
Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.
The message provided when a customer is not a current member of the Rental Rewards Program is "Enroll this customer in the Rental Rewards Program?". The clerk must enter a decision before the application can continue. Which of the message box buttons should be used?
(Multiple Choice)
4.8/5
(30)
A text box's ____ event occurs when the text box receives the focus.
(Multiple Choice)
4.8/5
(41)
Consider the expression 3 * 2 ^ 2 15 - 3. Which operation is performed first?
(Multiple Choice)
4.7/5
(44)
Comparison operators are always evaluated after arithmetic operators in a conditional expression.
(True/False)
4.8/5
(40)
A control's ____ event occurs each time the user presses a key while the control has the focus.
(Multiple Choice)
4.7/5
(37)
Write an If clause that will determine if the strColor variable contains either the string "red" or the string "blue".
(Essay)
4.7/5
(37)
Case-Based Critical Thinking Questions Case 1 - Jack of All Trades
Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.
Which of the following If clauses would evaluate to True and apply the 10% discount for a commercial customer?
(Multiple Choice)
4.8/5
(29)
The ____ method displays a message box that contains text, one or more buttons, and an icon.
(Multiple Choice)
4.9/5
(28)
Write an If...Then...Else statement that assigns the number 2000 to the intBonus variable when the decSales variable contains a number that is greater than or equal to $50,000; otherwise, assign the number 500.
(Essay)
4.9/5
(37)
A programmer must phrase the condition of a selection structure so that it results in either a true or a false answer only.
(True/False)
4.8/5
(24)
The Not operator would make a True statement False, but would not make a False statement True.
(True/False)
4.9/5
(29)
Write a statement that changes the contents of the txtStatus control's text property to uppercase and stores it in the strStatus variable.
(Essay)
4.9/5
(31)
Case-Based Critical Thinking Questions Case 1 - Jack of All Trades
Jack of All Trades rents small power equipment to commercial and residential customers. The strCustomer variable is used to determine whether a customer is commercial (C) or residential (R). Commercial customers receive a 10% discount if they are members of the Rental Rewards Program. Residential customers receive a 5% discount if they are members.
The application needs to display a message box to remind the clerk to ask customers to join the Rental Rewards Program when they check out. This message box should only display if the customer is not currently in the program. Which of the following If clauses would evaluate to True and display the message box for the clerk?
(Multiple Choice)
4.8/5
(23)
An application needs to calculate a discount for customers who are either preferred customers or senior citizens. Preferred customers have a discount code of "P". Senior citizens have a discount code of "S". The discount code is stored in the strCode variable. Write an If clause to calculate a discount for all preferred members and senior citizens using the strCode variable.
(Essay)
4.7/5
(26)
Write a statement that creates a message box that displays an OK button, an Information icon, "Harris Pharmacy" in the title bar, and the message "Please enter a pickup time for your order".
(Essay)
4.8/5
(23)
Showing 41 - 59 of 59
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)