Deck 15: Im on the Inside; Youre on the Outside Nested Loops
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 15: Im on the Inside; Youre on the Outside Nested Loops
1
A clock uses nested repetition structures to keep track of the time.
True
2
When nesting loops, both repetition structures must be pretest loops.
False
3
When writing a clock application, the second hand on a clock is controlled by the ____ loop.
A) subordinate
C) control
B) outer
D) inner
A) subordinate
C) control
B) outer
D) inner
D
4
In the Clock application, the Start button's ____ event procedure contains the loops.
A) Click
C) Select
B) Open
D) Run
A) Click
C) Select
B) Open
D) Run
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
To include scroll bars on a text box, you need to change the ScrollBar property's setting from None to either Horizontal or Vertical.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
You can prevent the user from editing the contents of a text box by setting the text box's ReadOnly property to True.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
For a text box to contain scroll bars, its Multiline property must be set to True.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
____ means that you can place one repetition structure within another repetition structure.
A) Encasing
C) Nesting
B) Subordinating
D) Folding
A) Encasing
C) Nesting
B) Subordinating
D) Folding
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
To display minute values from 0 through 9 use the following syntax: for intMinutes = 0 to 9.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Users can only edit the contents of a label control while the application is running.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
A text box can only display a limited amount of information.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
In the clock application, the entire nested loop must be contained within the outer loop in order to work properly.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
In the Clock application, you have a(n) ____ loop display the number of seconds.
A) outer
C) nested
B) control
D) subordinate
A) outer
C) nested
B) control
D) subordinate
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Like selection structures, repetition structures can be nested.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
For a text box to include scroll bars, its ScrollBars and Multiline properties must be set appropriately.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
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
A) specification
C) control
B) syntax
D) resource allocation
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
When writing a clock application, the minute hand on a clock is controlled by the ____ loop.
A) subordinate
C) control
B) outer
D) inner
A) subordinate
C) control
B) outer
D) inner
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
In the Clock application, you have a(n) ____ loop display the number of minutes.
A) outer
C) nested
B) control
D) master
A) outer
C) nested
B) control
D) master
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
A label control can have a scroll bar.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
To display hour values from 0 through 3 type the following: ____.
A) For HoursInt As Integer = 0 To 3
B) For intgHours As Integer = 0 To 3
C) For intHours As Integer = 0 To 3
D) For Hours As Integer = 0 To 3
A) For HoursInt As Integer = 0 To 3
B) For intgHours As Integer = 0 To 3
C) For intHours As Integer = 0 To 3
D) For Hours As Integer = 0 To 3
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
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)
A) System.Threading.Sleep(500)
B) System.Threading.Thread.Sleep(500)
C) System.Threading.Sleep(1000)
D) System.Threading.Thread.Sleep(1000)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
The ____ property indicates whether any scroll bars appear on the text box.
A) Scroll
C) ViewScroll
B) ScrollBar
D) ScrollBars
A) Scroll
C) ViewScroll
B) ScrollBar
D) ScrollBars
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
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
A) scroll bars
C) scroll handles
B) view bars
D) highlight bars
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
To refresh the interface, type ____.
A) System.Refresh()
C) Item.Refresh()
B) Refresh()
D) Me.Refresh()
A) System.Refresh()
C) Item.Refresh()
B) Refresh()
D) Me.Refresh()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
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
A) ScrollBars
C) Multiline
B) Manyline
D) Span
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck