01. Document and Structure Code 1 - EXAM Flashcards

1
Q

Which is best practice when using indentation and white space in Python?

Select one:

a. Anything inside a routine should be indented
b. White space is not important to use with statements
c. Always use white space
d. Make single lines as long as possible

A

a. Anything inside a routine should be indented

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

Which best defines the Pydoc feature?

Select one:

a. A statement which generates documentation on variables
b. A library module which automatically generates documentation on Python modules
c. A statement which automatically generates documentation on Python modules
d. A module which automatically generates documentation on variables

A

b. A library module which automatically generates documentation on Python modules

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

The def keyword is used to start a __________ in Python.

Select one:

a. class
b. function
c. statement
d. variable
e. GUI

A

b. function

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