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
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