Exam 1 Review: True/False Flashcards
(95 cards)
A C program begins with a section for preprocessor directives
True
The preprocessor is a part of the compiling process and prepares your code for the remainder of the process.
True
The declaration section of a function contains executable instructions for the computer.
False
Every program must have exactly one function named main.
True
The main function is the starting point for execution of the program.
True
The gcc compiler as found on Vocareum will issue a warning when the main is not an int function.
True
All code found in the executable statements and local declaration sections of the main function is considered to be the body of the function.
True
Variable declarations will NEVER be permitted in the global section this semester.
True
The files stdio.h and math.h are libraries that contain standard functions for our use.
True
The return(0); statement will be the final statement in the main function.
True
Comments are added to a program to improve its level of documentation intended for other programmers.
True
A char is any value that can be represented in the character set of the computer.
True
The character data type is one of three integral types that cannot contain a fraction part and are whole numbers.
True
On the ASCII table all of the lowercase letters are grouped together (same for uppercase)
True
The first 32 characters on the ASCII table are control characters and do not represent alphanumeric, digit, or punctuation characters.
True
Variables are named memory locations that have a type.
True
Each variable in a C program must be declared and defined before it can be used
True
It is much easier to find and work with variables if they are defined on separate lines
True
Variables in the C language are initialized automatically when they are defined
False - when they are declared
The backslash is known as an escape character
True
A character constant is enclosed in double quotes
False
A literal constant is an unnamed constant used to specify data
True
The command to create a defined constant is usually placed at the beginning of the program
True
While variables have data types, constants do not.
False