Linux Programming Interface: Chapter 2

Description

Chapter 2 quiz of Linux Programming Interface
Jon Schipp
Quiz by Jon Schipp, updated more than 1 year ago
Jon Schipp
Created by Jon Schipp over 8 years ago
18
0

Resource summary

Question 1

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

Question 2

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

Question 3

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

Question 4

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

Question 5

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

Question 6

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

Question 7

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

Question 8

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

Question 9

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

Question 10

Question
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.
Answer
  • static

Question 11

Question
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.
Answer
  • shared

Question 12

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

Question 13

Question
A process controlling terminal receives this signal if the terminal is disconnected (e.g. window closed)
Answer
  • SIGHUP
  • SIGTERM
  • SIGTSTP
  • SIGSTOP
Show full summary Hide full summary

Similar

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