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
c) 0x80000000
d) 0xbfff0000
View Answer

Answer: b
Explanation: None.

2. On x86-32 Linux, at which address the user stack resides normally?
a) 0x00000000
b) 0x3fff0000
c) 0x7fff0000
d) 0xbfff0000
View Answer

Answer: d
Explanation: None.

3. A system has 512MB of physical memory. Which among the following is not a suitable virtual memory size for this system architecture?
a) 512MB
b) 256M
c) 4GB
d) None of the mentioned
View Answer

Answer: d
Explanation: None.

4. LRU stands for
a) Last received Unit
b) Least recently Used
c) Least recently usable
d) Lost Recoverd unit
View Answer

Answer: b
Explanation: None.
advertisement
advertisement

5. Mm_struct maintains?
a) memory files
b) open files
c) pipe
d) active memory regions
View Answer

Answer: d
Explanation: None.

6. Which sytem call can be used by a user process to lock a memory so that it cannot be swapped out?
a) memory files()
b) memlock()
c) pipe()
d) active memory regions
View Answer

Answer: b
Explanation: None.

7. Is page table per process entity?
a) Yes
b) No
View Answer

Answer: a
Explanation: None.

8. Among these files which has an ELF format
a) shared objects
b) core
c) executables
d) all of the mentioned
View Answer

Answer: d
Explanation: None.
advertisement

9. What is the use of strace command?
a) strace can be used to check the system calls called by the program. So, this can be used for debugging and benchmarking purposes
b) strace cannot be used to check the system calls called by the program
c) all of the mentioned
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

10. If one of the thread in multithreaded process is blocked on an I/O, which of the following is true?
a) The entire process with block if their is no kernel supported threads
b) Other threads of the process will continue to execute even if there is no kernel supported threads
c) It depends on specific implementatation
d) All of the mentioned
View Answer

Answer: a
Explanation: None.
advertisement

11. Which one can be a real time schedule policy?
a) SCHED_FIFO
b) SCHED_SPF
c) SCHED_OTHER
d) SCHED_FILO
View Answer

Answer: a
Explanation: None.

12. In Linux kernel-2.6 Real time priority ranges from
a) 0 to 99
b) 0 to 139
c) -20 to 19
d) 100 to 139
View Answer

Answer: a
Explanation: None.

13. Solaris real time class priority is
a) 0-59
b) 60-99
c) 100-159
d) 160-169
View Answer

Answer: c
Explanation: None.

14. Solaris System class priority is
a) 0-59
b) 60-99
c) 100-159
d) 160-169
View Answer

Answer: b
Explanation: None.

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

Learn detailed answer of these interview questions and an in-depth coverage on Linux Systems Programming by our popular training program titled Linux Systems Programming delivered by our Founder & CTO.

Read here to know more about the skills required to become a Linux Systems Developer.

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux. These questions focuses on Process Management, Memory Management, File Management, Inter Process Communications, Signal Handling, etc.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
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.