Exam 6: Loop Structures

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

It is best to indent the body of the loop to identify clearly the code that is being repeated.

(True/False)
4.7/5
(41)

You must test the data a user enters to ensure it is accurate and that its use in other programming statements will not cause a program exception.

(True/False)
4.8/5
(43)

A loop that never ends is called a(n) ____ loop.

(Multiple Choice)
4.9/5
(38)

As shown in the accompanying figure, Visual Basic 2017 contains a(n) ____ Tag that allows you to create a full standard menu bar commonly provided in Windows programs.

(Multiple Choice)
4.8/5
(26)

Using a preset value for the variable tested in a loop condition is a process called ____ the loop.

(Multiple Choice)
4.8/5
(41)

A loop's ____ variable is a numeric variable that keeps track of the number of iterations the loop completes.

(Multiple Choice)
4.8/5
(35)
Identify the letter of the choice that best matches the phrase or definition
Loop that should be used when code is to be executed a known, exact number of times
infinite
Used to publish a program using ClickOnce Deployment
InputBox
A loop that never ends
wizard
Correct Answer:
Verified
Premises:
Responses:
Loop that should be used when code is to be executed a known, exact number of times
infinite
Used to publish a program using ClickOnce Deployment
InputBox
A loop that never ends
wizard
Items added to this kind of object during design phase are available for selection by the user during program execution
accumulator
Objects that can be assigned a default value representing the most likely user input
bottom-controlled
The process of repeating a set of instructions while a condition is true or until a condition is true
ListBox
A variable that contains an accumulated value such as a running total
breakpoint
A loop that is always executed at least once
Do Until
Identified in the code editor with a bullet to the left of the line number and highlighting of the code on that line
For...Next
Loop in which the body of the loop is executed until the condition becomes true
looping
(Matching)
4.8/5
(31)

A(n) ____ is a single repetition of a loop.

(Multiple Choice)
4.8/5
(39)

A ____ loop is best used when the specific number of iterations required is known.

(Multiple Choice)
4.8/5
(37)

The BackgroundImageLayout property can be changed to Center, Stretch, or Zoom.

(True/False)
4.8/5
(34)

A(n) ____ is a group of commands, or items, presented in a list.

(Multiple Choice)
4.9/5
(38)

You can use the InputBox function instead of a TextBox object to obtain input.

(True/False)
4.8/5
(42)

A(n) ____________________ value is the value in a For...Next loop that is added to, or subtracted from, the beginning value on each iteration of the loop.

(Short Answer)
4.9/5
(35)

The compound operator ____ adds the value of the right operand to the value of the left operand and stores the result in the left operand's variable.

(Multiple Choice)
4.9/5
(31)

To remove the picture in the background of a form, in the Properties window press and hold or right-click the ellipsis button of the BackgroundImage property and select Reset.

(True/False)
4.8/5
(46)

Writing an event handler for a menu item is the same as writing an event handler for a button tap or click.

(True/False)
4.9/5
(47)

Case 6-2 Robin thinks that she has a good handle on the use of compound operators but she wants to do a couple of sample problems just to make certain. In both of the problems below, Robin assumes that intResult = 24. When Robin correctly calculates intResult ^= 2, what value does she get?

(Multiple Choice)
4.9/5
(35)

How does a Do loop work? What is the difference between a Do While loop and a Do Until loop? A top-controlled loop and a bottom-controlled loop?

(Essay)
4.8/5
(33)

Loops cannot be nested.

(True/False)
4.8/5
(40)

A ____-controlled loop tests the condition before the loop body is executed.

(Multiple Choice)
4.8/5
(46)
Showing 81 - 100 of 103
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)