ExamVeda
Login
Home
91
The library contains the
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
92
In GDB breakpoints can be skipped by the command
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
93
What is the meaning of $ sign in awk programming?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
94
What will be printed for the command below?
$ grep –c “^echo” abc
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
95
What is the output of the below code?
void sig_handler ( int signum) {
    printf(“Handled the signal\n”);
}
 
int main() {
    int pid;
    signal (SIGKILL, sig_handler);
    pid = fork();
    if (pid==0) {
        kill(getppid(), SIGKILL);
        exit(0);
    } else {
        sleep(20);
    }
    return 0;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
96
Which option of the gcc is used to warn is padding is included in structure?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
97
What is the output of this program?
#include<stdio.h>
#include<signal.h>
 
void response (int);
void response (int sig_no)
{
    printf("%s\n",sys_siglist[sig_no]);
}
int main()
{
    pid_t child;
    int status;
    child = fork();        
    switch(child){
        case -1:
            perror("fork");
        case 0:
            break;               
        default :
            signal(SIGCHLD,response);
            wait(&status);
            break;
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
98
Fork returns . . . . . . . . to parent process on success
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
99
cmd 2>&1 > abc will
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
100
This program will allocate the memory of . . . . . . . . bytes for pointer "ptr".
#include<stdio.h>
#include<stdlib.h>
 
int main()
{
    int *ptr;
    ptr = (int*)malloc(sizeof(int)*4);
    ptr = realloc(ptr,sizeof(int)*2);
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board