92.
Which is the correct syntax for sed on command line?

93.
In this program
#include<stdio.h>
#include<signal.h>
#include<stdlib.h>

int main()
{
    pid_t child;
    child=fork();
    switch(child){
        case -1 :
            perror("fork");
            exit(1);
        case 0 :
            while(1){
                printf("Child Process\n");
                sleep(1);
            }
            break;              
        default :
            sleep(5);
            kill(child,SIGINT);
            printf("The child process has been killed by the parent process\n");
            break;
    }
    return 0;
}

97.
In this program the two printed memory locations has the difference of . . . . . . . . bytes.
#include<stdio.h>
#include<stdlib.h>
 
int main()
{
    int *ptr;
    ptr = (int*)malloc(sizeof(int)*2);
    printf("%p\n",ptr);
    printf("%p\n",ptr+1);
    return 0;
}

98.
What is the output of this program?
#include<stdio.h>
#include<sys/time.h>
#include<sys/resource.h>
 
int main()
{
    struct rlimit limit;
    if(getrlimit(RLIMIT_CORE,&limit) != 0)
        perror("getrlimit");
    printf("%lu\n",limit.rlim_max);
    return 0;
}

Read More Section(Linux)

Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.