Exam 5: Decision Structures
Exam 1: Introduction to Visual Basic 2012 Programming112 Questions
Exam 2: Program and Graphical User Interface Design112 Questions
Exam 3: Program Design and Coding112 Questions
Exam 4: Variables and Arithmetic Operations112 Questions
Exam 5: Decision Structures112 Questions
Exam 6: Loop Structures112 Questions
Exam 7: Using Procedures and Exception Handling112 Questions
Exam 8: Using Arrays and File Handling112 Questions
Exam 9: Creating Web Applications112 Questions
Exam 10: Incorporating Databases with ADO.NET112 Questions
Exam 11: Multiple Classes and Inheritance112 Questions
Exam 12: Windows Store Apps112 Questions
Select questions type
When you want to move a GroupBox object,you must first move its contained objects.
(True/False)
4.9/5
(36)
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
-Keyword automatically added by Visual Studio to a Select Case statement that uses relational operators
(Multiple Choice)
4.9/5
(32)
A variable defined between the Then keyword and the Else keyword in an If...Then...Else structure can be referenced from within the Else section of the structure.
(True/False)
4.8/5
(33)
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
-When this kind of object is contained in a group box,the user can select only one of the radio buttons
(Multiple Choice)
5.0/5
(23)
An If...Then statement can be used to compare an arithmetic expression to a(n)____.
(Multiple Choice)
5.0/5
(40)
After the Not operator,the ____ logical operator has the next precedence.
(Multiple Choice)
4.9/5
(27)
A Case statement in a Select Case structure can test for a range of values.
(True/False)
4.7/5
(26)
____ is the default setting for the buttons that will be displayed in a message box like the one in the accompanying figure.
(Multiple Choice)
4.9/5
(36)
Which of the following CANNOT be contained in a code snippet?
(Multiple Choice)
4.8/5
(36)
Case 5-2
Eric had a small reference card that he keeps handy to remind him which MsgBoxButton arguments values translate to which buttons in the dialog box, but then he lost the card. He calls over to you for help in reminding him what values correspond to what.
-Now,Eric needs help in remembering which of the following options corresponds to a dialog box that displays an information icon and offers the Retry and Cancel buttons.Which of the following is the right answer?
(Multiple Choice)
4.8/5
(30)
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
-An easier and clearer alternative to using a series of If…Then…ElseIf statements
(Multiple Choice)
4.9/5
(42)
____________________ is the MsgBoxButtons argument that,after an error occurs,allows the user to choose Retry or Cancel.
(Short Answer)
4.8/5
(33)
Developers can code Visual Basic applications to make decisions based on the input of users or other conditions that occur.
(True/False)
4.9/5
(35)
Case 5-1
You have written the code below and you want to step through it with some actual values to make sure that it is working in practice the way you expect it to work.
If decGPA > 3.5 Then
If intSatScore > 1000 Then
lblAdmissionsStatus.Text = "You have earned admission"
Else
lblAdmissionsStatus.Text = "Retake the SAT exam"
EndIf
Else
If intSatScore > 1200 Then
lblAdmissionsStatus.Text = "You have earned probationary admission"
Else
lblAdmissionStatus.Text = "You have been denied admission"
End If
End If
-Assuming that an applicant has a GPA of 3.5,what is the value of lblAdmissionsStatus.Text if the applicant's SAT score is 1200?
(Multiple Choice)
4.8/5
(41)
Showing 21 - 40 of 112
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)