Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CS 159 Exam 1 Questions and Answers/True and False

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
27-11-2025
Written in
2025/2026

CS 159 Exam 1 Questions and Answers/True and False

Institution
CS 159
Course
CS 159

Content preview

CS 159 Exam 1 True and False


A C program begins with a section for preprocessor directives. - Answers-T



The preprocessor is a part of the compiling process and prepares your code for the remainder of that
process. - Answers-T



Every program must have exactly one function named main. - Answers-T



Within each function the local declarations and executable statements must NOT be permitted to
overlap. - Answers-T



Variable declarations will NEVER be permitted in the global section this semester. - Answers-T



The files stdio.h and math.h are libraries that contain standard functions for our use. - Answers-T



The return(0); statement will be the final statement in the main function. - Answers-T



The return statement in main will return control back to the first statement in main. - Answers-F



Comment are added to a program to improve its level of documentation intended for other
programmers. - Answers-T



The course program headers are multi-line comments. - Answers-T

, You should place a single space between all operators and operands. - Answers-T



All variables should be commented to the right of each declaration. - Answers-T



You should declare multiple variables on one line. - Answers-F



Select meaningful identifies (names) for all variables in your program. - Answers-T



Rarely are single character identifies considered meaningful for variables in a program. - Answers-T



Do not single ( or double) space the entire program. use blank lines when appropriate. - Answers-T



There is no need to include example output with your submission. - Answers-T



All code found between { and } should be indented two additional spaces. - Answers-T



Multi-line comments cannot be nested - Answers-T



An identifies cannot begin with a digit character. - Answers-T



In additional to alphabetic and digits characters it is acceptable to use underscores, dashes and periods
as part of an identifier. - Answers-F



The data type of a variable will determine the amount of memory that is necessary to reserve for it. -
Answers-T

Written for

Institution
CS 159
Course
CS 159

Document information

Uploaded on
November 27, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$17.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Rosetopgrader Nursing
Follow You need to be logged in order to follow users or courses
Sold
32
Member since
2 year
Number of followers
8
Documents
3813
Last sold
2 months ago

5.0

8 reviews

5
8
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions