Exam 5: More on 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
Write the TryParse statement that will convert the string stored in the txtBalance control to a Decimal number.The Decimal number should be stored in the decBalance variable,and the Boolean value that is returned should be stored in the blnIsNumber variable.
(Short Answer)
4.9/5
(29)
-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.8/5
(41)
Write a multiple-alternative selection structure that assigns an interest rate (.04,.05,.06)to the decInterestRate variable.The appropriate rate depends on the radio button selected by the user in the interface.The names of the radio buttons are rad4Rate,rad5Rate,and rad6Rate.Use the Select Case statement.
(Essay)
4.9/5
(45)
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.9/5
(43)
In a Case selection structure,you use the ____ keyword when you know only one end of the range.
(Multiple Choice)
4.8/5
(33)
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
(28)
The default radio button is designated by setting the Checked property to a value of True.
(True/False)
4.9/5
(33)
An online bookseller uses the following schedule to determine the shipping costs: Category Books Ordered B asic Cost Plus per B ook I 1-3 \ 5 .25 II 4-7 \ 7 .20 III 8-11 \ 9 .15 IV 12 or more \ 11 .10 What is a correct case expression for a category II book order based upon Books Ordered?
(Multiple Choice)
4.8/5
(34)
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 Select Case statement.
(Essay)
4.8/5
(30)
The set of step-by-step instructions for accomplishing a task is called a(n)____.
(Multiple Choice)
4.7/5
(37)
Programmers desk-check an algorithm to verify that it is not missing any steps,and that the existing steps are correct and in the proper order.
(True/False)
4.8/5
(32)
In a Case selection structure,the expression Case Is 10 To 5 would be an incorrectly formed case statement.
(True/False)
4.8/5
(33)
Write an If...Then...Else statement that assigns a discount of $5 when a customer provides a coupon during checkout.If the customer does not provide a coupon,then there is no discount.The clerk must select the Coupon Provided check box for the customer to receive the discount.Create your own variable names.
(Short Answer)
4.9/5
(40)
If the txtBalance control contains the value $52,what value will the Decimal.TryParse(txtBalance.Text,decBalance)method return?
(Multiple Choice)
4.8/5
(31)
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
-A group of ____ should be used on the interface for the user to select the customer's preference for washing or dry cleaning the clothes.
(Multiple Choice)
4.9/5
(25)
Define the term "algorithm." How is desk-checking used to verify algorithms?
(Essay)
4.7/5
(39)
Showing 41 - 58 of 58
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)