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
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

CSCI 1730 midterm Questions with Correct Answers | Updated (100% Correct Answers)

Document preview thumbnail
Preview 2 out of 13 pages

CSCI 1730 midterm Questions with Correct Answers | Updated (100% Correct Answers)

Content preview

1


CSCI 1730 midterm Questions with Correct
Answers | Updated (100% Correct Answers)
Phases of a C program Answer: 1. edit, 2. preprocess, 3. compile, 4.
link, 5. load, 6. execute

editing phase Answer: the program is created in the editor and
stored on the disk

preprocess phase Answer: the preprocessor program processes the
code

compile phase Answer: compiler takes the code from source files ->
object code and stores it on disk

linking phase Answer: the linker links the object code with the
libraries and creates a.out (object code -> executable program) and
stores it on disk

loading phase Answer: the loader takes the program from the disk
and puts it in primary memory

executing phase Answer: the CPU takes instruction and executes it,
possibly storing new data values as the program executes

preprocessor directives Answer: #include, tell preprocessor what
contents to include when processing code


© 2025 All rights reserved

, 2
#include <stdio.h> Answer: tells preprocessor to include the
contents of <stdio.h>, which contains input/output operations (such
as printing to the screen)

printf() Answer: prints text to screen, but to print variables within a
string, you must include format specifiers within the string, followed
by the variables as subsequent arguments to the function

%d Answer: base 10 signed int

%u Answer: base 10 unsigned int

%f Answer: floating point values

%p Answer: pointers

%x Answer: hexadecimals

%c Answer: characters

%s Answer: strings

compiling and linking Answer: done in one step with one C source
file, done separately with multiple source files; to compile and link
the source file -> pass it as argument to gcc - generates executable
file named a.out, but to specify name: gcc -o name file.c

makefile Answer: must be located in same directory as the C source
files; cl, run, and clean = targets - can be given to make utility as

© 2025 All rights reserved

Document information

Uploaded on
January 16, 2026
Number of pages
13
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

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

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.
Passit
3.5
(23)
Sold
128
Followers
6
Items
14482
Last sold
2 weeks ago



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