Jon Schipp
Quiz por , criado more than 1 year ago

Chapter 2 quiz of Linux Programming Interface

18
0
0
Jon Schipp
Criado por Jon Schipp mais de 8 anos atrás
Fechar

Linux Programming Interface: Chapter 2

Questão 1 de 13

1

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

Selecione uma das seguintes:

  • Process

  • Process scheduler

  • Kernel

  • Tickless clock

Explicação

Questão 2 de 13

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 3 de 13

1

Preencha o espaço em branco para completar o texto.

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

Explicação

Questão 4 de 13

1

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

Selecione uma das seguintes:

  • 65

  • 64

  • 96

  • 95

Explicação

Questão 5 de 13

1

Preencha o espaço em branco para completar o texto.

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

Explicação

Questão 6 de 13

1

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

Selecione uma ou mais das seguintes:

  • text

  • data

  • stack

  • heap

Explicação

Questão 7 de 13

1

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

Selecione uma das seguintes:

  • char **environ

  • char **getenv

  • char **environment

  • char **getconf

Explicação

Questão 8 de 13

1

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

Selecione uma ou mais das seguintes:

  • New program inherits environment of the old program

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

Explicação

Questão 9 de 13

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 10 de 13

1

Preencha o espaço em branco para completar o texto.

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

Explicação

Questão 11 de 13

1

Preencha o espaço em branco para completar o texto.

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.

Explicação

Questão 12 de 13

1

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

Selecione uma ou mais das seguintes:

  • heap

  • code

  • stack

  • data

Explicação

Questão 13 de 13

1

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

Selecione uma ou mais das seguintes:

  • SIGHUP

  • SIGTERM

  • SIGTSTP

  • SIGSTOP

Explicação