81. What does the following command do?
who | wc –l
who | wc –l
82. What is the output of this program?
#include<stdio.h>
#include<stdlib.h>
int main()
{
char *ptr;
free(ptr);
return 0
}
#include<stdio.h>
#include<stdlib.h>
int main()
{
char *ptr;
free(ptr);
return 0
}
83. What is the output of this program?
#! /usr/bin/awk -f
BEGIN {
a=5
while (a<5) {
print "example"
a++;
}
}
#! /usr/bin/awk -f
BEGIN {
a=5
while (a<5) {
print "example"
a++;
}
}
84. Which one of the following is a read-write semaphore in linux that protects all ksets and kobjects included in the filesystem?
85. What is the output of this program?
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
*ptr = 10;
*ptr = 20;
printf("%d\n",*ptr);
return 0;
}
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *ptr;
*ptr = 10;
*ptr = 20;
printf("%d\n",*ptr);
return 0;
}
86. The command "awk '{if ("9">"10") print "demo" else print "linux"}'"
87. Which statement instructs gawk to stop processing the current data file?
88. sed is a command typically used for
89. The soft link will increase the link counter of the file.(T/F)
90. The 'mapfile' command
Read More Section(Linux)
Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.