Buffer Memory MCQ Quiz – Objective Question with Answer for Buffer Memory

1. How does a buffer memory allocate its memory through the linker?

A. statically
B. dynamically
C. linearly
D. non-linearly

Answer: A

The buffer memory can be allocated mainly in two ways, statically and dynamically. Statically, the memory is allocated through the linker and dynamically it can allocate memory during runtime by calling an operating system.

 

2. How did a buffer memory allocate in the runtime?

A. linearly
B. non-linearly
C. statically
D. dynamically

Answer: D

The buffer memory allocation is done in two ways, statically and dynamically. Dynamically, it can allocate memory during runtime by calling an operating system.

 

3. Which allocation requires the memory to be defined before building the application?

A. dynamic allocation
B. static allocation
C. linear allocation
D. straight allocation

Answer: B

The static allocation requires the memory to be defined before building the application and allocates the memory through the special directives at the assembler level.

 

4. What factor depends on the allocation of buffer memory?

A. nature
B. size
C. variable type and definition
D. variable size and type

Answer: C

The amount of allocated buffer memory depends on the variable type and the definition, the strings and the character arrays are the most commonly used types.

 

5. Which are the system calls that are used by the UNIX operating system?

A. malloc()
B. unmalloc()
C. malloc() and unmalloc()
D. proc() and return

Answer: C

The malloc() and the unmalloc() are the system calls which is used by the UNIX operating system which allocates the memory dynamically and returns it.

 

6. Which is the counterpart of the malloc()?

A. unmalloc()
B. proc()
C. struc()
D. return()

Answer: A

The malloc() and unmalloc() are the system calls in which the unmalloc() is the counterpart of the malloc().

 

7. How is the UNIX operating system allocates its memory?

A. statically
B. linearly
C. non linearly
D. dynamically

Answer: D

The malloc() and the unmalloc() are the system calls which is used by the UNIX operating system which allocates the memory dynamically and returns it.

 

8. Which term is used to describe a bug within the memory system?

A. memory leakage
B. buffer memory
C. system call
D. register leakage

Answer: A

Memory leakage is used to describe the bug within the memory system.

 

9. What are the common errors that are seen in memory leakage?

A. memory size
B. memory type
C. stack frame error
D. stack register

Answer: C

The stack frame errors are the common errors that are seen in the memory leakage and it is caused by the stack overflowing with its allocated memory space and the system call function failure.

 

10. How the stack frame errors are caused?

A. stack overflow
B. underrun
C. overrun
D. timing

Answer: A

There are certain common errors called the stack frame errors which are responsible for the memory leakage and it is due to the stack overflowing with its allocated memory space and the system call function failure.

Scroll to Top