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

17/50

Page

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

The name pointer of the attribute data structure represents the . . . . . . . . in sysfs.

Select an option to see the answer and solution.

Return value of fork() system call can be:

Select an option to see the answer and solution.

In linux shared libraries has the extension of

Select an option to see the answer and solution.

If we compile the example.c file with the command "gcc -o example example.c", then the executable file will be

Select an option to see the answer and solution.

Which file is read by init to get the default runlevel

Select an option to see the answer and solution.

Which of the following statement is true?

Select an option to see the answer and solution.

Parent process id of a deamon process is . . . . . . . .

Select an option to see the answer and solution.

Which command is used to extract intermediate result in a pipeline

Select an option to see the answer and solution.

When real interval timer expires which signal is generated?

Select an option to see the answer and solution.

namei() is

Select an option to see the answer and solution.

Which GDB command prints the value of a variable in hex.

Select an option to see the answer and solution.

The file /proc/[PID]/cmdline holds the complete command line for the process, unless the process is a

Select an option to see the answer and solution.

User id 0 is

Select an option to see the answer and solution.

What is the output of this progarm?
#include<stdio.h>
#include<unistd.h>
 
int main()
{
    pid_t child;
    int a, b;
    a = 10;
    b = 20;
    child = fork();
    a = a + b;
    if(child > 0){
        printf("%d\n",a);
    } 
    return 0;
}

Select an option to see the answer and solution.

Which of the following is not a valid file type on Linux

Select an option to see the answer and solution.

What is the output of this program?
#! /usr/bin/awk -f
BEGIN {
    var1="example"
    var2="linux"
    print var1" provides "var2" MCQs "	      
}

Select an option to see the answer and solution.

To redefine a variable, it can be removed from the list of variables by using the command

Select an option to see the answer and solution.

The built-in function tolower()

Select an option to see the answer and solution.

Which compilation step makes sure that all the undefined symbols in the code are resolved.

Select an option to see the answer and solution.

Macros for the makefile can be defined in

Select an option to see the answer and solution.