Vidyalelo
Computer Science · all questions

Linux
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

996

Questions

34/50

Page

Pick an option on a question to see the right answer and solution.

Which statement resumes the next iteration of a for, while, select, or untill loop?

Select an option to see the answer and solution.

x86-32 uses which programming model?

Select an option to see the answer and solution.

What is sed?

Select an option to see the answer and solution.

Which one of the following operating system does not supports proc filesystem?

Select an option to see the answer and solution.

The -v option of gcc

Select an option to see the answer and solution.

Which one of the following command will print the environement of process 1?

Select an option to see the answer and solution.

Which one of the following is not true about the GDB?

Select an option to see the answer and solution.

Pid of init process

Select an option to see the answer and solution.

The file /proc/[PID]/maps contains the

Select an option to see the answer and solution.

This program will print the value
#include<stdio.h>
#include<fcntl.h>
 
int main()
{
    int rfd, wfd, count;
    char buff[11];
    if (mkfifo("/tmp/test_fifo",0666) != 0)
        perror("mkfifo");
    wfd = open("/tmp/test_fifo",O_WRONLY|O_NONBLOCK);
    count = write(wfd,"Example",11);
    printf("%d\n",count);
    rfd = open("/tmp/test_fifo",O_RDONLY|O_NONBLOCK);
    count = read(rfd,buff,11);
    return 0;
}

Select an option to see the answer and solution.

In this program the fifo "my_fifo"
#include<stdio.h>
 
int main()
{
    if (mkfifo("my_fifo",0666) != 0)
        perror("mkfifo");
    return 0;
}

Select an option to see the answer and solution.

A user executes the following command successfully:
$ chmod +x file1.txt
Which of the following is true of the output of this command?

Select an option to see the answer and solution.

What command would send the output of cmd1 to the input of cmd2?

Select an option to see the answer and solution.

The command chmod 4777 a.out

Select an option to see the answer and solution.

Each driver in the device driver model is described by a . . . . . . . . object.

Select an option to see the answer and solution.

Which GDB command reloads the debugging information?

Select an option to see the answer and solution.

In linux, the static libraries are mostly installed in

Select an option to see the answer and solution.

pwd command displays

Select an option to see the answer and solution.

What is the output of the following code:
os=Unix
echo 1.os" 3.'os

Select an option to see the answer and solution.

Sysconf(_SC_PAGE_SIZE) returns?

Select an option to see the answer and solution.