SlideShare a Scribd company logo
Quiz 9 review sheet.
1. Val()function is used to convert an entry in an input box to a number
2. A set of statements that perform a task over and over again based on a condition is called a
loop.
3. A Do…Loop begins after the Boolean condition loops at least once. If the condition is true, the
loop repeats.
4. Repeating a set of statements is called iteration.
5. Accumulators are useful to keep running totals.
6. Do While quantity < 50
numShipments += 1
inStock += quantityReceived
Loop

Which variable is the accumulator? Quantity
7. Given the following statements:
Dim x As Integer = 0
Do
x = x + 2
Loop While x < 10

The Do Loop will execute 5 times. If x = 0, x + 2 = 2, loop, x + 2 = 4, loop, x + 2 = 6, loop, x + 2 =
8, loop, x + 2 = 10. Looping stops because x reaches 10. How many times did it loop? 5
including the first x + 2 = 2.

8. Given the following statements:
For x As Integer = 1 To 11
MessageBox.Show(x)
Next x

How many message boxes will be displayed? 12
9. The following statements would create an infinite loop.
Dim x As Integer = -2
Do While x < 0
x = x + 1
Loop

The answer is False.
10. Convert()is used to convert an entry in an input box to a number.
11. A flag is a condition that is used to run a program.

12. Given the following code segment:
Dim a As Integer = 0
Dim b As Integer = 0
Do While a < 10
b += a
Loop
Me.lblMessage.Text = b

Which output will be displayed? 0

More Related Content

Viewers also liked

Slide 1 of Hitler Youth
Slide 1 of Hitler YouthSlide 1 of Hitler Youth
Slide 1 of Hitler Youth
Sebastian1239
 

Viewers also liked (13)

Computer comunication
Computer comunicationComputer comunication
Computer comunication
 
Cristian presentacion
Cristian presentacionCristian presentacion
Cristian presentacion
 
Internet
InternetInternet
Internet
 
DB2 Application programming and sql guide
DB2 Application programming and sql guideDB2 Application programming and sql guide
DB2 Application programming and sql guide
 
грамота ученики блог_об_италии
грамота ученики блог_об_италииграмота ученики блог_об_италии
грамота ученики блог_об_италии
 
Slide 1 of Hitler Youth
Slide 1 of Hitler YouthSlide 1 of Hitler Youth
Slide 1 of Hitler Youth
 
Outdated Browser Detected - Comment se débarrasser De ce
Outdated Browser Detected - Comment se débarrasser De ceOutdated Browser Detected - Comment se débarrasser De ce
Outdated Browser Detected - Comment se débarrasser De ce
 
19 2- khoa lop 5 dung dich
19 2- khoa lop 5  dung dich19 2- khoa lop 5  dung dich
19 2- khoa lop 5 dung dich
 
Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Adding Value to HBase with IBM InfoSphere BigInsights and BigSQLAdding Value to HBase with IBM InfoSphere BigInsights and BigSQL
Adding Value to HBase with IBM InfoSphere BigInsights and BigSQL
 
3. introduction to software testing
3. introduction to software testing3. introduction to software testing
3. introduction to software testing
 
Toothberg
ToothbergToothberg
Toothberg
 
Halong Paradise Suites - The Very First Luxury Boutique Hotel in Halong
Halong Paradise Suites - The Very First Luxury Boutique Hotel in HalongHalong Paradise Suites - The Very First Luxury Boutique Hotel in Halong
Halong Paradise Suites - The Very First Luxury Boutique Hotel in Halong
 
Test cases
Test casesTest cases
Test cases
 

Similar to Quiz 9 review sheet

Notes2
Notes2Notes2
Notes2
hccit
 
C++ control structure
C++ control structureC++ control structure
C++ control structure
bluejayjunior
 
Loop structures chpt_6
Loop structures chpt_6Loop structures chpt_6
Loop structures chpt_6
cmontanez
 
