CS 1325 EXAM 1
420+ (Latest 2025-2026 Edition) 100% Verified Q&A + Answer Key Solutions
Question 1
What are the phases of compilation-based execution of a C prorgram?
Correct!
1. Edit
2. Preprocess
3 Compile
4. Link
5. Load
6. Execute
Question 2
What does the edit phase of a C program has to be accomplished by?
Correct!
An editor program
Question 3
T/F:
Correct!
C program are typed in with the linker.
False, C program are typed in with the editor and corrections are made if necessary
Question 4
Where is the program stored?
Correct!
Secondary storage device such as a hard disk
, Question 5
What are C program file names should end with?
Correct!
.c
Question 6
During stage 2, preprocessing, who gives the command to compile the program?
Correct!
The programmer
Question 7
T/F:
Correct!
In a C system, the preprocessor executes automatically before the compiler's transition phase begins
True
Question 8
What kind of "special commands" does the C preprocessor obey?
Correct!
Preprocessor directives
Question 9
What is a preprocessor directives?
Correct!
Indicates that certain manipulations are to be performed on the program before compilation
, Question 10
What are some examples of manipulations that is done to the program before compilations?
Correct!
1. Including other files in the files to be compiled
2. Performing various text replacements
3. Defining various macros
Question 11
T/F:
Correct!
#include
#define
are examples of preprocessor directives
True
Question 12
During step 3 (after the preprocessing steps) what happens to the C source code?
Correct!
The compiler translates the C modified source code into object code and stores it on the disk
Question 13
What is an object code?
Correct!
Object code is essentially a machine code, a binary file that consists of a series of 1's and 0's?
Question 14
What executes the object code?
Correct!
The CPU
, Question 15
T/F:
Correct!
After the source code is turned into an object code it is complete and executable?
False, the object code is not complete and not yet executable
Question 16
Why can't the object code be executed?
Correct!
C programs typically contain references to functions defined elsewhere , therefore the object code
contains "holes".
Question 17
How can the "holes" be resolved in a C program?
Correct!
Resolved by the linker
Question 18
What happens during the linking phase?
Correct!
A linker links the object code with the code for the missing functions to produce an executable image
Question 19
T/F:
Correct!
During linking, multiple object files might be combined into one executable
True
420+ (Latest 2025-2026 Edition) 100% Verified Q&A + Answer Key Solutions
Question 1
What are the phases of compilation-based execution of a C prorgram?
Correct!
1. Edit
2. Preprocess
3 Compile
4. Link
5. Load
6. Execute
Question 2
What does the edit phase of a C program has to be accomplished by?
Correct!
An editor program
Question 3
T/F:
Correct!
C program are typed in with the linker.
False, C program are typed in with the editor and corrections are made if necessary
Question 4
Where is the program stored?
Correct!
Secondary storage device such as a hard disk
, Question 5
What are C program file names should end with?
Correct!
.c
Question 6
During stage 2, preprocessing, who gives the command to compile the program?
Correct!
The programmer
Question 7
T/F:
Correct!
In a C system, the preprocessor executes automatically before the compiler's transition phase begins
True
Question 8
What kind of "special commands" does the C preprocessor obey?
Correct!
Preprocessor directives
Question 9
What is a preprocessor directives?
Correct!
Indicates that certain manipulations are to be performed on the program before compilation
, Question 10
What are some examples of manipulations that is done to the program before compilations?
Correct!
1. Including other files in the files to be compiled
2. Performing various text replacements
3. Defining various macros
Question 11
T/F:
Correct!
#include
#define
are examples of preprocessor directives
True
Question 12
During step 3 (after the preprocessing steps) what happens to the C source code?
Correct!
The compiler translates the C modified source code into object code and stores it on the disk
Question 13
What is an object code?
Correct!
Object code is essentially a machine code, a binary file that consists of a series of 1's and 0's?
Question 14
What executes the object code?
Correct!
The CPU
, Question 15
T/F:
Correct!
After the source code is turned into an object code it is complete and executable?
False, the object code is not complete and not yet executable
Question 16
Why can't the object code be executed?
Correct!
C programs typically contain references to functions defined elsewhere , therefore the object code
contains "holes".
Question 17
How can the "holes" be resolved in a C program?
Correct!
Resolved by the linker
Question 18
What happens during the linking phase?
Correct!
A linker links the object code with the code for the missing functions to produce an executable image
Question 19
T/F:
Correct!
During linking, multiple object files might be combined into one executable
True