Linux Programming Interface: Chapter 2

Descrição

Chapter 2 quiz of Linux Programming Interface
Jon Schipp
Quiz por Jon Schipp, atualizado more than 1 year ago
Jon Schipp
Criado por Jon Schipp aproximadamente 9 anos atrás
35
0

Resumo de Recurso

Questão 1

Questão
Preemptive means the rules governing which processes receive the CPU and for how long is determined by?
Responda
  • Process
  • Process scheduler
  • Kernel
  • Tickless clock

Questão 2

Questão
When running in kernel mode, the CPU can access both user and kernel memory space.
Responda
  • True
  • False

Questão 3

Questão
A [blank_start]________[blank_end] link is the name for a symbolic link which references a file that doesn't exist
Responda
  • dangling

Questão 4

Questão
The SUSv3 specified portable filename character set has how many characters?
Responda
  • 65
  • 64
  • 96
  • 95

Questão 5

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

Questão 6

Questão
An execve() call destroys the existing memory segments of the process, these are?
Responda
  • text
  • data
  • stack
  • heap

Questão 7

Questão
C programs can access the environment variables of a process by what?
Responda
  • char **environ
  • char **getenv
  • char **environment
  • char **getconf

Questão 8

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

Questão 9

Questão
Resource limits set by setrlimit() are inherited by a new child process created via fork().
Responda
  • True
  • False

Questão 10

Questão
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.
Responda
  • static

Questão 11

Questão
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.
Responda
  • shared

Questão 12

Questão
Threads share the same program code and all memory segments except?
Responda
  • heap
  • code
  • stack
  • data

Questão 13

Questão
A process controlling terminal receives this signal if the terminal is disconnected (e.g. window closed)
Responda
  • SIGHUP
  • SIGTERM
  • SIGTSTP
  • SIGSTOP

Semelhante

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