Exam 5: Decision Structures
Exam 1: Introduction to Visual Basic 2017 Programming103 Questions
Exam 2: Program and Graphical User Interface Design103 Questions
Exam 3: Program Design and Coding103 Questions
Exam 4: Variables and Arithmetic Operations103 Questions
Exam 5: Decision Structures103 Questions
Exam 6: Loop Structures103 Questions
Exam 7: Using Procedures and Exception Handling103 Questions
Exam 8: Using Arrays and File Handling103 Questions
Exam 9: Creating Web Applications103 Questions
Exam 10: Incorporating Databases With Adonet103 Questions
Exam 11: Multiple Classes and Inheritance103 Questions
Select questions type
The ____________________ keyword terminates the If...Then block of code.
(Short Answer)
4.9/5
(33)
If a program attempts to process invalid data, unexpected errors can occur.
(True/False)
4.9/5
(32)
With the logical operator ____________________, as soon as a condition is found to be true, no further conditions are tested and the compound condition is true.
(Short Answer)
4.9/5
(40)
In adding a code snippet, if you right-click outside the desired location for your code, the shortcut menu might list choices that are customized to that area of code and not include the code snippet for which you were searching.
(True/False)
4.9/5
(32)
Every If statement block must be terminated by the ____ keyword.
(Multiple Choice)
4.8/5
(33)
To create a compound condition in an If statement, a(n) ____ operator is required.
(Multiple Choice)
4.8/5
(36)
If data analyzed by the IsNumeric function cannot be converted to a numeric data type, the function will return a value of ____.
(Multiple Choice)
4.8/5
(37)
Case 5-2 Eric used to have a small reference card that he kept 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. Eric wants your help in remembering which of the following options corresponds to a dialog box that alerts the user to an error and offers the OK and Cancel buttons. What do you tell him?
(Multiple Choice)
4.8/5
(33)
When using an If...Then...ElseIf statement, a trailing ____________________ statement can be placed at the end to handle a condition that does not meet any of the conditions tested.
(Short Answer)
4.8/5
(38)
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.7/5
(36)
An End Case statement is used to terminate a Select Case structure.
(True/False)
4.8/5
(28)
When you want to move a GroupBox object, you must first move its contained objects.
(True/False)
5.0/5
(40)
A ____ structure is used to deal with different conditions that occur based on values entered into an application.
(Multiple Choice)
4.9/5
(35)
The ____________________ function can be used to determine if an input value can be converted to a numeric value.
(Short Answer)
4.8/5
(34)
A message box that communicates some kind of message to a user, such as an error message, is also known as a(n) ____ box.
(Multiple Choice)
4.9/5
(37)
A Case statement in a Select Case structure can test for a range of values.
(True/False)
4.8/5
(37)
The Panel, GroupBox, and TabControl objects are examples of ____ objects.
(Multiple Choice)
4.9/5
(42)
Showing 61 - 80 of 103
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)