61. Which statement resumes the next iteration of a for, while, select, or untill loop?
62. x86-32 uses which programming model?
63. What is sed?
64. Which one of the following operating system does not supports proc filesystem?
65. The -v option of gcc
66. Which one of the following command will print the environement of process 1?
67. Which one of the following is not true about the GDB?
68. Pid of init process
69. The file /proc/[PID]/maps contains the
70. This program will print the value
#include<stdio.h>
#include<fcntl.h>
int main()
{
int rfd, wfd, count;
char buff[11];
if (mkfifo("/tmp/test_fifo",0666) != 0)
perror("mkfifo");
wfd = open("/tmp/test_fifo",O_WRONLY|O_NONBLOCK);
count = write(wfd,"Example",11);
printf("%d\n",count);
rfd = open("/tmp/test_fifo",O_RDONLY|O_NONBLOCK);
count = read(rfd,buff,11);
return 0;
}
#include<stdio.h>
#include<fcntl.h>
int main()
{
int rfd, wfd, count;
char buff[11];
if (mkfifo("/tmp/test_fifo",0666) != 0)
perror("mkfifo");
wfd = open("/tmp/test_fifo",O_WRONLY|O_NONBLOCK);
count = write(wfd,"Example",11);
printf("%d\n",count);
rfd = open("/tmp/test_fifo",O_RDONLY|O_NONBLOCK);
count = read(rfd,buff,11);
return 0;
}
Read More Section(Linux)
Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.