Exam 5: More on the Selection Structure

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

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

The secondary decision for assigning the fee for folded clothes is to determine ____.

(Multiple Choice)
4.7/5
(34)

When the programmer wants to allow the user to select any number of choices from a group of one or more independent and nonexclusive choices,the ____ control should be used.

(Multiple Choice)
4.9/5
(28)

In a Case selection structure,you use the ____ keyword when you know only one end of the range.

(Multiple Choice)
4.9/5
(36)

When a user selects a second CheckBox in a group,previously selected CheckBox items are deselected.

(True/False)
4.8/5
(28)

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

(Multiple Choice)
4.9/5
(23)

Colin is renting an automobile to take on vacation to the mountains.He would like to rent an SUV or a truck,but he would prefer an SUV for the covered storage.However,he does not know if there are any SUVs or trucks at the rental location where he lives.If there is not an SUV or a truck to rent,he will have to rent a car.He is going to call a rental agent and inquire about the available automobiles.Write an algorithm for this scenario.

(Essay)
4.7/5
(40)

An unnecessary selection structure within a nested selection structure will make the program inefficient.

(True/False)
4.7/5
(40)

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

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

When the Select Case statement includes a Case ____ clause,this clause must be the last clause in the statement.

(Multiple Choice)
4.9/5
(31)

The condition in a multiple-path selection structure is represented by a ____ in a flowchart.

(Multiple Choice)
4.9/5
(45)

When a check box is selected,its Checked property contains the ____.

(Multiple Choice)
4.9/5
(33)

When either a selection structure's true path or its false path contains another selection structure,the inner selection structure is referred to as a ____ selection structure.

(Multiple Choice)
4.8/5
(40)

Ocean Resorts,Inc.pays a commission to employees based on an employee's sales and the number of years the employee has been with the company.Employee sales is stored in the decSales variable,and the number of years employed is stored in the intYears variable.The application should calculate the commission for an employee.The commission is 6% for sales of at least $100,000.If an employee's sales total is less than $100,000,the employee will receive a 3% commission if he or she has been with the company for two years or more.Otherwise,the employee does not receive a commission.Assign the commission to the decCommission variable.Write an If...Then...Else statement for the nested selection structure.

(Essay)
4.8/5
(36)

The Select Case statement ends with the ____ clause.

(Multiple Choice)
4.9/5
(37)

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

You can hide a control on a form while an application is running by changing the Visible property from False to True.

(True/False)
4.8/5
(28)

You enter the label for a radio button using sentence capitalization in the radio button's ____ property.

(Multiple Choice)
4.9/5
(36)

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

(Not Answered)
This question doesn't have any answer yet
Ask our community
Showing 21 - 40 of 56
close modal

Filters

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