MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

OPERATING SYSTEM

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Dynamically allocating portions of primary storage to programs at their request, and freeing it for reuse when no longer needed including dynamically moving programs between secondary and primary storage when needed
A
processor management
B
memory management
C
file management
D
disk management
Explanation: 

Detailed explanation-1: -The allocation of dynamic memory is very simple, we need to call a library function (malloc, calloc, etc.) to allocate the memory at runtime (from the heap), after using the allocated memory it again called a different function (free, realloc) to release the allocated memory.

Detailed explanation-2: -Paging is a function of memory management where a computer will store and retrieve data from a device’s secondary storage to the primary storage.

Detailed explanation-3: -Dynamic memory allocation using the new operator To allocate the space dynamically, the operator new is used. It means creating a request for memory allocation on the free store. If memory is available, memory is initialized, and the address of that space is returned to a pointer variable.

Detailed explanation-4: -Memory Management performs the task of allocation and deallocation of memory space to program.

There is 1 question to complete.