Linux Interview Questions and Answers – Memory Management

1.

On x86-32 Linux, at which address the code segment of the program starts?

   A.) 0x00000000
   B.) 0x08048000
   C.) 0x80000000
   D.) 0xbfff0000

Answer: Option 'B'

0x08048000

2.

On x86-32 Linux, at which address the user stack resides normally?

   A.) 0x00000000
   B.) 0x3fff0000
   C.) 0x7fff0000
   D.) 0xbfff0000

Answer: Option 'D'

0xbfff0000

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 these

Answer: Option 'D'

None of these
 

4.

LRU stands for

   A.) Last received Unit
   B.) Least recently Used
   C.) Least recently usable
   D.) Lost Recoverd unit

Answer: Option 'B'

Least recently Used

5.

Mm_struct maintains?

   A.) memory files
   B.) open files
   C.) pipe
   D.) active memory regions

Answer: Option 'D'

active memory regions

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

Answer: Option 'B'

memlock()

7.

Among these files which has an ELF format

   A.) shared objects
   B.) core
   C.) executables
   D.) all of these

Answer: Option 'D'

all of these

8.

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 these

Answer: Option 'A'

strace can be used to check the system calls called by the program. So, this can be used for debugging and benchmarking purposes
 

9.

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 these

Answer: Option 'A'

The entire process with block if their is no kernel supported threads

10.

Which one can be a real time schedule policy?

   A.) SCHED_FIFO
   B.) SCHED_SPF
   C.) SCHED_OTHER
   D.) SCHED_FILO

Answer: Option 'A'

SCHED_FIFO


Linux Interview Questions and Answers – Memory Management Download Pdf

Recent Posts