Exam 5: Decision Structures

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

The ____ is a relational operator.

(Multiple Choice)
4.8/5
(33)

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

(True/False)
4.8/5
(40)

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)

A Case Else statement is required in a Select Case structure.

(True/False)
4.9/5
(29)

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 Panel object can have a caption,but a GroupBox object cannot.

(True/False)
4.8/5
(34)

What is the value of the MsgBoxStyle.OKOnly?

(Multiple Choice)
4.9/5
(39)

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)

Discuss how to select which decision structure to use.

(Essay)
4.9/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
(41)
Showing 21 - 40 of 112
close modal

Filters

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