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

11. Which processor has a different segment buffer?

A. 8051
B. 8086
C. ARM
D. MC68HC11

Answer: B

The 8086 has a segmented architecture where the buffers are having different segments. In such processors, the device driver is running in the supervisor mode, requesting tasks in the user mode, and so on.

 

12. Which of the following can combine buffers in a regular and methodical way using pointers?

A. buffer exchange
B. directional buffer
C. linked lists
D. double buffer

Answer: C

The linked lists are a way of combining buffers in a methodical way and regular method by using the pointers to point to the next entry in the list. This can be maintained by adding an entry to the which contains the address of the next buffer.

 

13. Which entry will have a special value in the linked list?

A. first entry
B. last entry
C. second entry
D. second last entry

Answer: B

The last entry will have a special value that indicates that the entry is the last one but the first entry uses the pointer entry to locate the position.

 

14. Which entry can use the pointer in the linked list?

A. first entry
B. last entry
C. second entry
D. third entry

Answer: A

The first entry of the single linked list will use the pointer entry to point to the location of the second entry and so on. The last entry will have a special value that indicates that the entry is the last one.

 

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

 

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

 

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

 

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

 

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

 

20. 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().

 

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

 

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

 

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

 

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

 

25. Which of the following clean up the stack?

A. interrupt handler
B. processor
C. exception handler
D. memory handler

Answer: C

The exception handler cleans up the stack memory before returning to the previous executing software thread or the generic handler.

 

26. Which of the following stores the context of the exception?

A. stack
B. register
C. ROM
D. RAM

Answer: A

The exception handler is the one that cleans up the stack memory before returning to the previous executing software thread and the ROM stores the context of the exception in the stack automatically or as a part of the exception routine.

 

27. Which of the following contains the return information of the stack?

A. table
B. vector
C. frame
D. block

Answer: C

The stack contains certain frames which are used to store the return information of the stack and thus the frame need to be removed by adjusting the stack pointer accordingly. Normally this is done to avoid memory leakage.

Scroll to Top