Exam 4: The Selection Structure

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

Consider the expression 3 * 2 ^ 2 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3.Which operation is performed last?

(Multiple Choice)
4.8/5
(25)

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.

(Short Answer)
4.8/5
(37)

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

(Essay)
4.8/5
(32)

The ____ operator expresses "not equal to."

(Multiple Choice)
5.0/5
(35)

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

(Short Answer)
4.8/5
(43)

When coding a selection instruction in Visual Basic,the code that follows the Else statement includes those instructions that will be executed when the condition is true.

(True/False)
5.0/5
(36)

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

With the KeyPress event,use the e parameter's ____ property to cancel the key if it is an inappropriate one.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.7/5
(31)

The Backspace key is represented by the ____ constant.

(Multiple Choice)
4.9/5
(43)

Your professor wants an application that allows a student to enter two grades and calculate the average of those grades.The application should display the message "Pass" if the average of the grades is 70 or greater.The application should display the message "Fail if the average of the grades is less than 70.Write the pseudocode for the solution to this problem.

(Essay)
4.9/5
(35)

Before using a string in a comparison,you can use either the ToUpper method or the ToLower method to convert the string to uppercase or lowercase,respectively,and then use the converted string in the comparison.

(True/False)
4.9/5
(44)

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

(Multiple Choice)
4.9/5
(32)

Complete the chart shown below. Original Expression 3>7 OrElse 15<4*4 4*4 is evaluated first 3>7 OrElse 15<16 ----- is evaluated next ------ ----- is evaluated next ------ ----- is evaluated last ------

(Essay)
4.8/5
(32)

Consider the expression 3 * 2 ^ 2 < 16 + 5 AndAlso 100 / 10 * 2 > 15 - 3.Which operation is performed first?

(Multiple Choice)
4.8/5
(29)

Which of the following has the most limited scope?

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(28)

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

(Short Answer)
4.8/5
(36)

If dblMiles >= 500 Then dblMiles = dblMiles * 0.45 Else DblMiles = dblMiles * 0.25 End If The dblMiles variable contains the number 575 before the code above is processed.What value will be in the variable after the code is processed?

(Multiple Choice)
4.9/5
(39)

The Not operator would make a True statement False,but would not make a False statement True.

(True/False)
4.8/5
(39)
Showing 21 - 40 of 60
close modal

Filters

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