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
In a Select Case structure,each ____________________ statement specifies a value for which the test expression is checked.
(Short Answer)
4.8/5
(29)
An expression using the logical operator ____ will evaluate to true only when both of the conditions are true.
(Multiple Choice)
4.7/5
(31)
The default setting for the MessageBoxButtons argument of a message box will display only a(n)____________________ button in the message box.
(Short Answer)
4.9/5
(32)
To test a second condition only after the result of the first condition is known,____________________ If statements can be used.
(Short Answer)
4.9/5
(37)
In string comparison,a number is more than an uppercase letter._________________________
(True/False)
4.9/5
(40)
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
-Function that returns a Boolean value
(Multiple Choice)
4.9/5
(39)
The Panel,GroupBox,and TabControl objects are examples of ____ objects.
(Multiple Choice)
4.8/5
(33)
In a Select Case statement,the keyword Is must be used when testing with relational operators.
(True/False)
4.8/5
(36)
The ampersand (&)symbol is the operator used to ____ two strings together.
(Multiple Choice)
4.8/5
(32)
The process of validating input data is fundamental to programming when using a graphical user interface.
(True/False)
4.8/5
(35)
In the era of IntelliSense,developers need no longer anticipate that users will enter invalid data.
(True/False)
4.8/5
(32)
An If...Then statement can be used to compare two string values._________________________
(True/False)
4.9/5
(28)
Variables declared within a block of code can only be referenced within that block.
(True/False)
4.8/5
(25)
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.55,what is the value of lblAdmissionsStatus.Text if the applicant's SAT score is 1000?
(Multiple Choice)
4.9/5
(35)
The plus sign is the operator for concatenation._________________________
(True/False)
4.7/5
(26)
Visual Basic provides six different logical operators.Briefly describe the function of each.
(Essay)
4.9/5
(29)
When using an If...Then...Else statement,if the condition evaluates to false,the statement(s)between the _______________ keyword and the End If keyword will be executed.
(Short Answer)
4.9/5
(35)
The ____________________ procedure found in the MessageBox class is used to display a message box,like the one in the accompanying figure.
(Short Answer)
5.0/5
(32)
It is important to ____ the line in the code editing window in the exact location where you want to insert a code snippet to produce the shortcut menu with the Insert Snippet command.
(Multiple Choice)
4.8/5
(29)
Showing 41 - 60 of 112
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)