Exam 5: More on the Selection Structure

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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.

Free
(Essay)
4.8/5
(32)
Correct Answer:
Verified

In a nested selection structure,the ____ decision is always made by the outer selection structure.

Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
Verified

A

In a Case selection structure,you use the ____ keyword when you know both the upper and lower bounds of the range.

Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
Verified

C

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)

Which of the following conditions will evaluate to True when the chkValidID check box is not selected? Which of the following conditions will evaluate to True when the chkValidID check box is not selected?

(Not Answered)
This question doesn't have any answer yet
Ask our community

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.9/5
(42)

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.8/5
(32)

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
(39)

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: 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:

(Essay)
4.8/5
(33)

You create the Random object by declaring it in a ____ statement.

(Multiple Choice)
4.7/5
(34)

Write a multiple-alternative selection structure that determines the shipping charge based on the total order amount entered by the user.The shipping charge is stored in the intShipCharge variable.The total order amount is stored in the decTotalOrder variable.The shipping charge is $9 for all orders under $25.The shipping charge is $8 for all orders of $25 to $50.The shipping charge is $7 for all orders where the total order amount is greater than $50.If the user does not enter a valid total order amount (less than 0),display "Please enter a valid amount." in the lblMessage control.Use the Select Case statement.

(Essay)
4.7/5
(37)

The ____ event occurs each time you select or deselect a check box or radio button.

(Multiple Choice)
4.8/5
(42)

After creating a Random object,you can generate random integers using the ____ method.

(Multiple Choice)
4.8/5
(25)

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.

(Essay)
4.9/5
(43)

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.

(Essay)
4.8/5
(22)

BounceIt Gymnasium needs an application to calculate the fee for hosting a party.The fee is based on the number of guests.The fee structure is provided below. BounceIt Gymnasium needs an application to calculate the fee for hosting a party.The fee is based on the number of guests.The fee structure is provided below.    Write a multiple-alternative selection structure that assigns the appropriate fee to intFee based on the number of guests stored in the intNumGuests variable.Use the Select Case statement. Write a multiple-alternative selection structure that assigns the appropriate fee to intFee based on the number of guests stored in the intNumGuests variable.Use the Select Case statement.

(Essay)
4.8/5
(24)

An online bookseller uses the following schedule to determine the shipping costs: 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? What is a correct case expression for a category II book order based upon Books Ordered?

(Multiple Choice)
4.8/5
(38)

A selection structure that can choose from several alternatives is called a(n)____ selection structure.

(Multiple Choice)
4.8/5
(27)

In a Case selection structure,the expression Case Is 10 To 5 would be an incorrectly formed case statement.

(True/False)
4.8/5
(32)

Define the term "algorithm." How is desk-checking used to verify algorithms?

(Essay)
4.7/5
(30)
Showing 1 - 20 of 56
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)