Linux Programming Interface: Chapter 2

Question 1 of 13

Medal-premium 1

Preemptive means the rules governing which processes receive the CPU and for how long is determined by?

Select one of the following:

  • Process

  • Process scheduler

  • Kernel

  • Tickless clock

Question 2 of 13

Medal-premium 1

When running in kernel mode, the CPU can access both user and kernel memory space.

Select one of the following:

  • True
  • False

Question 3 of 13

Medal-premium 1

Fill the blank space to complete the text.

A link is the name for a symbolic link which references a file that doesn't exist

Question 4 of 13

Medal-premium 1

The SUSv3 specified portable filename character set has how many characters?

Select one of the following:

  • 65

  • 64

  • 96

  • 95

Question 5 of 13

Medal-premium 1

Fill the blank space to complete the text.

It's recommended that a filename should not contain the character because it may be mistaken for command options.

Question 6 of 13

Medal-premium 1

An execve() call destroys the existing memory segments of the process, these are?

Select one or more of the following:

  • text

  • data

  • stack

  • heap

Question 7 of 13

Medal-premium 1

C programs can access the environment variables of a process by what?

Select one of the following:

  • char **environ

  • char **getenv

  • char **environment

  • char **getconf

Question 8 of 13

Medal-premium 1

What are the outcomes of inheriting the environment after an exec() family of calls?

Select one or more of the following:

  • New program inherits environment of the old program

  • New program gets new environment specified as part of exec() call

Question 9 of 13

Medal-premium 1

Resource limits set by setrlimit() are inherited by a new child process created via fork().

Select one of the following:

  • True
  • False

Question 10 of 13

Medal-premium 1

Fill the blank space to complete the text.

The type of linking where the linker extracts the required objects from modules and copies these into the resulting executable is called linking.

Question 11 of 13

Medal-premium 1

Fill the blank space to complete the text.

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 linking.

Question 12 of 13

Medal-premium 1

Threads share the same program code and all memory segments except?

Select one or more of the following:

  • heap

  • code

  • stack

  • data

Question 13 of 13

Medal-premium 1

A process controlling terminal receives this signal if the terminal is disconnected (e.g. window closed)

Select one or more of the following:

  • SIGHUP

  • SIGTERM

  • SIGTSTP

  • SIGSTOP

Icon_fullscreen

Linux Programming Interface: Chapter 2

Jon Schipp
Quiz by , created about 1 year ago

Chapter 2 quiz of Linux Programming Interface

Eye 6
Pin 0
Balloon-left 0
Jon Schipp
Created by Jon Schipp about 1 year ago
Close