logo

Crowdly

Browser

Add to Chrome

Questions Bank (1232409 total)

Considérez le code suivant : ( https://onlinegdb.com/B1kz-RzeO)

int main() {

    int fd[2];  pipe(fd);

    if (fork() == 0) {

               dup2(fd[1],1);

               close(fd[1]); close(fd[0]);

               execlp("ls", "ls", NULL);        

      }

        close(fd[1]); char c;

        while(read(fd[0],&c,1)>0) write(1,&c,1);  

        close(fd[0]);

        wait(NULL);

       _exit(0);

}

Sélectionnez les énoncés corrects.

0%
0%
0%
View this question

Si un processus exécute

cette instruction « dup2(fd=open(“fich”,O_WRONLY),1); » alors

0%
0%
0%
View this question

Considérez

la commande « ls

| sort > data ».

La sortie erreur STDERR du processus exécutant « ls » 

est :

0%
0%
0%
0%
View this question

Quels sont les énoncés vrais pour les tubes de communication ?

0%
0%
0%
View this question

Determine o limite das seguintes sucessões.

View this question

Sejam , , e sucessões tais que

Selecione todas as afirmações verdadeiras.

0%
0%
0%
100%
100%
100%
View this question
Which of the following statements is incorrect?
View this question
Which of the following types of PPE do not belong to Category III?
View this question
Which of the following continuations of this statement is incorrect? “PPE must be worn only when the associated risks cannot be eliminated or sufficiently reduced by means of”:
View this question
Disposable gloves to protect against biological or chemical risks often fail. What do you do if this happens?
0%
0%
0%
0%
View this question