Q681
Open questionSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
996
Questions
35/50
Page
Pick an option on a question to see the right answer and solution.
Q681
Open questionSelect an option to see the answer and solution.
Q682
Open questionSelect an option to see the answer and solution.
Q683
Open questionSelect an option to see the answer and solution.
Q684
Open questionSelect an option to see the answer and solution.
Q685
Open questionSelect an option to see the answer and solution.
Q686
Open questionSelect an option to see the answer and solution.
Q687
Open questionstr1=”45678\n”
str2=”123\n”
f1 = fopen(file1,RDWR,RWX)
f2 = fopen(file1,RDWR,RWX)
write(f1,str1,len_str1)
write(f2,str2,len_str2)
o/p:Select an option to see the answer and solution.
Q688
Open questionSelect an option to see the answer and solution.
Q689
Open questionSelect an option to see the answer and solution.
Q690
Open questionSelect an option to see the answer and solution.
Q691
Open questionSelect an option to see the answer and solution.
Q692
Open questionSelect an option to see the answer and solution.
Q693
Open questionSelect an option to see the answer and solution.
Q694
Open question$ grep –c “^echo” abcSelect an option to see the answer and solution.
Q695
Open questionvoid 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;
}Select an option to see the answer and solution.
Q696
Open questionSelect an option to see the answer and solution.
Q697
Open question#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;
}
}Select an option to see the answer and solution.
Q698
Open questionSelect an option to see the answer and solution.
Q699
Open questionSelect an option to see the answer and solution.
Q700
Open question#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
ptr = (int*)malloc(sizeof(int)*4);
ptr = realloc(ptr,sizeof(int)*2);
return 0;
}Select an option to see the answer and solution.