ExamVeda
Login
Home
31
Which one of the following file contains the environment for the process?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
32
An awk program can be run by
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
33
The file /proc/modules is a text list of
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
34
What is the output of this program?
#include<stdio.h>
#include<fcntl.h>
#include<sys/stat.h>
#include<semaphore.h>
 
int main()
{
    sem_t* sem_id;
    int value;
    sem_id = sem_open("new_13",O_CREAT,0666,3);
    if(sem_id == SEM_FAILED)
        perror("sem_open");
    sem_wait(sem_id);
    sem_wait(sem_id);
    sem_wait(sem_id);
    sem_wait(sem_id);
    sem_post(sem_id);
    sem_post(sem_id);
    sem_getvalue(sem_id,&value);
    printf("%d\n",value);
    if(sem_close(sem_id) == -1)
        perror("sem_close");
    return 0;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
35
Which command executes 'command' in place of the current process instead of creating a new process?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
36
Which gcc option turns off certain features of gcc that are incompatible with ISO C89?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
37
What control character signals the end of the input file?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
38
The file fs/sysfs/sysfs.h contains the
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
39
Which command gives the first byte where the difference is in the file1 & file2?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
40
The break statement
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board