Chapter 6: Loop Structures
MULTIPLE RESPONSE
Modified Multiple Choice
a. |
Iteration |
c. |
Looping |
b. |
Concatenation |
d. |
Documenting |
ANS: A, C PTS: 1 REF: 378
a. |
radio button |
c. |
menu item |
b. |
combo box |
d. |
text box |
ANS: B, C, D PTS: 1 REF: 383
a. |
add |
c. |
compare |
b. |
multiply |
d. |
divide |
ANS: A, C, D PTS: 1 REF: 396
a. |
beginning |
c. |
ending |
b. |
step |
d. |
range |
ANS: A, B, C PTS: 1 REF: 404
a. |
floppy disk |
c. |
Web server |
b. |
network drive |
d. |
hard drive |
ANS: B, C, D PTS: 1 REF: 426
MODIFIED TRUE/FALSE
ANS: F, ampersand
PTS: 1 REF: 383
ANS: F, are not
PTS: 1 REF: 385
ANS: T PTS: 1 REF: 385
ANS: T PTS: 1 REF: 386
ANS: F, SelectedItem
PTS: 1 REF: 395
MULTIPLE CHOICE
a. |
action list |
c. |
menu |
b. |
input box |
d. |
status bar |
ANS: C PTS: 1 REF: 380
a. |
menu |
c. |
mst |
b. |
mns |
d. |
mnu |
ANS: D PTS: 1 REF: 382
a. |
ampersand (&) |
c. |
back slash (\) |
b. |
forward slash (/) |
d. |
underscore (_) |
ANS: A PTS: 1 REF: 383
a. |
ALT |
c. |
CTRL |
b. |
SHIFT |
d. |
TAB |
ANS: A PTS: 1 REF: 383
a. |
hot |
c. |
legend |
b. |
spot |
d. |
index |
ANS: A PTS: 1 REF: 383
a. |
Menu |
c. |
Legend |
b. |
Action |
d. |
Glossary |
ANS: B PTS: 1 REF: 386
a. |
baseline |
c. |
indexed |
b. |
smart |
d. |
object-oriented |
ANS: B PTS: 1 REF: 386
a. |
InputArea |
c. |
MessageBox |
b. |
InputBox |
d. |
UserEntry |
ANS: B PTS: 1 REF: 387
a. |
TextBox |
c. |
ListBox |
b. |
RadioButton |
d. |
CheckBox |
ANS: C PTS: 1 REF: 390
a. |
lstDirections.Add(“East”) |
c. |
lstDirections.AddValue(“East”) |
b. |
lstDirections.Items.Add(“East”) |
d. |
lstDirections.Items.AddValue(“East”) |
ANS: B PTS: 1 REF: 391
a. |
Clear |
c. |
Empty |
b. |
Items.Clear |
d. |
Items.Empty |
ANS: A PTS: 1 REF: 392
a. |
Item |
c. |
Selected |
b. |
ItemSelected |
d. |
SelectedItem |
ANS: D PTS: 1 REF: 395
a. |
catalog |
c. |
register |
b. |
glossary |
d. |
accumulator |
ANS: D PTS: 1 REF: 396
a. |
counter |
c. |
glossary |
b. |
accumulator |
d. |
register |
ANS: A PTS: 1 REF: 396
a. |
logical |
c. |
compressed |
b. |
rational |
d. |
compound |
ANS: D PTS: 1 REF: 396
a. |
++ |
c. |
=+ |
b. |
+= |
d. |
== |
ANS: B PTS: 1 REF: 397
a. |
&= |
c. |
&& |
b. |
=& |
d. |
== |
ANS: A PTS: 1 REF: 397
a. |
rotation |
c. |
revolution |
b. |
iteration |
d. |
accumulation |
ANS: B PTS: 1 REF: 399
a. |
Do…While |
c. |
For...Next |
b. |
Do…Until |
d. |
For…Until |
ANS: C PTS: 1 REF: 399
a. |
compound |
c. |
matrix |
b. |
accumulated |
d. |
control |
ANS: D PTS: 1 REF: 399
a. |
keyword Next |
c. |
keyword To |
b. |
keyword Step |
d. |
control variable |
ANS: D PTS: 1 REF: 399
a. |
3 |
c. |
9 |
b. |
8 |
d. |
25 |
ANS: C PTS: 1 REF: 400
For intCount = 10 To 16 Step 2
‘Body of Loop
Next
a. |
3 |
c. |
6 |
b. |
4 |
d. |
7 |
ANS: B PTS: 1 REF: 400
For intCount = 10 To 1 Step -2
‘Body of loop
Next
a. |
4 |
c. |
9 |
b. |
5 |
d. |
10 |
ANS: B PTS: 1 REF: 401
a. |
Loop While |
c. |
Loop Until |
b. |
Do While |
d. |
Do Until |
ANS: B PTS: 1 REF: 406
a. |
bottom |
c. |
top |
b. |
key |
d. |
function |
ANS: C PTS: 1 REF: 406
a. |
bottom |
c. |
top |
b. |
function |
d. |
key |
ANS: A PTS: 1 REF: 406
a. |
Loop While |
c. |
Loop Until |
b. |
Do While |
d. |
Do Until |
ANS: A PTS: 1 REF: 409
a. |
Loop While |
c. |
Loop Until |
b. |
Do While |
d. |
Do Until |
ANS: D PTS: 1 REF: 410
a. |
Loop While |
c. |
Until |
b. |
Do While |
d. |
Loop Until |
ANS: D PTS: 1 REF: 412
a. |
breakaway |
c. |
runaway |
b. |
infinite |
d. |
unstoppable |
ANS: B PTS: 1 REF: 412
a. |
iterating |
c. |
presetting |
b. |
priming |
d. |
rebanding |
ANS: B PTS: 1 REF: 413
a. |
IsInteger |
c. |
IsNumeric |
b. |
IsNumber |
d. |
IsNonAlpha |
ANS: C PTS: 1 REF: 414
For intOuterCount = 1 to 5
For intInnerCount = 1 to 4
intTotalCount +=1
Next
Next
a. |
4 |
c. |
9 |
b. |
5 |
d. |
20 |
ANS: D PTS: 1 REF: 416
a. |
DataTags |
c. |
DebugTags |
b. |
DataTips |
d. |
DebugTips |
ANS: B PTS: 1 REF: 417
a. |
breakpoints |
c. |
halt points |
b. |
debug points |
d. |
tracepoints |
ANS: A PTS: 1 REF: 417
a. |
blue |
c. |
red |
b. |
green |
d. |
yellow |
ANS: D PTS: 1 REF: 421
a. |
ClickDeploy Installation |
c. |
ClickOnce Deployment |
b. |
ClickInstall Deployment |
d. |
ClickPublish Deployment |
ANS: C PTS: 1 REF: 425
a. |
complete |
c. |
debugged |
b. |
working properly |
d. |
all of the above |
ANS: D PTS: 1 REF: 425
a. |
Microsoft Word |
c. |
PowerBuilder |
b. |
Visual Studio 2010 |
d. |
none of the above |
ANS: D PTS: 1 REF: 425
TRUE/FALSE
ANS: F PTS: 1 REF: 382
ANS: F PTS: 1 REF: 384
ANS: T PTS: 1 REF: 385
ANS: T PTS: 1 REF: 387
ANS: T PTS: 1 REF: 387
ANS: F PTS: 1 REF: 388
ANS: F PTS: 1 REF: 388
ANS: T PTS: 1 REF: 388
ANS: T PTS: 1 REF: 389
ANS: F PTS: 1 REF: 400
ANS: F PTS: 1 REF: 401
ANS: F PTS: 1 REF: 401
ANS: T PTS: 1 REF: 401
ANS: T PTS: 1 REF: 403
ANS: T PTS: 1 REF: 404
ANS: F PTS: 1 REF: 406
ANS: F PTS: 1 REF: 406
ANS: T PTS: 1 REF: 413
ANS: T PTS: 1 REF: 414
ANS: F PTS: 1 REF: 416
ANS: T PTS: 1 REF: 422
ANS: F PTS: 1 REF: 417
ANS: F PTS: 1 REF: 417
ANS: F PTS: 1 REF: 423
ANS: T PTS: 1 REF: 429
COMPLETION
ANS: menu bar
PTS: 1 REF: 380
ANS: menu
PTS: 1 REF: 380
ANS: MenuStrip
PTS: 1 REF: 381
ANS: Component Tray
PTS: 1 REF: 382
ANS: Close
PTS: 1 REF: 385
ANS: InputBox
PTS: 1 REF: 387
ANS: items
PTS: 1 REF: 390
ANS: SelectedItem
PTS: 1 REF: 395
ANS: Next
PTS: 1 REF: 399
ANS:
Step
step
PTS: 1 REF: 400
ANS: Do
PTS: 1 REF: 405
ANS: Do While
PTS: 1 REF: 405
ANS: Do Until
PTS: 1 REF: 406
ANS: nested
PTS: 1 REF: 416
ANS: debugging
PTS: 1 REF: 417
ANS: breakpoint
PTS: 1 REF: 417
ANS: DataTips
PTS: 1 REF: 417
ANS: deploy
PTS: 1 REF: 425
ANS: ClickOnce
PTS: 1 REF: 425
ANS: Publish
PTS: 1 REF: 426
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a. |
ListBox |
f. |
For...Next |
b. |
wizard |
g. |
breakpoint |
c. |
bottom-controlled |
h. |
looping |
d. |
infinite |
i. |
InputBox |
e. |
accumulator |
j. |
Do Until |
ESSAY
ANS:
A compound operator allows you to add, subtract, multiple, divide, use modulus or exponents, or concatenate strings, storing the result in the same variable. An assignment statement that includes a compound operator begins with the variable that will contain the accumulated value, such as an accumulator or a counter, followed by the compound operator. A compound operator consists of an arithmetic operator and an equal sign. The last element in the assignment statement is the variable or literal containing the value to be used in the calculation
PTS: 1 REF: 396 TOP: Critical Thinking
ANS:
In a Do loop, the body of the loop is executed while or until a condition is true or false. The Do loop uses a condition similar to an If…Then decision structure to determine whether it should continue looping. In this way you can use a Do loop to execute a body of statements an indefinite number of times.
Visual Basic 2010 provides two types of Do loops: the Do While loop and the Do Until loop. Both Do loops execute statements repeatedly until a specified condition becomes true or false. Each loop examines a condition to determine whether the condition is true. The Do While loop executes as long as the condition is true.
The Do Until loop executes until the condition becomes true.
Do loops are either top-controlled or bottom-controlled, depending on whether the condition is tested before the loop begins or after the body of the loop has executed one time. A top-controlled loop is tested before the loop is entered; the body of a top-controlled loop might not be executed at all because the condition being tested might be true before any processing in the loop occurs.
Bottom-controlled loops test the condition at the bottom of the loop, so the body of a bottom-controlled loop is executed at least once..
PTS: 1 REF: 405-406 TOP: Critical Thinking
ANS:
A good way to collect information is to pause the execution of the code where a possible error could occur. One way to pause execution is to use breakpoints. Breakpoints are stop points placed in the code to tell the Visual Studio 2010 debugger where and when to pause the execution of the application. During this pause, the program is in break mode. While in break mode, you can examine the values in all variables that are within the scope of execution through the use of DataTips.
PTS: 1 REF: 417 TOP: Critical Thinking
CASE
Critical Thinking Questions
Case 6-1
Chris is trying to decide which kind of loop is the best loop for him to use to solve a couple of different programming challenges that he faces.
a. top-controlled Do While |
c. bottom-controlled Do While |
b. bottom-controlled Do Until |
d. For…Next |
ANS:
D
PTS: 1 REF: 417
a. bottom-controlled Do Until |
c. For…Next |
b. top-controlled Do Until |
d. top-controlled Do While |
ANS:
A
PTS: 1 REF: 417
Critical Thinking Questions
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.
a. 18 |
c. 72 |
b. 21 |
d. None of the above |
ANS:
B
PTS: 1 REF: 397
a. 22 |
c. 48 |
b. 24 |
d. 576 |
ANS:
D
PTS: 1 REF: 397
hihi
Earn back money you have spent on downloaded sample
To export a reference to this article please select a referencing stye below.
Assignment Hippo (2021) . Retrive from http://www.assignmenthippo.com/sample-assignment/loop-structures-mcqs
"." Assignment Hippo ,2021, http://www.assignmenthippo.com/sample-assignment/loop-structures-mcqs
Assignment Hippo (2021) . Available from: http://www.assignmenthippo.com/sample-assignment/loop-structures-mcqs
[Accessed 10/04/2021].
Assignment Hippo . ''(Assignment Hippo,2021) http://www.assignmenthippo.com/sample-assignment/loop-structures-mcqs accessed 10/04/2021.
Want to order fresh copy of the Sample Template Answers? online or do you need the old solutions for Sample Template, contact our customer support or talk to us to get the answers of it.
Our motto is deliver assignment on Time. Our Expert writers deliver quality assignments to the students.
Get reliable and unique assignments by using our 100% plagiarism-free.
Get connected 24*7 with our Live Chat support executives to receive instant solutions for your assignment.
Get Help with all the subjects like: Programming, Accounting, Finance, Engineering, Law and Marketing.
Get premium service at a pocket-friendly rate at AssignmentHippo
I was struggling so hard to complete my marketing assignment on brand development when I decided to finally reach to the experts of this portal. They certainly deliver perfect consistency and the desired format. The content prepared by the experts of this platform was simply amazing. I definitely owe my grades to them.
Get instant assignment help