Back to marketplace

U3: Loops

No description yet. This curated deck is ready for daily study.

Total cards: 12•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (12)

#1
Front (Question)

Loops

Back (Answer)

• Allow programmer to see patterns in problems and write program accordingly • Limited code repeats infinitely

#2
Front (Question)

Infinite Loop

Back (Answer)

Loop that doesn’t stop (not good for program)

#3
Front (Question)

For Loop [A]

Back (Answer)

• Exists in wide variety of languages; works similarly in all • Has built-in variable keeping track of no. of loop executes

#4
Front (Question)

For Loop [B]

Back (Answer)

• Starts at certain number; ends at certain number • Can be incremented or decremented by given number

#5
Front (Question)

Purpose of For Loop

Back (Answer)

• When times loop needed to execute already known • When variable used to indicate no. of loop executes

#6
Front (Question)

While Loops

Back (Answer)

• Used when programmer doesn’t know no. of times loop needs to repeat • while; do while

#7
Front (Question)

“While” Loop

Back (Answer)

Used for executing loop +0 times

#8
Front (Question)

“Do While” Loop

Back (Answer)

Used for executing loop +1 times

#9
Front (Question)

System.out.print vs. system.out.println

Back (Answer)

• System.out.print prints in single line repeatedly • System.out.println prints in different lines repeatedly

#10
Front (Question)

How User Input Influences Loops

Back (Answer)

Can change no. of times loop executes; exit program

#11
Front (Question)

Data Structure

Back (Answer)

• Specific way to organize large amounts of same type of data • Can store, process and output data • Arrays, stacks, queues, linked lists

#12
Front (Question)

Nested Loops

Back (Answer)

Loops inside of loops