Lecture 2 Flashcards

1
Q

Readable Programs

A

Structure, Cohesion, Separation, Indentation, Comments, Proper Variable Naming

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

Conditional Operators (&& and ||)

A

These are lazy operators, RHS evaluated only when necessary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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

Do While

A

Executed at least once. Only after the first execution, the stopping condition is checked.

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