Back to marketplace

U3: Nested If Statements

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

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

Card preview (16)

#1
Front (Question)

Program Control

Back (Answer)

• How program executes code, makes decisions and organizes functions • How and which lines of code get executed

#2
Front (Question)

Sequential Program Control

Back (Answer)

Lines executed from first to last; top to bottom

#3
Front (Question)

Selection and Program Control

Back (Answer)

Computer makes choices on what to execute based on data.

#4
Front (Question)

Switch Statement Code

Back (Answer)

switch (variable) { case “any”: case “ANY”: codea; break; default: codeb; break; }

#5
Front (Question)

Case Fall-Through

Back (Answer)

W/out break function, program executes each next case until reaching “break”

#6
Front (Question)

Switch Statements

Back (Answer)

• Similar to if-then-else statement • Useful when decision based on single character, word or value

#7
Front (Question)

Quotations with Cases

Back (Answer)

Use “” for characters; no quotations for numbers

#8
Front (Question)

Indenting and Braces

Back (Answer)

After every open brace, next line of code must be indented further

#9
Front (Question)

Nested if-then-else Statement

Back (Answer)

If-then-else statement programmed inside another if-then-else statement

#10
Front (Question)

White Space

Back (Answer)

Empty space/lines in the program

#11
Front (Question)

Coding Style

Back (Answer)

How code looks; Each person has a different coding style

#12
Front (Question)

Aspects of Coding Style [A]

Back (Answer)

• How/when comments used • # of spaces for indentation • Use of white space

#13
Front (Question)

Aspects of Coding Style [B]

Back (Answer)

• Naming of variables and functions • Code organization • Patterns used and avoided

#14
Front (Question)

Style Guides

Back (Answer)

• Set of rules outlining how person’s programming works • Workplaces and languages can have rules/conventions

#15
Front (Question)

Aspects of Style Guides [A]

Back (Answer)

• Communication is key so everybody can agree • Makes old code easier to understand

#16
Front (Question)

Aspects of Style Guides [B]

Back (Answer)

• Makes errors obvious • Explaining details important for style guide