Linux Debugging Questions & Answers – dup, fcntl, lseek and read System Calls

This set of Linux Debugging questions and answers focuses on dup, fcnlt, lseek and read System Calls. 1. What is the output of this program? #include<stdio.h> #include<fcntl.h>  int main() { pid_t fd; char ch; int count; fd = open("san.c",O_RDONLY); do{ count = read(fd,&ch,1); printf("%c",ch); }while(count); return 0; } a) it will print nothing b) it … Read more

advertisement

Tricky and Buggy Questions & Answers on malloc, calloc, free and realloc Calls – 2

This set of Tricky and Buggy questions and answers focuses on malloc, calloc, free and realloc Calls. 1. What is the output of this program? #include<stdio.h>  int main() { int *ptr; ptr = (int *)calloc(1,sizeof(int)); *ptr = 10; printf("%d\n",*ptr); return 0; } a) 0 b) -1 c) 10 d) none of the mentioned 2. What … Read more

advertisement

Linux Debugging Questions & Answers on malloc, calloc, free and realloc Calls – 1

This set of Linux Debugging questions and answers focuses on malloc, calloc, free and realloc Calls. 1. This program will allocate the memory of ___ bytes for pointer “ptr”. #include<stdio.h> #include<stdlib.h>  int main() { int *ptr; ptr = realloc(0,sizeof(int)*10); return 0; } a) 0 b) 10 c) 40 d) none of the mentioned 2. What … Read more

advertisement

Linux Interview Questions and Answers – Linux Systems

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. 1. UNIX/Linux kernel is? a) Monolithic b) Micro c) Exo d) Nano 2. Monolithic kernel a) is highly … Read more

advertisement

Linux Interview Questions and Answers – IPC – 2

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. 1. Command used to check shared memory is a) ipcs b) ipcs -m c) ipcs -s d) ipcs … Read more

advertisement

Linux Interview Questions and Answers – IPC – 1

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. 1. Which is true regarding pipes? a) half duplex b) full duplex c) message boundaries are preserved d) … Read more

advertisement

Linux Interview Questions and Answers – Signal Handling

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. 1. If a signal is received by a process, when will it be processed? a) It is processed … Read more

advertisement

Linux Interview Questions and Answers – File Management 2

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. 1. Given a code snippet below? #define PERMS (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | … Read more

advertisement

Linux Interview Questions and Answers – File Management 1

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. 1. Each process has unique a) fd table b) file table c) inode table d) data block table … Read more

advertisement

Linux Interview Questions and Answers – Memory Management

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. 1. On x86-32 Linux, at which address the code segment of the program starts? a) 0x00000000 b) 0x08048000 … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.