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)

Exam 2 CSCE 3600 Questions with Correct Answers Graded A+

Beoordeling
-
Verkocht
-
Pagina's
19
Cijfer
A+
Geüpload op
14-06-2025
Geschreven in
2024/2025

Exam 2 CSCE 3600 Questions with Correct Answers Graded A+ A socket system call returns _______for the created socket A) A file descriptor B) A process ID C) A thread ID D) A memory address - Answers A) A file descriptor A pthread_create function returns_______ for the newly created thread. A) A file descriptor B) A process ID C) A thread ID D) A memory address - Answers C) A thread ID A fork() function returns _______ for the newly created process. A) A file descriptor B) A process ID C) A thread ID D) 0 - Answers D) 0 Which of the following statements is true regarding processes and their requirements? A) A process is the same as an executing program. B) A process doesn't require any resources to accomplishits task. C) A process requires only CPU time to accomplish its task. D) A process needs certain resources, including CPU time,memory, files, and I/O devices, to accomplish its task. - Answers D) A process needs certain resources, including CPU time,memory, files, and I/O devices, to accomplish its task. True or False If there are no connection requests and the socket is not non-blocking, accept () function blocks till a connection requests comes in. - Answers True Which of the following statements is true about long-term scheduler? A) It is responsible for context switching between processes. B) It is responsible for selecting processes from memory for execution. C) It determines which programs are selected for execution from a queue of new processes. D) It is responsible for allocating memory to processes. - Answers C) It determines which programs are selected for execution from a queue of new processes. Which system call associates an address with a socket? A) bind() B) connect() C) listen() D) accept() - Answers A) bind() In a client-server networking application, which process typically creates a new child process to handle each incoming client connection? A) The client process B) The server process C) Both the client and server processes D) Neither the client nor server process - Answers B) The server process Which of the following pieces of information is shared among all threads in a single process? (A) Heap

Meer zien Lees minder
Instelling
CSCE 3600
Vak
CSCE 3600

Voorbeeld van de inhoud

Exam 2 CSCE 3600 Questions with Correct Answers Graded A+

A socket system call returns _______for the created socket



A) A file descriptor

B) A process ID

C) A thread ID

D) A memory address - Answers A) A file descriptor

A pthread_create function returns_______ for the newly created thread.



A) A file descriptor

B) A process ID

C) A thread ID

D) A memory address - Answers C) A thread ID

A fork() function returns _______ for the newly created process.



A) A file descriptor

B) A process ID

C) A thread ID

D) 0 - Answers D) 0

Which of the following statements is true regarding processes and their requirements?



A) A process is the same as an executing program.

B) A process doesn't require any resources to accomplishits task.

C) A process requires only CPU time to accomplish its task.

,D) A process needs certain resources, including CPU time,memory, files, and I/O devices, to accomplish
its task. - Answers D) A process needs certain resources, including CPU time,memory, files, and I/O
devices, to accomplish its task.

True or False

If there are no connection requests and the socket is not non-blocking, accept () function blocks till a
connection requests comes in. - Answers True

Which of the following statements is true about long-term scheduler?



A) It is responsible for context switching between processes.

B) It is responsible for selecting processes from memory for execution.

C) It determines which programs are selected for execution from a queue of new processes.

D) It is responsible for allocating memory to processes. - Answers C) It determines which programs are
selected for execution from a queue of new processes.

Which system call associates an address with a socket?



A) bind()

B) connect()

C) listen()

D) accept() - Answers A) bind()

In a client-server networking application, which process typically creates a new child process to handle
each incoming client connection?



A) The client process

B) The server process

C) Both the client and server processes

D) Neither the client nor server process - Answers B) The server process

Which of the following pieces of information is shared among all threads in a single process?

, (A) Heap

(B) Stack

(C) Program Counter (PC)

(D) None of the above. - Answers (A) Heap

A process control block should contain ________ .



(A) the process state

(B) a list of open files

(C) the contents of CPU registers

(D) all of the above - Answers D) all of the above

Context switching between processes is carried out by the________.



(A) job (long-term) scheduler

(B) CPU (short-term) scheduler

(C) interrupt handler

(D) thread manager - Answers (B) CPU (short-term) scheduler

On a typical implementation of POSIX, using read() to read one byte from a file descriptor with a call
like:read(fd, buffer, 1);where the file descriptor is opened to a file on a hard disk will:



A) cause the OS to request exactly one byte from the disk, then store thatbyte in the application's buffer

B) cause read to return an error because the hard disk can only read data inlarger blocks

C) cause the OS to request a block of data (larger than one byte) from disk and store it in the OS's
memory, then copy one byte of that into the application's buffer

D) cause the OS to request a block of data (larger than one byte) from disk,then copy the entire block
into the application's buffer - Answers C) cause the OS to request a block of data (larger than one byte)
from disk and store it in the OS's memory, then copy one byte of that into the application's buffer

Geschreven voor

Instelling
CSCE 3600
Vak
CSCE 3600

Documentinformatie

Geüpload op
14 juni 2025
Aantal pagina's
19
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$10.89
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan 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.
TutorJosh Chamberlain College Of Nursing
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
463
Lid sinds
1 jaar
Aantal volgers
16
Documenten
32275
Laatst verkocht
5 dagen geleden
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.4

74 beoordelingen

5
26
4
16
3
14
2
1
1
17

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 Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het 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