PLTW Computer Science Final Exam Review (multiple choice) | Verified |
Updated (Actual Exam) LATEST VERSION!!
How are variables used in programming? - (ANSWER)They are used as a storing location associated with
an identifier
What is a variable? - (ANSWER)A named memory cell where information can be stored
A function is a block of code. How many built-in functions does Python have? - (ANSWER)80
Python uses the keyword def to define a new function
a. True b. False - (ANSWER)True
The lines of code in a function are indented four (4) spaces
a. True b. False - (ANSWER)True
To create multi-line comments (also called a docstring) you would use ________. - (ANSWER)'''
To add comments in Python, use the ___________symbol - (ANSWER)#
True or False - (ANSWER)boolean
text that is not changed or manipulated just used as it is - (ANSWER)string
Integers - (ANSWER)int
Any number with a decimal - (ANSWER)float
Updated (Actual Exam) LATEST VERSION!!
How are variables used in programming? - (ANSWER)They are used as a storing location associated with
an identifier
What is a variable? - (ANSWER)A named memory cell where information can be stored
A function is a block of code. How many built-in functions does Python have? - (ANSWER)80
Python uses the keyword def to define a new function
a. True b. False - (ANSWER)True
The lines of code in a function are indented four (4) spaces
a. True b. False - (ANSWER)True
To create multi-line comments (also called a docstring) you would use ________. - (ANSWER)'''
To add comments in Python, use the ___________symbol - (ANSWER)#
True or False - (ANSWER)boolean
text that is not changed or manipulated just used as it is - (ANSWER)string
Integers - (ANSWER)int
Any number with a decimal - (ANSWER)float