Module 2 Knowledge Check
(What does the following code print (be exact, but you don't need to worry about new line characters.
first = "Ada Lovelace"
print("The world's first programmer is " + first + ".") - answerThe world's first programmer
is Ada Lovelace.
Best match the code with the description of what it does.
1) wage = 20
2) print(wage)
3) print("wage")
4) print(20) - answer1) Stores the numeric value 20 in the variable wage
2) prints value of wage to the screen
3) prints the word wage to the screen
4) prints 20 to the screen
Match the error with the definition.
1) ValueError
2) SyntaxError
3) TypeError
4) IndintationError
5) NameError - answer1) An invalid value is used - can occur if giving letters to int().
2) The program contains invalid code that cannot be understood.
3) An operation uses incorrect types - can occur if adding an integer to a string.
4) The lines of the program are not properly indented.
5) The program tries to use a variable that does not exist.
The following is based on which law of technology?
Facebook is known for being a technology for families to stay in contact, share information and photos. At the same time, facebook is known for selling your information to different companies that can mine that data for their own unknown uses. -
answerTechnology is neither good nor bad; nor is it neutral.
Which law does the following statement describe?
"The creation of technology creates more technology." - answerInvention is the mother of necessity.
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 julianah420. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $16.99. You're not tied to anything after your purchase.