Lecture 29 Flashcards

(3 cards)

0
Q

Continue:

  1. what is continue?
  2. Why use continue?
  3. How to use continue?
A
  1. continue allows you to by pass the remainder of the current iteration of a loop
  2. -continue : Allows the loop to continue on to the next iteration
    - break: in contrast will exit the loop entirely
  3. continue;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Break:

  1. What is Break?
  2. Why use break?
  3. How to use break?
A
  1. Break will terminate a loop or exit a switch
  2. Allows you to stop the loop/switch if an error or irregular condition is detected
  3. Break;
    ~*things to note:
    There are no arguments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Go to:
1.
2.
3.

A

1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly