Filters
Question type

Study Flashcards

When a check box is selected, its Checked property contains the ____.


A) Boolean value True
B) Boolean value False
C) numeric value 0
D) numeric value 1

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

When the programmer wants to allow the user to select any number of choices from a group of one or more independent and nonexclusive choices, the ____ control should be used.


A) TextBox
B) CheckBox
C) RadioButton
D) Label

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

BounceIt Gymnasium needs an application to calculate the fee for hosting a party. The fee is based on the number of guests. The fee structure is provided below. Guests Fee per Guest 1 - 10 $5 11 - 20 $4 More than 20 $2 Write a multiple-alternative selection structure that assigns the appropriate fee to intFee based on the number of guests stored in the intNumGuests variable. Use the Select Case statement.

Correct Answer

verifed

verified

Select Case intNumGuests
Case...

View Answer

When the programmer wants to limit the user to one choice during input of mutually exclusive options, the ____ control should be used.


A) TextBox
B) CheckBox
C) RadioButton
D) Label

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

In a nested selection structure, the ____ decision is always made by the inner selection structure.


A) primary
B) secondary
C) binary
D) linear

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

Case-Based Critical Thinking Questions Case 1 - Horizon Cleaners Horizon Cleaners is an organic dry cleaner for clothing. The price for dry cleaning a shirt is $3.00, the price for pants is $3.50, and the price for dresses is $4.00. All clothes can be either washed or dry cleaned. Dry cleaned clothes can be hung or folded, and folded items cost an additional $0.50 per item. A group of ____ should be used on the interface for the user to select the customer's preference for washing or dry cleaning the clothes.


A) radio buttons
B) check boxes
C) text boxes
D) labels

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

The set of step-by-step instructions for accomplishing a task is called a(n) ____.


A) flow
B) desk-checking
C) alpha checking
D) algorithm

E) All of the above
F) None of the above

Correct Answer

verifed

verified

An unnecessary selection structure within a nested selection structure will make the program inefficient.

A) True
B) False

Correct Answer

verifed

verified

In a Case selection structure, the expression Case Is 10 To 5 would be an incorrectly formed case statement.

A) True
B) False

Correct Answer

verifed

verified

The default radio button is designated by setting the Checked property to a value of True.

A) True
B) False

Correct Answer

verifed

verified

In a Case selection structure, you use the ____ keyword when you know only one end of the range.


A) From
B) Is
C) To
D) Range

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

  If the intQuantity variable contains the number 20 and the customer is a member, what value will be in the decTotal variable after the code is processed? A)  187.50 B)  250 C)  280 D)  300 If the intQuantity variable contains the number 20 and the customer is a member, what value will be in the decTotal variable after the code is processed?


A) 187.50
B) 250
C) 280
D) 300

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

Write a multiple-alternative selection structure that displays the name of an instructor based on the class section entered by the user. The class section is stored (as uppercase) in the strSection variable. Display "Edwards" when the class section is A. Display "Hughes" when the class section is B. Display "Meadows" when the class section is C. For all other sections, display "To Be Announced". Display the message in the lblMessage control. Use the Select Case statement.

Correct Answer

verifed

verified

Select Case strSection
Case "...

View Answer

  If the intQuantity variable contains the number 10 and the customer is a member, what value will be in the decTotal variable after the code is processed? A)  0 B)  125 C)  140 D)  150 If the intQuantity variable contains the number 10 and the customer is a member, what value will be in the decTotal variable after the code is processed?


A) 0
B) 125
C) 140
D) 150

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

In a nested selection structure, the ____ decision is always made by the outer selection structure.


A) primary
B) secondary
C) binary
D) linear

E) A) and B)
F) A) and D)

Correct Answer

verifed

verified

Desk-checking is also called ____.


A) prototyping
B) hand-tracing
C) alpha checking
D) beta checking

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

Define the term "algorithm." How is desk-checking used to verify algorithms?

Correct Answer

verifed

verified

An algorithm is the set of step-by-step ...

View Answer

What is a nested selection structure? How do primary and secondary decisions relate to a nested selection structure?

Correct Answer

verifed

verified

A nested selection structure is containe...

View Answer

Logic errors in selection structures are a result of one of four common mistakes. List the four common logic errors made when writing selection structures.

Correct Answer

verifed

verified

1. Using a compound condition rather tha...

View Answer

In a Case selection structure, you use the ____ keyword when you know both the upper and lower bounds of the range.


A) From
B) Is
C) To
D) Range

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

Showing 41 - 60 of 60

Related Exams

Show Answer