In this section of Operating System Main Memory – Memory Management.it contain Operating System Main Memory – Memory Allocation MCQs (Multiple Choice Questions Answers).All the MCQs (Multiple Choice Question Answers) requires in detail reading of Operating System subject as the hardness level of MCQs have been kept to advance level.
This MCQs section is mainly focused on below lists of topics

  1. Managing Memory hierarchy.
  2. Static and Dynamic Memory Allocation.
    1. Static Binding
    2. Dynamic Binding
  3. Execution of programs.
    1. Compilation or assembly
    2. Linking
    3. Relocation
    4. Static and Dynamic relocation of program
  4. Linking
    1. static and Dynamic Linking
    2. Self relocating program
    3. Reentrant Programs

PRACTICE IT NOW TO SHARPEN YOUR CONCEPT AND KNOWLEDGE

view hide answers

1. Memory allocation and deallocation can be managed by________

  • CPU
  • MMU
  • GPR
  • None of the above

2. Which of the below factor considered the most in management of memory

  • Efficient use of memory
  • speedy allocation of memory
  • speedy deallocation of memory
  • All of the above

3. Which of the following statements stands true for Static memory allocation.
  1. Static memory allocated can be performed by a compiler,linker or loader.
  2. Static memory allocation to a process is possible only if size of its data structures are known before its execution begins.
  3. static memory allocation is performed in a lazy manner during execution of program.
  4. static memory is allocated to a function or a variable just before its is used for the first time.

  • 1,2
  • 2,3
  • 3,4
  • 1,4

4. Which of the following statements stands true for Dynamic memory allocation.
  1. Dynamic memory allocated can be performed by a compiler,linker or loader.
  2. Dynamic memory allocation to a process is possible only if size of its data structures are known before its execution begins.
  3. Dynamic memory allocation is performed in a lazy manner during execution of program.
  4. Dynamic memory is allocated to a function or a variable just before its is used for the first time.

  • 1,2
  • 2,3
  • 3,4
  • 1,4

5. In which of the following memory allocation memory is wasted if we overestimate the its size or process may not operate correctly if we underestimate its size

  • Dynamic memory allocation
  • Static memory allocation
  • contiguous memory allocation
  • None-Contiguous memory allocation

6. ______memory allocation avoid problems of wastage of memory and  the problems of underestimating the memory size

  • Dynamic memory allocation
  • Static memory allocation
  • contiguous memory allocation
  • None-Contiguous memory allocation

7. __________memory allocation incurs the overhead of memory allocation actions performed during operation of a process.

  • Dynamic
  • Static
  • contiguous
  • None-Contiguous

8. ___ is generally called a translator

  • loader
  • Linker
  • Compiler or Assembler
  • re-locator

9. source program is converted to machine language of the computers by_________

  • loader
  • Linker
  • relocator
  • Compiler or Assembler

10. Program P may call other programs during its execution,eg functions from mathematical libraries ,these functions should be included in the program,and their start address should be used in the function call instruction in P. This Procedure is called __________

  • loading
  • Linking
  • Compiling or Assembling
  • relocation

11. some object module merged with program P may have conflicting translated time address.This conflict is resolved by changing the memory binding of the object modules;this action is called______

  • linking of object module
  • loading of object module
  • Relocation of object module
  • compiling of object module

12. The relocation and linking functions are performed by program called______

  • compiler
  • linker
  • loader
  • relocator

13. A Binary program has to be loaded in memory for execution.This function is performed by the __________

  • compiler
  • linker
  • loader
  • relocator

14. Which of the following statements stands TRUE for Static Relocation of programs?
  1. static relocation is performed before execution of the programs begins.
  2. static relocation is performed during execution of the programs .
  3. static relocation can be performed by suspending a program's execution,carrying out the relocation procedures and then resuming its execution.
  4. it would require information concerning the translated origin and address sensitive instructions to be available during the program execution.

  • 1
  • 1,2
  • 1,2,3
  • 1,2,3,4

15. Which of the following statements stands TRUE for Dynamic Relocation of programs
  1. Dynamic relocation is performed before execution of the programs begins.
  2. Dynamic relocation is performed during execution of the programs .
  3. Dynamic relocation can be performed by suspending a program's execution,carrying out the relocation procedures and then resuming its execution.
  4. it would require information concerning the translated origin and address sensitive instructions to be available during the program execution.

  • 1
  • 1,2
  • 2,3
  • 2,3,4

16. some computer architecture provide a __________ to simplify dynamic relocation.

  • Base Register
  • special register
  • Relocation register
  • PSW-Program Status word
  • 1 only
  • 1,2 only
  • 1,3 only
  • 4

18. Which of the following statements stands true for Dynamic linking?
  1. linking is performed during execution of a binary program.
  2. if the module referenced by the program has already been linked to another program that is execution,the same copy of the module could be linked to this program as well,thus saving the memory
  3. it produce binary program that does not contain any unresolved external references.
  4. All of the above

  • 1 only
  • 1,2 only
  • 1,3 only
  • 4

19. _____contains instructions and data of a program and information required for its relocation and linking.

  • reentrant program
  • object module
  • Binary Program
  • self-relocating program

20. ______ is ready to execute form of a program

  • reentrant program
  • object module
  • Binary Program
  • self-relocating program

21. In ________ linking is performed in a lazy manners,ie an object module defining a symbol is linked to a program only when that symbol is referenced during the program's execution.

  • Dynamically linked program
  • Object module
  • Binary Program
  • self-relocating program

22. _______ can relocate itself to execute in any area of memory

  • Dynamically linked program
  • Reentrant program
  • Binary Program
  • self-relocating program

23. ______ can be executed on several sets of data concurrently.

  • Dynamically linked program
  • Reentrant program
  • Binary Program
  • self-relocating program
Share with : Share on Linkedin Share on Twitter Share on WhatsApp Share on Facebook