Ayúdanos a dar forma a GoConqr. ¿Qué deberíamos añadir?

Test

Week 8 - Quiz 2

hassy saade 20 preguntas

Hacer el test

Preguntas del test (20)

  1. 1[Process2] Signals provide a way of handling ___ events
    1. Adeadlocked
    2. Bracing
    3. Casynchronous
    4. Dsynchronous
    5. Eidle-process
  2. 2
    [Process2] A file ___ is normally small non-negative integer that the kernel uses to identify the files accessed by a process.
    1. Abuffer
    2. Btable
    3. Cdescriptor
    4. Di-node
    5. Eentry
  3. 3[Process2] When a process calls this API call (or one of these API calls), that process is completely replaced by the new program, and the new program starts executing at its main function.

    It merely replaces the current process its text, data, heap, and stack segments with a brand-new program from disk.
    1. Afork
    2. Bexec
    3. Cpipe
    4. Ddup
    5. Esystem
  4. 4[Process2] The new file descriptor returned by dup is guaranteed to be the ___ numbered available file descriptor
    1. Alowest
    2. Bhighest
    3. Cfixed
    4. Dstack
    5. Earbitrary
  5. 5
    [Process2] Given fork program as shown below, what would be the total number of processes at the end including the process running this program.

    for (i=1; i < nprocs; i++) { childpid = fork(); }

    When nprocs = 3, then the total number of processes after this code will be ____
    1. A1
    2. B2
    3. C4
    4. D8
    5. E16
  6. 6[Process2] The new process created by fork is called the child process. This function is called once but returns ___.
    1. Anone
    2. Bonce
    3. Ctwice
    4. Dthree times
    5. Eas many as needed
  7. 7
    [Process2] After fork, the return value for the child is ___
    1. A-1
    2. B0
    3. C+1
    4. Da new process ID for the child process
    5. Ethe process id of the parent process
  8. 8
    [Process2] ___ is a type of file that points to another file.
    1. Asymbolic link
    2. Bdirectory file
    3. CFIFO
    4. Dpipe
    5. Edupe
  9. 9[Process2] This instruction ___ takes two (file descriptor) arguments, to duplicate the first one (file descriptor) to be set for the second one.
    1. Ahidden
    2. Bdup
    3. Cdup2
    4. Dfd
    5. Epipe
  10. 10
    [Process2] Including the initial parent process, the total number of the processes (in total) will be ____ after executing the code segment below.

    if (fork()) fork();
    1. A1
    2. B2
    3. C3
    4. D4
    5. E0

Información

Descripción
test 2 UNIX Test sobre Week 8 - Quiz 2, creado por hassy saade el 17/10/2018.
Idioma
English
Visitas
31
Etiquetas
unixtest 2
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?