General Knowledge Quiz
10 Questions
19 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following statements are correct?

  • a. Parallel execution is possible on a single processor.
  • b. Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once. (correct)
  • c. Concurrent execution and parallel execution can be combined. (correct)
  • d. Concurrent execution is possible on a single processor. (correct)
  • Which of the following statements are true?

  • a. A kernel has to exploit concurrency in order to be efficient.
  • b. A hardware trap caused by dereferencing an invalid pointer is synchronous to a running process. (correct)
  • c. A software interrupt generated by a terminal program on user request is asynchronous to a running process. A system call is asynchronous to a running process.
  • e. The kernel handles asynchronous interrupts that may not be visible by any running processes. A system call is asynchronous to a running process. (correct)
  • How is a C programmer expected to handle runtime error situations?

  • The function strerror() converts an error code into a string describing the error code. (correct)
  • b. Unhandled runtime errors lead to exceptions that are handled by the main() function if not caught elsewhere.
  • c. The function void perror(const char *s) defined in stdio.h can be used to write a message s to the standard error stream followed by a message describing the last error encountered during a call to a system or library function. e. The file descriptor of the standard output is 0 and the file descriptor of the standard error is 1. (correct)
  • d. Error messages do not belong on the standard output and should be written to the standard error.
  • Which statements are true for libraries and dynamic linking?

    <p>Dynamic libraries may be shared between multiple programs that use the same dynamic libraries.</p> Signup and view all the answers

    Which of the following statements about operating system architectures are correct?

    <p>A modular architecture simplifies the development of new kernel modules such as driverrs or filesystems.</p> Signup and view all the answers

    How do system calls and programs report runtime error conditions?

    <p>a. The global symbol errno declared in errno.h resolves to an int value indicating the error code of the last error that has occurred.</p> Signup and view all the answers

    Which of the following statements are correct?

    <p>c. The separation ensures that systems can be used in a wide range of different situations.</p> Signup and view all the answers

    Which statements are correct for standard input, output, error streams?

    <p>b. In a terminal session, the standard output and the standard error are by default both printed to the terminal.</p> Signup and view all the answers

    Which of the following functions are direct system calls?

    <p>int pause(void);</p> Signup and view all the answers

    Which of the following statements are correct?

    <p>a. A loaded kernel module executes in system mode.</p> Signup and view all the answers

    More Like This

    Engaging General Knowledge Quiz
    5 questions
    General Knowledge Trivia Quiz
    5 questions
    General Knowledge Quiz
    5 questions
    Use Quizgecko on...
    Browser
    Browser