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 354-FINAL EXAM QUESTIONS WITH 100% SOLVED SOLUTIONS!!

Beoordeling
-
Verkocht
-
Pagina's
77
Cijfer
A+
Geüpload op
12-05-2025
Geschreven in
2024/2025

CS 354-FINAL EXAM QUESTIONS WITH 100% SOLVED SOLUTIONS!!

Instelling
CS 354
Vak
CS 354

Voorbeeld van de inhoud

CS 354-FINAL EXAM QUESTIONS WITH
100% SOLVED SOLUTIONS!!




1 of
83
Ter
m


What are two common types of system calls?



Give this one a try
later!



File I/O
Source and destination sizes
Creating/Terminating
don't match
new processes

, A file that contains binary The variables/functions that need
code (instructions) and DATA to be resolved/relocated.
Don't know?




2 of 83

Term


Static functions are essentially private functions, so why do
they need linker symbols?


Give this one a try later!



Enables process to interact
with OS No, this is a struct, not a union!
Returns to Inext



Short answer:
Address of &myArray[3][4][5] May not need resolution,
= 0+ 4*[3*10*15 + 4*15 + 5] but may still need
relocation
=2060


Don't know?




3 of 83

Term


int func(int val);
int x = 34;
int main()
{ int y;

, y = func(x);
return 0;
}

Where can the value of variable x be found?
How about the symbol for variable x?


Give this one a try later!




Corresponds to sum = sum + n These are both globals, so bss or
Does not correspond to sum data
+= n arr is uninitialized, so bss
p is initialized, so data



Value: Global, so data
or bss, initialized so %ax isn't valid, memory address
data Symbol: Symtab needs to be 4 bytes, not 2


Don't know?




4 of 83

Term


What does .rel.text and .rel.data contain?


Give this one a try later!



Translates assembler to machine code (ROF)
shared and readable object files

, 1. Put the service number (what specific system call we're doing) in %EAX
2. Put the system call arguments in the remaining registers
3. Run int $0x80, this runs the exception x80 or exception 120 which
is the system call



Code/data that ,when moved to a place, need to be updated (maybe
cause have address offsets which need to be updated when relocated
during linking)



1. Shell creates a child process (duplicate of shell parent process to
be edited)
2. Child process invokes loader
3. Loader creates a new runtime image
4. Loader jumps to first address(


Don't know?




5 of 83

Term


What's a processor mode?
There are 2 modes, what are they?


Give this one a try later!



Different privilege levels
a process can run at
1=Kernel/Supervisor (no %ax isn't valid, memory
restrictions) address needs to be 4 bytes,
not 2
0=User (restricted)

Geschreven voor

Instelling
CS 354
Vak
CS 354

Documentinformatie

Geüpload op
12 mei 2025
Aantal pagina's
77
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$39.49
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.
EvaTee Phoenix University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
5309
Lid sinds
4 jaar
Aantal volgers
3571
Documenten
57150
Laatst verkocht
2 uur geleden
TIGHT DEADLINE? I CAN HELP

Many students don\'t have the time to work on their academic papers due to balancing with other responsibilities, for example, part-time work. I can relate. kindly don\'t hesitate to contact me, my study guides, notes and exams or test banks, are 100% graded

3.8

967 beoordelingen

5
461
4
169
3
177
2
48
1
112

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