Linux syscalls

Linux syscalls

University

10 Qs

quiz-placeholder

Similar activities

Round 3

Round 3

University

11 Qs

Quizz : RGPD et notion clés

Quizz : RGPD et notion clés

University

14 Qs

Archivos en JAVA

Archivos en JAVA

University

12 Qs

PreTest PBO2

PreTest PBO2

University

10 Qs

RESGUARDO 1

RESGUARDO 1

University

9 Qs

C PROGRAMMING

C PROGRAMMING

University

15 Qs

RDX Introduction & Visual Merchandising Guide

RDX Introduction & Visual Merchandising Guide

University

10 Qs

Quizz sur l'inventaire CAP

Quizz sur l'inventaire CAP

2nd Grade - University

10 Qs

Linux syscalls

Linux syscalls

Assessment

Quiz

Other

University

Hard

Created by

Amélie Bertin

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?