8. Documenting Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are two types of documentation you can make to help others understand your program?

A

Comments and README files

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

Which type of documentation helps you remember what small chunks of code are supposed to do?

A

Comments attached to lines of code

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

Why is “commenting out” a line of code helpful in debugging?

A

It helps you prevent small chunks of the program from running without having to delete them, so you attach a comment to that line of code and it will still be with the code but the computer will not read it as part of the program

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

Why are comments useful to you and other programmers?

A

If you har working on a project with others, its much easier to read a comment explaining a chunk of code than it is to try to read the code itself if you didn’t write it yourself

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

If you wanted to add a note/comment in your code as a reminder to come back and fix it you could name it ____

A

BUG or #FIXME

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

Which of the following would you use to help a user install your program: a README file or a comment in your code?

A

README file

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

What is a userguide?

A

A user guide is a document that helps the user learn the functionality of a program

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