Exam 4: The Selection Structure

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

What is a selection structure? What is the difference between a single-alternative and dual-alternative selection structure?

(Essay)
4.7/5
(45)

Problems - Correcting Code Errors The following sample of code contains errors. Rewrite the incorrect statements to correct all errors. An application needs to display the message "Please add water" when the amount of water has fallen below the safe limit. Rewrite the following If statement to correct all errors: If intWaterLimit lblWarning = "Please add water" End If

(Essay)
4.8/5
(31)

List the three most commonly used icons for display in a message box.

(Essay)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(29)

The ____ operator is evaluated last in the following expression: 9 * 2 - 8 > 5 + 2 / 2.

(Multiple Choice)
4.9/5
(44)

Write an If statement that allows only numbers and a decimal place to be accepted.

(Essay)
4.9/5
(30)

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."

(Essay)
4.8/5
(38)

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

Which of the following statements assigns the contents of the txtGrade control, in uppercase, to the strGrade variable?

(Multiple Choice)
4.9/5
(25)

The diamond symbol is used in a flowchart for a calculation task.

(True/False)
4.9/5
(32)

Logical operators are sometimes referred to as ____ operators.

(Multiple Choice)
4.8/5
(36)

Which of the following conditions will evaluate to True when the intPackages variable contains the value 100?

(Multiple Choice)
4.9/5
(36)

If the intInventory variable contains the value 28, the condition If intInventory will evaluate to ____.

(Multiple Choice)
5.0/5
(36)

Comparison operators are also referred to as ____ operators.

(Multiple Choice)
5.0/5
(40)

You can include an identifying label on a group box by setting the group box's Identity property.

(True/False)
4.8/5
(24)

What is the value of the following expression: 9 * 2 - 8 > 5 + 2 / 2?

(Multiple Choice)
4.9/5
(39)

Gino's Subs & Pies wants an application that allows a user to enter a customer's order total and address. When a customer purchases $30 or more of food, Gino's offers free delivery. The delivery fee for all other orders is $10. The calculation should display the total amount the customer owes, including any delivery fee. Draw the flowchart for the solution to this problem.

(Essay)
4.9/5
(36)

In the MessageBox.Show( text , caption , buttons , icon [, defaultButton ]) method, which of the following arguments controls the words appearing in the message box?

(Multiple Choice)
4.7/5
(22)

In the MessageBox.Show( text , caption , buttons , icon [, defaultButton ]) method, which of the following arguments controls the symbol appearing in the message box?

(Multiple Choice)
4.8/5
(35)

The ____ operator is evaluated first in the following expression: 9 * 2 - 8 > 5 + 2 / 2.

(Multiple Choice)
4.8/5
(36)
Showing 21 - 40 of 59
close modal

Filters

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