Exam 4: The Selection Structure
Exam 1: An Introduction to Visual Basic 201544 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure60 Questions
Exam 5: More on the Selection Structure58 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and SQL60 Questions
Select questions type
You use the ____ method to select all of the text contained in a text box.
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
B
The ____ operator is evaluated last in the following expression: 9 * 2 - 8 > 5 + 2 / 2.
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
C
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?
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
B
Write a statement that changes the contents of the txtStatus control's text property to uppercase and stores it in the strStatus variable.
(Short Answer)
4.7/5
(32)
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.
(Multiple Choice)
4.9/5
(36)
Write an If statement that allows only numbers and a decimal place to be accepted.
(Short Answer)
4.7/5
(33)
You can use a(n)____ to visually separate related controls from other controls on the form.
(Multiple Choice)
4.9/5
(36)
What is the value of the following expression: 9 * 2 - 8 > 5 + 2 / 2?
(Multiple Choice)
4.9/5
(33)
A variable that has ____ scope can be used anywhere within the procedure.
(Multiple Choice)
4.9/5
(34)
Logical operators are sometimes referred to as ____ operators.
(Multiple Choice)
4.8/5
(27)
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
(29)
Write an If clause that will determine if the strColor variable contains either the string "red" or the string "blue".
(Short Answer)
4.8/5
(27)
Write an If clause to determine whether the user pressed the Backspace key.
(Short Answer)
4.7/5
(43)
The And operator always checks both conditions,while the AndAlso operator does not always evaluate the second condition.
(True/False)
4.7/5
(37)
In the MessageBox.Show (text,caption,buttons,icon[,defaultButton]) method,which of the following arguments controls the words appearing on the message box title bar?
(Multiple Choice)
4.8/5
(31)
Comparison operators are also referred to as ____ operators.
(Multiple Choice)
4.7/5
(32)
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.9/5
(36)
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
(37)
The ____ method displays a message box that contains text,one or more buttons,and an icon.
(Multiple Choice)
4.9/5
(33)
Showing 1 - 20 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)