100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

2025/2026 CS160 MIDTERM EXAM CURRENTLY TESTING QUESTIONS AND DETAILED CORRECT ANSWERS (VERIFED) GUARANTEED PASS ALREADY TOP-RATED A+.

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

Ace your CS160 midterm exam with this focused guide, designed to clarify core programming concepts and their practical application. This resource provides essential practice problems and clear explanations covering fundamental syntax, logic structures, and debugging techniques.

Meer zien Lees minder
Instelling
Vak











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Vak

Documentinformatie

Geüpload op
5 december 2025
Aantal pagina's
40
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

1|Page


2025/2026 CS160 MIDTERM EXAM CURRENTLY
TESTING QUESTIONS AND DETAILED CORRECT
ANSWERS (VERIFED) GUARANTEED PASS
ALREADY TOP-RATED A+.
CS160
Ace your CS160 midterm exam with this focused guide, designed to
clarify core programming concepts and their practical application. This
resource provides essential practice problems and clear explanations
covering fundamental syntax, logic structures, and debugging
techniques.



What is a process? ...... ANSWER ....... is an instance of
a running program


What type of abstractions do processes provide ......
ANSWER ....... *logical control* flow (each process
seems to have exclusive use of the cpu)


*private copy* of program state (ex: PC,Stack,general
registers, condition, codes) and virtual address space


What is multiprocessing ...... ANSWER ....... Single
Processor:
- process executions interleaved
- address spaces managed by virtual memory system

,2|Page


- register values for non executing processes saved in
memeory


MultiProcessors:
- multipul CPUs on single chip
- share main memory
- each can execute a seperate process


What is multithreading? ...... ANSWER ....... - single
process runs multipul threads concurrently
- each has own control flow and runtime state


Multithreading is a form of parallelization or dividing up
work for simultaneous processing


whats the difference between a thread and a process ......
ANSWER ....... Processes are the programs that are
programs executed on the CPU


Thread: A thread is a segment of a process which means a
process can have multipul threads. contained withing a
process

,3|Page


What is concurency? ...... ANSWER ....... When
multipul programs/threads are executing at once


What is context switching ...... ANSWER ....... when
control flow passes from one process to another


How does fork() work? ...... ANSWER ....... - creates a
new process that is identical to the calling process
- appears to create complete new copy of program state
- child and parent then execute independent processes


What does fork return ...... ANSWER ....... in the child
precess fork will return 0 and in the parent process fork
will return childs pid


How do we end a process? ...... ANSWER ....... exit(iint
status)
- exits a process, normaly returned with status 0


What is a zombie process? ...... ANSWER ....... When a
process terminates, but still consumes system resources

, 4|Page


What is the reaping? ...... ANSWER ....... - Performed
by parent on terminated child (by using wait or waitpid)
- parent is given exit status info
- Kernel discards process


How is reaping related to wait and waitpid ...... ANSWER
....... it is called in the parent in order to perform reaping


How do we get the status that shows why the child process
was terminated ...... ANSWER .......
WIFEXITED(status): returns true if the child terminated
normally


WEXITSTATUS(status): returns the exit status of the child.
This macro should be employed only if WIFEXITED
returned true.


What is an Orphan process ...... ANSWER ....... - A
child process that is still active even though parent has
terminated
- this process must be killed explicitly or else it will keep
running indefinitely
€19,12
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
AGradeServers
4,5
(2)

Maak kennis met de verkoper

Seller avatar
AGradeServers chamberlain university
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2
Lid sinds
3 maanden
Aantal volgers
0
Documenten
730
Laatst verkocht
2 maanden geleden
AGradeServers

Welcome to AGradeServers, your trusted source for top-quality study materials. We provide well-structured notes, guides, and resources designed to help you achieve excellent results. Each document is carefully prepared to be clear, concise, and exam-focused. Whether you’re preparing for tests, assignments, or final exams, we’ve got you covered. At AGradeServers, our mission is simple—helping you succeed with confidence.

4,5

2 beoordelingen

5
1
4
1
3
0
2
0
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

Veelgestelde vragen