Q401
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
21/50
Page
Pick an option on a question to see the right answer and solution.
Q401
Open questionSelect an option to see the answer and solution.
Q402
Open questionSelect an option to see the answer and solution.
Q403
Open questionSelect an option to see the answer and solution.
Q404
Open questionSelect an option to see the answer and solution.
Q405
Open questionSelect an option to see the answer and solution.
Q406
Open questionSelect an option to see the answer and solution.
Q407
Open questionSelect an option to see the answer and solution.
Q408
Open question#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/types.h>
#include<sys/ipc.h>
#include<sys/msg.h>
struct data_st{
long int id;
char buff[11];
};
int main()
{
int m_id;
struct data_st data1, data2;
m_id = msgget((key_t)181,0666|IPC_CREAT);
if(m_id == -1)
perror("msgget");
data1.id = 1;
strcpy(data1.buff,"Example");
if(msgsnd(m_id,&data1,11,0) == -1)
perror("msgsnd");
if(msgctl(m_id,IPC_RMID,0) != 0)
perror("msgctl");
if(msgrcv(m_id,&data2,11,1,0) == -1)
perror("msgrcv");
printf("%s\n",data2.buff);
return 0;
}Select an option to see the answer and solution.
Q409
Open questionSelect an option to see the answer and solution.
Q410
Open questionSelect an option to see the answer and solution.
Q411
Open questionSelect an option to see the answer and solution.
Q412
Open questionSelect an option to see the answer and solution.
Q413
Open questionSelect an option to see the answer and solution.
Q414
Open questionSelect an option to see the answer and solution.
Q415
Open question#include<stdio.h>
#include<stdlib.h>
#include<signal.h>
void response (int);
void response (int sig_no)
{
printf("%s",sys_siglist[sig_no]);
}
int main()
{
signal(SIGINT,response);
while(1){
printf("Example\n");
sleep(1);
}
return 0;
}Select an option to see the answer and solution.
Q416
Open questionSelect an option to see the answer and solution.
Q417
Open questionSelect an option to see the answer and solution.
Q418
Open questionSelect an option to see the answer and solution.
Q419
Open questionSelect an option to see the answer and solution.
Q420
Open questionSelect an option to see the answer and solution.