CSCI 1301 Midterm Exam Questions 100%
Solved.
Program - answerinstructions executing on at a time
input - answerA program gets data, perhaps from a file, keyboard, touchscreen, network, etc.
Process - answerA program performs computations on that data, such as adding two values like
x + y.
ou...
code - answer✔a common word for the textual representation of a program
line - answer✔a row of text
prompt >>> - answer✔indicates the interpreter is ready to accept code
statement - answer✔a program instruction
expressions - answer✔code that return a value when evaluated
variables - answer✔named references to values stored by the interpreter
assignment - answer✔=
print() - answer✔displays variables or expression values
comments - answer✔optional but can be used to explain portions of code to a human reader
string - answer✔text enclosed in quotes
newline character - answer✔Output can be moved to the next line by printing "\n", known as a
newline character.
escape sequence - answer✔a string that has a special meaning, like the newline character that
always starts with a backslash
whitespace - answer✔any space, tab, or newline
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 EFT, 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 this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller sirjoel. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R195,17. You're not tied to anything after your purchase.