Linux syscalls

Linux syscalls

University

10 Qs

quiz-placeholder

Similar activities

CONCEPTOS FUNDAMENTALES DE ADMINISTRACIÓN

CONCEPTOS FUNDAMENTALES DE ADMINISTRACIÓN

University

10 Qs

1. LAS NEE

1. LAS NEE

University

10 Qs

PRE-TEST BLS

PRE-TEST BLS

University

9 Qs

TIPOS DE MICROORGANISMOS

TIPOS DE MICROORGANISMOS

University

10 Qs

Marketing Internacional

Marketing Internacional

University

10 Qs

CADENA DE VALOR

CADENA DE VALOR

University

10 Qs

8: FUNCIONES JURISDICCIONALES DEL JUEZ/PRINCIPIO DE ORALIDAD

8: FUNCIONES JURISDICCIONALES DEL JUEZ/PRINCIPIO DE ORALIDAD

University

10 Qs

La aceptación y renuncia de la herencia

La aceptación y renuncia de la herencia

University

10 Qs

Linux syscalls

Linux syscalls

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Amélie Bertin

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Qu'est ce qu'un syscall ?

Une fonction qui interrompt le programme pour faire une tâche

Un appel à une fonction de l'OS

Une fonction définit dans le man 3

Une fonction définit dans le man 2

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Quel(s) mode(s) pour ouvrir un fichier avec `open` en mode lecture ?

O_RDONLY

O_WRONLY

O_RDWR

O_CREAT

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment ouvrir un fichier avec plusieurs flags ?

int fd = open(filename, O_APPEND|O_WRONLY);

int fd = open(filename, O_APPEND + O_WRONLY);

int fd = open(filename, O_APPEND, O_WRONLY);

int fd = open(filename, O_APPEND - O_WRONLY);

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment accéder au manuel d'un syscall ?

man <syscall>

man 1 <syscall>

man 2 <syscall>

man 3 <syscall>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quel syscall pour avoir la taille d'un fichier ?

stat

read

lseek

open

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int fd = open("file", O_RDONLY);

char chaine[10];
ssize_t c = read(fd, chaine, 5);

avec le contenu de file : "Oui"

Quelle sera la valeur de `c` ?

3

4

5

10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qu'est ce que retourne `write` en cas d'erreur ?

-1

0

ERROR

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?