Filters
Question type

Study Flashcards

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


A) ^
B) /
C) *
D) +

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

A

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

A) True
B) False

Correct Answer

verifed

verified

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


A) ^
B) <
C) >
D) AndAlso

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

The Backspace key is represented by the ____ constant.


A) ControlChars.Back
B) ControlChars.BackSpace
C) ControlChars.Backspace
D) ControlChars.Backspc

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

The button selected by the clerk will determine the next task performed by the computer.The application is using the ____ of the MessageBox.Show method.


A) Boolean value
B) return value
C) selection structure
D) function

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

B

If the intQuantity and decPrice variables contain the numbers 3 and 15.75,respectively,the condition If intQuantity > 0 AndAlso intQuantity < 10 OrElse decPrice > 20 will evaluate to ____.


A) True
B) False
C) Yes
D) No

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

A

The And operator always checks both conditions,while the AndAlso operator does not always evaluate the second condition.

A) True
B) False

Correct Answer

verifed

verified

A control's ____ event occurs each time the user presses a key while the control has the focus.


A) PressEnter
B) KeyEnter
C) KeyPress
D) FocusPress

E) None of the above
F) C) and D)

Correct Answer

verifed

verified

A programmer must phrase the condition of a selection structure so that it results in either a true or a false answer only.

A) True
B) False

Correct Answer

verifed

verified

To prevent a text box from accepting inappropriate characters,you first use the e parameter's ____ property to determine the key that the user pressed.


A) KeyStruck
B) KeyEnter
C) KeyChar
D) KeyPress

E) All of the above
F) None of the above

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

MessageBoxIcon.Excla...

View Answer

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

Correct Answer

verifed

verified

The expression 2 * 3 + 1 > 1 * 2 + 3 Or 7 + 2 < 4 + 1 evaluates to False.

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

A variable that has ____ scope can be used anywhere within the procedure.


A) block
B) statement
C) method
D) procedure

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

Write an If clause to determine whether the user pressed the Backspace key.

Correct Answer

verifed

verified

Showing 1 - 20 of 57

Related Exams

Show Answer