Exam 5: Decision Structures
Exam 1: Introduction to Visual Basic 2017 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 Structures111 Questions
Exam 6: Loop Structures112 Questions
Select questions type
Variables declared within a block of code can only be referenced within that block.
(True/False)
4.9/5
(40)
Every If statement block must be terminated by the ____ keyword.
(Multiple Choice)
4.8/5
(45)
The ____ of a variable is defined by where it is declared within a program.
(Multiple Choice)
4.9/5
(38)
Developers can code Visual Basic applications to make decisions based on the input of users or other conditions that occur.
(True/False)
4.8/5
(28)
To use multiple conditions in a single If...Then...Else statement, ____ conditions are required.
(Multiple Choice)
4.8/5
(40)
An End Case statement is used to terminate a Select Case structure.
(True/False)
4.9/5
(44)
The logical operator ____ reverses the logical value of a condition.
(Multiple Choice)
4.8/5
(33)
When the object indicated by a RadioButton is selected by the user, the ____ property changes from False to True.
(Multiple Choice)
4.7/5
(33)
If the condition tested in an If statement evaluates to ____________________, the statement(s) between the If and the End If keywords will be executed.
(Short Answer)
4.8/5
(30)
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
(38)
The business traveling rule, "If the flight costs less than $300.00 and the hotel is less than $120.00 per night" is an illustration of ____ conditions.
(Multiple Choice)
4.8/5
(33)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
Multiple conditions can be tested using this kind of statement
Responses:
RadioButton
Select Case
End If
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(32)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
Keyword that you must use in a Select Case statement that uses relational operators
Responses:
End If
Select Case
Is
Correct Answer:
Premises:
Responses:
(Matching)
4.7/5
(39)
Usually, during design time, you should set the Checked property for the most commonly selected RadioButton object to True to save the user from having to select the most common choice.
(True/False)
4.7/5
(32)
A RadioButton's Selected property will indicate if the radio button has been selected by the user. _________________________
(True/False)
4.8/5
(28)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
Function that returns a Boolean value
Responses:
If...Then...ElseIf
GroupBox
icons
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(27)
____________________ is the MsgBoxButtons argument that displays the Yes and No buttons.
(Short Answer)
4.8/5
(35)
In an If...Then...Else statement, if the condition is false, the statements between the Else and End If keywords will be executed.
(True/False)
4.9/5
(27)
Statements for a true condition and statements for a false condition can both be executed based on a single comparison.
(True/False)
4.8/5
(46)
Showing 61 - 80 of 111
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)