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
Exam (elaborations)

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

Rating
-
Sold
-
Pages
77
Grade
A+
Uploaded on
12-05-2025
Written in
2024/2025

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

Institution
CS 354
Course
CS 354

Content preview

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)

Written for

Institution
CS 354
Course
CS 354

Document information

Uploaded on
May 12, 2025
Number of pages
77
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$39.49
Get access to the full document:

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

Get to know the seller

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.
EvaTee Phoenix University
Follow You need to be logged in order to follow users or courses
Sold
5205
Member since
4 year
Number of followers
3567
Documents
55650
Last sold
6 hours ago
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

947 reviews

5
451
4
167
3
171
2
48
1
110

Recently viewed by you

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