Lecture 2 Flashcards
1
Q
Readable Programs
A
Structure, Cohesion, Separation, Indentation, Comments, Proper Variable Naming
2
Q
Conditional Operators (&& and ||)
A
These are lazy operators, RHS evaluated only when necessary.
3
Q
Switch Statements
A
Break ensures no other further case matching is done after a match. Default is used to catch cases where there are no other case matches.
4
Q
Do While
A
Executed at least once. Only after the first execution, the stopping condition is checked.