100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CS 159 - Purdue - Exam 1 Study Guide (From Lab Quizzes)With Correct Answers. $9.99   Add to cart

Exam (elaborations)

CS 159 - Purdue - Exam 1 Study Guide (From Lab Quizzes)With Correct Answers.

 35 views  0 purchase
  • Course
  • CS 159
  • Institution
  • CS 159

CS 159 - Purdue - Exam 1 Study Guide (From Lab Quizzes)With Correct Answers.

Preview 1 out of 4  pages

  • July 14, 2023
  • 4
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
  • CS 159
  • CS 159
avatar-seller
EvaTee
CS 159 - Purdue - Exam 1 Study Guide (From Lab Quizzes) With Correct Answers.
It is a course standard that you do not single (or double) space the entire program, but use blank lines when appropriate. - Answer True
it is a course standard that you comment all variables to the right of each declaration.
- Answer True
According to course standards it is permissible to declare more than one variable per
line. - Answer False, all variables should be declared on it's own line
Variable delcarations should ALWAYS be placed in the local declaration section of a function this semester. - Answer True
Every program must have exactly one function named main. - Answer True
A scanf statement can be used to produce output to the monitor and accept input from the user of the program. - Answer False, can only accept input
It is a course standard that you select meaningful identifiers (names) for all variables in your program. - Answer True
It is a course standard that you include example output with your program submission. - Answer False, example output should never be provided with submissions
A printf statement can be used to produce output to the monitor and accept input from the user of the program. - Answer False, can only produce output to the monitor
According to the course standards, local declarations and executable statements are
permitted to overlap. - Answer False, local declarations and executable statements should have their own individual sections in a function
In addition to alphabetic and digits characters, it is acceptable to use underscores, dashes, and periods as part of an identifier. - Answer False, an identifier must start with a letter and only contain letters and underscores
A literal constant is data that is not represented by any other symbol in a given expression - Answer True
In most cases the definition of symbolic/defined constants will not terminate with a semi-colon - Answer True
A scanf function is composed of a format string and an address list. - Answer True
A single scanf function call can be used to display a message to the user and accept
the input from the user. - Answer False, a scanf function can not display a message

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 EvaTee. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.99
  • (0)
  Add to cart