Exam 4: The Selection Structure

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

The expression 12 > 0 AndAlso 12

(True/False)
4.8/5
(36)

Consider the expression 3 * 2 ^ 2 15 - 3. Which operation is performed second?

(Multiple Choice)
4.8/5
(35)

The expression 2 * 3 + 1 > 1 * 2 + 3 Or 7 + 2

(True/False)
4.9/5
(36)

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)

The Backspace key is represented by the ____ constant.

(Multiple Choice)
4.8/5
(32)

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
close modal

Filters

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