Linux Programming Interface: Chapter 2

Beschreibung

Chapter 2 quiz of Linux Programming Interface
Jon Schipp
Quiz von Jon Schipp, aktualisiert more than 1 year ago
Jon Schipp
Erstellt von Jon Schipp vor etwa 9 Jahre
40
0

Zusammenfassung der Ressource

Frage 1

Frage
Preemptive means the rules governing which processes receive the CPU and for how long is determined by?
Antworten
  • Process
  • Process scheduler
  • Kernel
  • Tickless clock

Frage 2

Frage
When running in kernel mode, the CPU can access both user and kernel memory space.
Antworten
  • True
  • False

Frage 3

Frage
A [blank_start]________[blank_end] link is the name for a symbolic link which references a file that doesn't exist
Antworten
  • dangling

Frage 4

Frage
The SUSv3 specified portable filename character set has how many characters?
Antworten
  • 65
  • 64
  • 96
  • 95

Frage 5

Frage
It's recommended that a filename should not contain the [blank_start]_[blank_end] character because it may be mistaken for command options.
Antworten
  • -

Frage 6

Frage
An execve() call destroys the existing memory segments of the process, these are?
Antworten
  • text
  • data
  • stack
  • heap

Frage 7

Frage
C programs can access the environment variables of a process by what?
Antworten
  • char **environ
  • char **getenv
  • char **environment
  • char **getconf

Frage 8

Frage
What are the outcomes of inheriting the environment after an exec() family of calls?
Antworten
  • New program inherits environment of the old program
  • New program gets new environment specified as part of exec() call

Frage 9

Frage
Resource limits set by setrlimit() are inherited by a new child process created via fork().
Antworten
  • True
  • False

Frage 10

Frage
The type of linking where the linker extracts the required objects from modules and copies these into the resulting executable is called [blank_start]______[blank_end] linking.
Antworten
  • static

Frage 11

Frage
The type of linking where the linker writes a record into the resulting executable to indicate that at run time the executable needs a library is called [blank_start]______[blank_end] linking.
Antworten
  • shared

Frage 12

Frage
Threads share the same program code and all memory segments except?
Antworten
  • heap
  • code
  • stack
  • data

Frage 13

Frage
A process controlling terminal receives this signal if the terminal is disconnected (e.g. window closed)
Antworten
  • SIGHUP
  • SIGTERM
  • SIGTSTP
  • SIGSTOP
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr