Buffer in Microcontroller MCQ Quiz – Objective Question with Answer for Buffer in Microcontroller

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

 

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

 

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

 

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

 

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

 

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

 

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

 

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

 

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

 

50. 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.
  • Memory leaks are a class of bugs where the application fails to release memory when no longer needed.
  • Over time, memory leaks affect the performance of both the particular application as well as the operating system.

 

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

 

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

 

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

 

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

 

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