Exam 4: The Selection Structure
Exam 1: An Introduction to Visual Basic 201544 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure60 Questions
Exam 5: More on the Selection Structure58 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 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3.Which operation is performed last?
(Multiple Choice)
4.8/5
(25)
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.
(Short Answer)
4.8/5
(37)
What is a selection structure? What is the difference between a single-alternative and dual-alternative selection structure?
(Essay)
4.8/5
(32)
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".
(Short Answer)
4.8/5
(43)
When coding a selection instruction in Visual Basic,the code that follows the Else statement includes those instructions that will be executed when the condition is true.
(True/False)
5.0/5
(36)
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.
-If a customer decides to enroll in the Rental Rewards Program,the Member Information Form displays for the clerk to enter the membership data for the customer.Which of the following statements sends the focus to the txtFirstName control and highlights any text within it?
(Multiple Choice)
4.7/5
(33)
With the KeyPress event,use the e parameter's ____ property to cancel the key if it is an inappropriate one.
(Multiple Choice)
4.9/5
(38)
Which of the following conditions will evaluate to True when the intPackages variable contains the value 100?
(Multiple Choice)
4.7/5
(31)
Your professor wants an application that allows a student to enter two grades and calculate the average of those grades.The application should display the message "Pass" if the average of the grades is 70 or greater.The application should display the message "Fail if the average of the grades is less than 70.Write the pseudocode for the solution to this problem.
(Essay)
4.9/5
(35)
Before using a string in a comparison,you can use either the ToUpper method or the ToLower method to convert the string to uppercase or lowercase,respectively,and then use the converted string in the comparison.
(True/False)
4.9/5
(44)
The ____ operator is evaluated first in the following expression: 9 * 2 - 8 > 5 + 2 / 2.
(Multiple Choice)
4.9/5
(32)
Complete the chart shown below.
Original Expression 3>7 OrElse 15<4*4 4*4 is evaluated first 3>7 OrElse 15<16 ----- is evaluated next ------ ----- is evaluated next ------ ----- is evaluated last ------
(Essay)
4.8/5
(32)
Consider the expression 3 * 2 ^ 2 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3.Which operation is performed first?
(Multiple Choice)
4.8/5
(29)
Which of the following statements assigns the contents of the txtGrade control,in uppercase,to the strGrade variable?
(Multiple Choice)
4.8/5
(28)
Write an If...Then...Else statement that displays the string "Balance Due" in the lblMessage control when the decBalance variable contains a number that is greater than 0; otherwise,assign the string "Thank you for your payment."
(Short Answer)
4.8/5
(36)
If dblMiles >= 500 Then dblMiles = dblMiles * 0.45
Else
DblMiles = dblMiles * 0.25
End If
The dblMiles variable contains the number 575 before the code above is processed.What value will be in the variable after the code is processed?
(Multiple Choice)
4.9/5
(39)
The Not operator would make a True statement False,but would not make a False statement True.
(True/False)
4.8/5
(39)
Showing 21 - 40 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)