Formatting and Commenting Flashcards

1
Q

what to include at top of program

A

/****
author
date
exercise (name of program)
purpose
**
***/

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

what to do after every {

A

press tab

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

what to do after every }

A

//name of method

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

what to comment for methods

A

purpose of method

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

what needs to have spaces around

A

// and operators

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