Week 4 Quiz - 1. Consider the following while loop: count=2...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1.   Consider the following while loop: count=2 while count<=12   Display count   count= count +1 endwhile This loop will display: All numbers from 2 to 12 inclusive  All odd numbers from 2 to 12 inclusive      All even numbers from 2 to 12 inclusive      The number 2 over and over again 2.  In a do while loop, what is this instruction called? count= count+1 The condition      Incrementing the counter     A primer read      The condition 3.  Consider the following while loop: count=2 while count<=12   Display count   count= count +1 endwhile This loop would be considered: A definite loop  An indefinite loop      A For loop      A Do Until loop  4.  Which of the following would be considered common mistakes when creating loops? Neglecting to Initialize the Loop Control variable      Neglecting to alter the Loop control variable      Using the wrong comparison with the loop control variable 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Week 4 Quiz - 1. Consider the following while loop: count=2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online