PLTW Computer Science Final Exam
Review (Multiple Choice) With 100%
Correct And Verified Answers
How are variables used in programming? - Correct Answer-They are used as a storing
location associated with an identifier
What is a variable? - Correct 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? - Correct
Answer-80
Python uses the keyword def to define a new function
a. True b. False - Correct Answer-True
The lines of code in a function are indented four (4) spaces
a. True b. False - Correct Answer-True
To create multi-line comments (also called a docstring) you would use ________. -
Correct Answer-'''
To add comments in Python, use the ___________symbol - Correct Answer-#
True or False - Correct Answer-boolean
text that is not changed or manipulated just used as it is - Correct Answer-string
Integers - Correct Answer-int
Any number with a decimal - Correct Answer-float
To assign a variable to a value you must use the ________ . - Correct Answer-=
To divide numbers you must use the _______________ symbol . - Correct Answer-/
To multipy numbers you must use the _______________ symbol . - Correct Answer-*
To get the exponential of a number you would use the ___________ symbol. - Correct
Answer-**
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Vendarsol. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.99. You're not tied to anything after your purchase.