Machine-translated by Google. Questions are authored in English.
Top

Memory Management Questions and Answers

141.

Technique of using fixed words for machine code functions is classified as

Answer: D

Correct answer: mnemonics

Using fixed short words such as ADD and JMP in place of binary operation codes is the technique of mnemonics, and it is what assembly language consists of.

Please log in or register to report this question.

Answer: C

Correct answer: to protect the address spaces of processes

The relocation register holds the smallest physical address a process may use and the limit register the size of its range. Every address is checked against the limit and then added to the relocation value, so a process cannot reach outside its own space.

Please log in or register to report this question.

Answer: A

Correct answer: split into halves and merged with their partner when freed

The buddy system keeps memory in blocks whose sizes are powers of two. A request is satisfied by repeatedly halving a block until the smallest adequate size is reached; the two halves produced at each split are buddies. When a block is freed, the system checks whether its buddy is also free, and if so merges the pair back into the larger block, repeating upward. Its merit is that coalescing is fast. A block’s buddy is found by flipping a single bit of its address, so merging costs almost nothing - unlike a general free-list, where finding an adjacent free block requires searching. Its cost is internal fragmentation: a request for 33 KB receives 64 KB, wasting nearly half. On average about a quarter of allocated memory is lost. It is used in the Linux kernel for physical page allocation, where the fixed page size limits the waste, and the slab allocator is layered on top of it to serve small kernel objects efficiently.

Please log in or register to report this question.

Answer: A

Correct answer: Computers can share information and share peripheral equipment

A LAN allows files and devices to be shared. It does not make any individual machine faster, and reaching the internet requires a further connection beyond the local network.

Please log in or register to report this question.

149.

In COMAL language programs, variables in program procedure are declared local using

Answer: D

Correct answer: CLOSED function

Marking a COMAL procedure CLOSED makes its variables local to it, so nothing inside can disturb the rest of the program. That is COMAL's way of enforcing what Pascal gets from block scope.

Please log in or register to report this question.

Answer: D

Correct answer: the page is in the process’s address space and currently in memory

The valid-invalid bit records whether a page-table entry refers to a page that is legally part of the process’s address space and currently resident in physical memory. Marked invalid, any reference to it traps to the operating system. The trap has two possible meanings, and the operating system must distinguish them. Either the reference is genuinely illegal - outside the address space - in which case the process is terminated with an addressing error; or the page is legal but not resident, in which case it is a page fault and the page is brought in from the backing store. The kernel keeps a separate record of which pages a process is entitled to in order to tell the two apart. The other bits in an entry serve different purposes: the dirty bit records modification, so a clean page need not be written back; the reference bit supports clock and second-chance replacement; and protection bits mark a page read-only or execute-only. Demand paging works by starting every page marked invalid.

Please log in or register to report this question.

Loading…
Tags: Memory Management Questions and Answers || Memory Management MCQ Questions and Answers || Memory Management GK Questions and Answers || Memory Management GK MCQ Questions || Memory Management Multiple Choice Questions and Answers || Memory Management GK || GK on Memory Management || Computer Awareness Questions and Answers || Computer Awareness MCQ Questions and Answers || Computer Awareness GK Questions and Answers || GK on Computer Awareness