Chapter 15 When Writing Clock Application

subject Type Homework Help
subject Pages 4
subject Words 663
subject Authors Diane Zak

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Chapter 15: I’m on the Inside; You’re on the Outside (Nested Loops)
TRUE/FALSE
1. Nested loops occurs when one loop is placed immediately after another loop.
2. Like selection structures, repetition structures can be nested.
3. When nesting loops, both repetition structures must be pretest loops.
4. A programmer determines whether a problem’s solution requires a nested loop by studying the
code.
5. A clock uses nested repetition structures to keep track of the time.
6. In the clock application, the entire nested loop must be contained within the outer loop in order to
work properly.
7. To display minute values from 0 through 9 use the following syntax: for intMinutes = 0 to 9.
8. A text box can only display a limited amount of information.
9. A label control can have a scroll bar.
10. For a text box to include scroll bars, its ScrollBars and Multiline properties must be set appropriately.
11. To include scroll bars on a text box, you need to change the ScrollBar property’s setting from None to
either Horizontal or Vertical.
page-pf2
12. The ScrollBars property indicates whether the text box has no scroll bars, a horizontal scroll bar, a
vertical scroll bar, or both horizontal and vertical scroll bars.
13. For a text box to contain scroll bars, its Multiline property must be set to True.
14. Users can edit the contents of a label control while the application is running.
15. You can prevent the user from editing the contents of a text box by setting the text box’s Editable
property to False.
MULTIPLE CHOICE
1. ____ means that you can place one repetition structure entirely within another repetition structure.
a.
Encasing
c.
Nesting
b.
Subordinating
d.
Folding
2. A programmer determines whether a problem’s solution requires a nested loop by studying the
problem ____.
a.
specification
c.
control
b.
syntax
d.
resource allocation
3. When writing a clock application, the minute hand on a clock is controlled by the ____ loop.
a.
subordinate
c.
control
b.
outer
d.
inner
4. When writing a clock application, the second hand on a clock is controlled by the ____ loop.
a.
subordinate
c.
control
b.
outer
d.
inner
5. In the Clock application, the Start button’s ____ event procedure contains the loops.
a.
Click
c.
Select
b.
Open
d.
Run
6. In the Clock application, you have a(n) ____ loop display the number of minutes.
a.
outer
c.
nested
b.
control
d.
master
page-pf3
7. In the Clock application, you have a(n) ____ loop display the number of seconds.
a.
outer
c.
nested
b.
control
d.
subordinate
8. In the Clock Solution, the ____ and Sleep methods are required so that you can view each of the
minute and second values in the interface.
a.
Show
c.
Display
b.
Renew
d.
Refresh
9. To display minutes values from 0 through 5 type the following: ____.
a.
For MinutesInt As Integer = 0 To 5
b.
For intgMinutes As Integer = 0 To 5
c.
For intMinutes As Integer = 0 To 5
d.
For Minutes As Integer = 0 To 5
10. To pause program execution for a half of a second, type ____.
a.
System.Threading.Sleep(500)
b.
System.Threading.Thread.Sleep(500)
c.
System.Threading.Sleep(1000)
d.
System.Threading.Thread.Sleep(1000)
11. A text box can have ____, which allow you to view any information not currently showing in the
control.
a.
scroll bars
c.
scroll handles
b.
view bars
d.
highlight bars
12. The ____ property indicates whether any scroll bars appear on the text box.
a.
Scroll
c.
ViewScroll
b.
ScrollBar
d.
ScrollBars
13. A text box’s ____ property specifies whether the text can span more than one line in the control.
a.
ScrollBars
c.
Multiline
b.
Manyline
d.
Span
14. For the ScrollBars property to take effect, the text box’s ____ property must be set to True.
a.
Scroll
c.
Manyline
b.
ScrollBars
d.
Multiline
page-pf4
15. You can prevent the user from editing the contents of a text box by setting the text box’s ____ property
to True.
a.
Read
c.
Editable
b.
ReadOnly
d.
Change

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.