You are on page 1of 3

Test Bank for Simply C#: An Application-Driven Tutorial Approach : 0131426419

Test Bank for Simply C#: An Application-Driven


Tutorial Approach : 0131426419

To download the complete and accurate content document, go to:


https://testbankbell.com/download/test-bank-for-simply-c-an-application-driven-tutorial
-approach-0131426419/

Visit TestBankBell.com to get complete for all chapters


10
Class Average
Application
Introducing the do while Repetition
Statement
Test Bank for Simply C#: An Application-Driven Tutorial Approach : 0131426419

10.1 Test-Driving the Class Average Application

10.2 do while Repetition Statement


1. The do while statement differs from a while statement in that .
a) a do while statement cannot enter an
infinite loop
b) a do while statement can use a counter
but a while cannot
c) the body of a while statement will
execute at least once
d) the body of a do while statement will
execute at least once
e) All of the above.

2. Assume that intCounter is an int variable initialized to 5. Which of the following loop continuation conditions can be used in a
do while statement to print the values 5 through 15, inclusive?
a) intCounter > 5 b) intCounter < 15
c) intCounter <= 15 d) intCounter < 16
e) Both c and d.
Answers: 1) d. 2) e.

10.3 Creating the Class Average Application


1. The property of a ListBox’s Items property is used to access values in the ListBox.
a) Value b) Item
c) List d) Row
e) None of the above.
2. When a Button is disabled, .
a) its text displays in a gray color b) it is no longer visible
c) its Enabled property is set to True
d) its Click event is not raised when the
Button is clicked
e) Both a and d.
Answers: 1) b. 2) e.

10.4 Wrap-Up

Visit TestBankBell.com to get complete for all chapters

You might also like