Algorithm-RepetitionSentinellNestedLoop_Solution.pptx
Algorithm-RepetitionSentinellNestedLoop_Solution.pptxAlgorithm-RepetitionSentinellNestedLoop_Solution.pptx
Algorithm-RepetitionSentinellNestedLoop_Solution.pptx
AliaaAqilah3
 

Similar to Quiz 9 review sheet (20)

Notes2
Notes2Notes2
Notes2
 
Java loops for, while and do...while
Java loops   for, while and do...whileJava loops   for, while and do...while
Java loops for, while and do...while
 
Lec7 - Loops updated.pptx
Lec7 - Loops updated.pptxLec7 - Loops updated.pptx
Lec7 - Loops updated.pptx
 
C++ control structure
C++ control structureC++ control structure
C++ control structure
 
Do...Loop
Do...LoopDo...Loop
Do...Loop
 
C# Loops
C# LoopsC# Loops
C# Loops
 
Iterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop workingIterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop working
 
Vbscript
VbscriptVbscript
Vbscript
 
Loops and iteration.docx
Loops and iteration.docxLoops and iteration.docx
Loops and iteration.docx
 
Control structures ii
Control structures ii Control structures ii
Control structures ii
 
Greedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. MohiteGreedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. Mohite
 
L06
L06L06
L06
 
15-Loops.ppt
15-Loops.ppt15-Loops.ppt
15-Loops.ppt
 
Data structure notes
Data structure notesData structure notes
Data structure notes
 
Loop structures chpt_6
Loop structures chpt_6Loop structures chpt_6
Loop structures chpt_6
 
Algorithm-RepetitionSentinellNestedLoop_Solution.pptx
Algorithm-RepetitionSentinellNestedLoop_Solution.pptxAlgorithm-RepetitionSentinellNestedLoop_Solution.pptx
Algorithm-RepetitionSentinellNestedLoop_Solution.pptx
 
CONTROL STRUCTURE IN VB
CONTROL STRUCTURE IN VBCONTROL STRUCTURE IN VB
CONTROL STRUCTURE IN VB
 
Ruby basics ||
Ruby basics ||Ruby basics ||
Ruby basics ||
 
Control structures
Control structuresControl structures
Control structures
 
Chapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java StatementsChapter 2 : Programming with Java Statements
Chapter 2 : Programming with Java Statements
 

Recently uploaded

Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
Suleman Rana
 

Recently uploaded (13)

The Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy DirectorThe Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy Director
 
A Collection of Little Johnny Jokes.pptx
A Collection of Little Johnny Jokes.pptxA Collection of Little Johnny Jokes.pptx
A Collection of Little Johnny Jokes.pptx
 
Lite version of elevator game simplified.pptx
Lite version of elevator game simplified.pptxLite version of elevator game simplified.pptx
Lite version of elevator game simplified.pptx
 
Doorstep ꧁❤8901183002❤꧂Lucknow #ℂall #Girls , Lucknow #ℂall #Girls For Shot...
Doorstep ꧁❤8901183002❤꧂Lucknow  #ℂall #Girls , Lucknow  #ℂall #Girls For Shot...Doorstep ꧁❤8901183002❤꧂Lucknow  #ℂall #Girls , Lucknow  #ℂall #Girls For Shot...
Doorstep ꧁❤8901183002❤꧂Lucknow #ℂall #Girls , Lucknow #ℂall #Girls For Shot...
 
A DARK AND HOLLOW STAR BY ASHLEY SHUTTLEWORTH
A DARK AND HOLLOW STAR BY ASHLEY SHUTTLEWORTHA DARK AND HOLLOW STAR BY ASHLEY SHUTTLEWORTH
A DARK AND HOLLOW STAR BY ASHLEY SHUTTLEWORTH
 
Q4 WEEK 1 JUDGE THE RELEVANCE AND WORTH OF IDEAS.pptx
Q4 WEEK 1 JUDGE THE RELEVANCE AND WORTH OF IDEAS.pptxQ4 WEEK 1 JUDGE THE RELEVANCE AND WORTH OF IDEAS.pptx
Q4 WEEK 1 JUDGE THE RELEVANCE AND WORTH OF IDEAS.pptx
 
