Jon Schipp
Quiz by , created more than 1 year ago

Chapter 2 quiz of Linux Programming Interface

35
0
0
Jon Schipp
Created by Jon Schipp about 9 years ago
Close

Linux Programming Interface: Chapter 2

Question 1 of 13

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

Explanation

Question 2 of 13

1

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

Select one of the following:

  • True
  • False

Explanation

Question 3 of 13

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

Explanation

Question 4 of 13

1

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

Select one of the following:

  • 65

  • 64

  • 96

  • 95

Explanation

Question 5 of 13

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.

Explanation

Question 6 of 13

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

Explanation

Question 7 of 13

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

Explanation

Question 8 of 13

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

Explanation

Question 9 of 13

1

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

Select one of the following:

  • True
  • False

Explanation

Question 10 of 13

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.

Explanation

Question 11 of 13

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.

Explanation

Question 12 of 13

1

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

Select one or more of the following:

  • heap

  • code

  • stack

  • data

Explanation

Question 13 of 13

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

Explanation