GoConqr has a new look! Let us know what you think.

Quiz

CS1550 Midterm Prep

Court Kowaluk 107 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (107)

  1. 1A Mutex is safer to use for mutual exclusion than a counting semaphore because a Mutex can only be up()’ed by the same process that down()’ed it.
    1. ATrue
    2. BFalse
  2. 2Making a system call results in a voluntary transition from user mode to kernel mode.
    1. ATrue
    2. BFalse
  3. 3A zombie process switches to the terminated state immediately after being in the waiting state.
    1. ATrue
    2. BFalse
  4. 4Assuming lock is a shared integer, initialized as lock = 0;, if two processes execute the instruction TestAndSet(&lock) in parallel at the same time on two CPU cores, both processes will get the same return value from the instruction
    1. ATrue
    2. BFalse
  5. 5A semaphore that is used to enforce mutual exclusion should be initialized to 0
    1. ATrue
    2. BFalse
  6. 6When the following program runs, the fork system call will be called exactly two times by
    each process.
    int main(){
    fork();
    fork();
    }
    1. ATrue
    2. BFalse
  7. 7Copy-on-Write is a mechanism that avoids unnecessary memory copying when fork() is immediately followed by an exec() call by the child process.
    1. ATrue
    2. BFalse
  8. 8All child processes created using fork() will eventually get adopted by the init process
    1. ATrue
    2. BFalse
  9. 9Zombie processes may waste system resources because the operating system does not completely free up their resources until their parents wait() on them or exit().
    1. ATrue
    2. BFalse
  10. 10A process that has multiple threads also has multiple stacks and multiple heaps.
    1. ATrue
    2. BFalse

Information

Description
Computer Science Quiz on CS1550 Midterm Prep, created by Court Kowaluk on 20/02/2024.
Language
English
Views
16
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?