The Ultimate Guide to Mom IPTV- Everything You Need to Know in 2024.pdf
The Ultimate Guide to Mom IPTV- Everything You Need to Know in 2024.pdfThe Ultimate Guide to Mom IPTV- Everything You Need to Know in 2024.pdf
The Ultimate Guide to Mom IPTV- Everything You Need to Know in 2024.pdf
 
Dehradun Girls 9719300533 Heat-lava { Dehradun } Whiz ℂall Serviℂe By Our
Dehradun Girls 9719300533 Heat-lava { Dehradun } Whiz ℂall Serviℂe By OurDehradun Girls 9719300533 Heat-lava { Dehradun } Whiz ℂall Serviℂe By Our
Dehradun Girls 9719300533 Heat-lava { Dehradun } Whiz ℂall Serviℂe By Our
 
NO1 Pandit Amil Baba In Uk Usa Uae London Canada England America Italy German...
NO1 Pandit Amil Baba In Uk Usa Uae London Canada England America Italy German...NO1 Pandit Amil Baba In Uk Usa Uae London Canada England America Italy German...
NO1 Pandit Amil Baba In Uk Usa Uae London Canada England America Italy German...
 
A KING’S HEART THE STORY OF TSAR BORIS III (Drama) (Feature Film Project in D...
A KING’S HEART THE STORY OF TSAR BORIS III (Drama) (Feature Film Project in D...A KING’S HEART THE STORY OF TSAR BORIS III (Drama) (Feature Film Project in D...
A KING’S HEART THE STORY OF TSAR BORIS III (Drama) (Feature Film Project in D...
 
Barbie Presentation Template.pptx aaaaaa
Barbie Presentation Template.pptx aaaaaaBarbie Presentation Template.pptx aaaaaa
Barbie Presentation Template.pptx aaaaaa
 
Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
 
NO1 Pandit Black Magic Specialist Expert In Bahawalpur, Sargodha, Sialkot, Sh...
NO1 Pandit Black Magic Specialist Expert In Bahawalpur, Sargodha, Sialkot, Sh...NO1 Pandit Black Magic Specialist Expert In Bahawalpur, Sargodha, Sialkot, Sh...
NO1 Pandit Black Magic Specialist Expert In Bahawalpur, Sargodha, Sialkot, Sh...
 

Quiz 9 review sheet

  • 1. Quiz 9 review sheet. 1. Val()function is used to convert an entry in an input box to a number 2. A set of statements that perform a task over and over again based on a condition is called a loop. 3. A Do…Loop begins after the Boolean condition loops at least once. If the condition is true, the loop repeats. 4. Repeating a set of statements is called iteration. 5. Accumulators are useful to keep running totals. 6. Do While quantity < 50 numShipments += 1 inStock += quantityReceived Loop Which variable is the accumulator? Quantity 7. Given the following statements: Dim x As Integer = 0 Do x = x + 2 Loop While x < 10 The Do Loop will execute 5 times. If x = 0, x + 2 = 2, loop, x + 2 = 4, loop, x + 2 = 6, loop, x + 2 = 8, loop, x + 2 = 10. Looping stops because x reaches 10. How many times did it loop? 5 including the first x + 2 = 2. 8. Given the following statements: For x As Integer = 1 To 11 MessageBox.Show(x) Next x How many message boxes will be displayed? 12 9. The following statements would create an infinite loop. Dim x As Integer = -2 Do While x < 0 x = x + 1 Loop The answer is False. 10. Convert()is used to convert an entry in an input box to a number. 11. A flag is a condition that is used to run a program. 12. Given the following code segment:
  • 2. Dim a As Integer = 0 Dim b As Integer = 0 Do While a < 10 b += a Loop Me.lblMessage.Text = b Which output will be displayed? 0