Exam 5: Decision Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Each value in a Case statement is separated by a period.

(True/False)
4.9/5
(32)

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.8/5
(26)

The IsNumeric function will return a(n) ____ type value.

(Multiple Choice)
4.7/5
(31)

Of all the following objects provided by Visual Basic for Windows applications, the ____ object is used most often.

(Multiple Choice)
4.9/5
(44)

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.

(Essay)
4.9/5
(40)

You can create your own code snippets but they cannot be added to the library.

(True/False)
5.0/5
(36)

The default setting for the MessageBoxButtons argument of a message box will display only a(n) ____________________ button in the message box.

(Essay)
4.9/5
(35)

The logical operator ____ reverses the logical value of a condition.

(Multiple Choice)
5.0/5
(38)

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.7/5
(40)

When comparing two data values in Visual Basic, both values must be the same data type.

(True/False)
4.9/5
(42)

A RadioButton's Selected property will indicate if the radio button has been selected by the user. _________________________

(True/False)
4.8/5
(37)

A condition can be true and false at the same time. _________________________

(True/False)
4.9/5
(26)

MATCHING Identify the letter of the choice that best matches the phrase or definition. -Multiple conditions can be tested using this kind of statement

(Multiple Choice)
4.8/5
(34)

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.9/5
(37)

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.9/5
(30)

To create a compound condition in an If statement, a(n) ____ operator is required.

(Multiple Choice)
4.9/5
(34)

The logical operator ____________________ will return a value of true only if all conditions in a compound condition evaluate to true.

(Essay)
4.8/5
(40)

Use the ____ statement to execute one set of instructions if the condition is true, and another set of instructions if the condition is false.

(Multiple Choice)
4.8/5
(36)

In a Select Case structure, each ____________________ statement specifies a value for which the test expression is checked.

(Essay)
4.9/5
(45)

The ____ of a variable is defined by where it is declared within a program.

(Multiple Choice)
4.7/5
(23)
Showing 81 - 100 of 112
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)