Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS 1325 Exam UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS

Beoordeling
-
Verkocht
-
Pagina's
49
Cijfer
A+
Geüpload op
02-05-2026
Geschreven in
2025/2026

CS 1325 Exam UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS What are the phases of compilation-based execution of a C prorgram? - CORRECT ANSWER 1. Edit 2. Preprocess 3 Compile 4. Link 5. Load 6. Execute What does the edit phase of a C program has to be accomplished by? - CORRECT ANSWER An editor program T/F: C program are typed in with the linker. - CORRECT ANSWER with the editor and corrections are made if necessary Where is the program stored? - CORRECT ANSWER disk False, C program are typed in Secondary storage device such as a hard What are C program file names should end with? - CORRECT ANSWER .c During stage 2, preprocessing, who gives the command to compile the program? - CORRECT ANSWER The programmer T/F: In a C system, the preprocessor executes automatically before the compiler's transition phase begins - CORRECT ANSWER True What kind of "special commands" does the C preprocessor obey? - CORRECT ANSWER Preprocessor directives What is a preprocessor directives? - CORRECT ANSWER are to be performed on the program before compilation Indicates that certain manipulations What are some examples of manipulations that is done to the program before compilations? - CORRECT ANSWER 1. Including other files in the files to be compiled

Meer zien Lees minder
Instelling
CS
Vak
CS

Voorbeeld van de inhoud

CS 1325 Exam UPDATED ACTUAL
QUESTIONS AND CORRECT ANSWERS
What are the phases of compilation-based execution of a C prorgram? - CORRECT
ANSWER 1. Edit

2. Preprocess

3 Compile

4. Link

5. Load

6. Execute



What does the edit phase of a C program has to be accomplished by? - CORRECT
ANSWER An editor program



T/F:

C program are typed in with the linker. - CORRECT ANSWER False, C program are typed in
with the editor and corrections are made if necessary



Where is the program stored? - CORRECT ANSWER Secondary storage device such as a hard
disk



What are C program file names should end with? - CORRECT ANSWER .c



During stage 2, preprocessing, who gives the command to compile the program? - CORRECT
ANSWER The programmer



T/F:

In a C system, the preprocessor executes automatically before the compiler's transition phase begins -
CORRECT ANSWER True



What kind of "special commands" does the C preprocessor obey? - CORRECT
ANSWER Preprocessor directives

,What is a preprocessor directives? - CORRECT ANSWER Indicates that certain manipulations
are to be performed on the program before compilation



What are some examples of manipulations that is done to the program before compilations? -
CORRECT ANSWER 1. Including other files in the files to be compiled



2. Performing various text replacements



3. Defining various macros



T/F:

#include <stdio.h>

#define <identifier> <replacement text>



are examples of preprocessor directives - CORRECT ANSWER True



During step 3 (after the preprocessing steps) what happens to the C source code? - CORRECT
ANSWER The compiler translates the C modified source code into object code and stores it on
the disk



What is an object code? - CORRECT ANSWER Object code is essentially a machine code, a
binary file that consists of a series of 1's and 0's?



What executes the object code? - CORRECT ANSWER The CPU



T/F:

After the source code is turned into an object code it is complete and executable? - CORRECT
ANSWER False, the object code is not complete and not yet executable



Why can't the object code be executed? - CORRECT ANSWER C programs typically contain
references to functions defined elsewhere , therefore the object code contains "holes".

,How can the "holes" be resolved in a C program? - CORRECT ANSWER Resolved by the
linker



What happens during the linking phase? - CORRECT ANSWER A linker links the object code
with the code for the missing functions to produce an executable image



T/F:

During linking, multiple object files might be combined into one executable - CORRECT
ANSWER True



T/F:

Before the program can be executed, the program must first be placed in memory - CORRECT
ANSWER True



What places the program in memory? - CORRECT ANSWER Loader



What does the loader do? - CORRECT ANSWER Takes the executable image from disk and
transfer it to memory



What produces the source code of a C program? - CORRECT ANSWER Source code is entered
with a text editor by the programmer



What produces the modified source code? - CORRECT ANSWER Preprocessor



What produces the executable code? - CORRECT ANSWER linker



What produces the object code? - CORRECT ANSWER Compiler



What are the four standard data types in C? - CORRECT ANSWER Void, characters, integers,
and floating point data types

, What does C provide to return the size of any data type in bytes? - CORRECT
ANSWER sizeof( )



What does a void return? - CORRECT ANSWER Nothing



How many bytes is a char? - CORRECT ANSWER One byte



What does a char usually represent? - CORRECT ANSWER Represents a value from the ASCII
table



T/F:

A char can also be interpreted as a small integer - CORRECT ANSWER True



How do you declare a single byte in C? - CORRECT ANSWER Using char (data type) keyword



T/F:

Character literals are always in double quotes - CORRECT ANSWER False, character literals
are always single quotes



T/F:

Short int has 2 bytes - CORRECT ANSWER True



T/F:

int (16 bit) has 2 bytes - CORRECT ANSWER True



How many bits is in a byte? - CORRECT ANSWER 8



T/F:

int (32 bit) has 4 bytes - CORRECT ANSWER True



T/F:

Geschreven voor

Instelling
CS
Vak
CS

Documentinformatie

Geüpload op
2 mei 2026
Aantal pagina's
49
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$11.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
STANFORDTOPGRADES Stanford University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
56
Lid sinds
1 jaar
Aantal volgers
2
Documenten
7115
Laatst verkocht
3 dagen geleden
TOPSELLER

Hi there! I'm dedicated to sharing my high-quality study guides and helpful EXAM Materials to make your learning easier and more efficient. All my materials are well-organized and tailored to help you ace your courses. I offer genuine and dependable exam papers that are directly obtained from well-known, reputable institutions as a highly regarded professional who specializes in sourcing study materials. Kindly don't hesitate to contact me, my study guides, notes and exams or test banks, are 100% graded and fully guaranteed

Lees meer Lees minder
3.8

8 beoordelingen

5
3
4
1
3
3
2
1
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen