Linux Search Pattern Interview Questions & Answers
Download PDF

Linux Search Pattern frequently Asked Questions by expert members with experience in Search Pattern. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts

45 Search Pattern Questions and Answers:

Search Pattern Interview Questions Table of Contents:

Search Pattern Job Interview Questions and Answers
Search Pattern Job Interview Questions and Answers

21 :: What are your basic skills?

Programming, browsing. and video games.

25 :: In the output of this program, the string "/* Linux */" will be added at the ____ of the source file.

#include<stdio.h>
#include<stdlib.h>
#include<fcntl.h>

int main()
{
int fd;
fd = open("san.c",O_RDWR|O_APPEND);
write(fd,"/* Linux */",11);
return 0;
}
a) end
b) beginning
c) second line
d) third line

a) end
Explanation:
The write system call writes at the end of the file because the file is opened with O_APPEND flag.
Output:
[root@localhost google]# gcc -o san san.c
[root@localhost google]# ./san
[root@localhost google]# vim san.c
[root@localhost google]#
Search Pattern Interview Questions and Answers
45 Search Pattern Interview Questions and Answers