2. Programming for Engineering Use

Code Documentation — Quiz

Test your understanding of code documentation with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

What is the main purpose of code documentation?

Question 2

Which is the best example of inline documentation?

Question 3

What information is usually included in a function docstring?

Question 4

Why are descriptive variable names considered good documentation?

Question 5

When should documentation be updated?