McGraw-Hill OnlineMcGraw-Hill Higher EducationLearning Center
Student Center | Instructor Center | Information Center | Home
Intro to VB.NET
Projects
Comprehensive Projects
Chapter Objectives
PowerPoint Presentations
Multiple Choice Quiz
True or False
Examples from the Text
Feedback
Help Center


Learning Programming Using Visual Basic.Net
Bill Burrows, University of Washington
Joe Lanford, University of Rochester

Specifying Alternative Courses of Action: Selection Statements

Multiple Choice Quiz



1

A(n) __________ could be defined as an expression which determines whether or not an appropriate action is executed based on the outcome of its evaluation.
A)Decision
B)Choice
C)Condition
D)Option
2

How many conditions are required to write an If... Then... Else statement?
A)0
B)1
C)2
D)3
3

How many conditions can an If...Then...Elseif... statement have?
A)1
B)2
C)3
D)None of the above
4

Suppose you are designing an application for admissions to a college or university, and you need to decide how to provide the user with a selection of racial backgrounds. Which control would be most appropriate, assuming no extra event handlers are written?
A)CheckBox Group
B)RadioButton Group
C)TextBox
D)Label
5

Which property can be read from both RadioButtons and CheckBoxes at run-time to determine which control is selected?
A)Checked
B)CheckState
C)Both A and B
D)None of the above
6

Visual Basic .NET's ______ ______ statement can handle conditions with multiple outcomes, as opposed to the If...Then...Else statement, which can trigger only two possible outcomes.
A)Select Case
B)If Then
C)Select Option
D)Branch If
7

If you were assigned to develop an online ordering system for cars, and you needed to develop a form in which users can select which options they would like to have included in their car, which control would be most appropriate to use?
A)RadioButton group
B)CheckBox Group
C)TextBox
D)Button
8

A(n) ______ ______ is similar to pseudocode in that they both describe the intended action of a section of code in plain language.
A)Process Description
B)Meta Statement
C)Flow Diagram
D)Idiot's Guide
9

Which control introduced in this chapter acts like a container, letting a developer specify groups of options for RadioButtons?
A)ButtonGroup
B)HashGroup
C)OptionGroup
D)GroupBox
10

A statement block can consist of how many lines?
A)0
B)2
C)An unlimited amount
D)At most 255




McGraw-Hill/Irwin