PPSC Lecturer Computer Science Quiz no 14 A.J. Bhatti September 17, 2020 Welcome to your PPSC Lecturer Computer Science Quiz no 14 Name Email The process that requests the CPU first (i.e., enters the ready queue first) is allocated the CPU first is known as FIFO LIFO FCFS FCLS The implementation of an FCFS policy is managed with a ........... LIFO queue TIFO queue FIFO queue FCFS Queue Selection of memory-management method for a specific system depends on many factors especially on the .............design of the system hardware design Software Design Both Hardware and Software Application Software Memory consists of a large array of words or bytes, each with its ........... other address own address more then other Previous CPU fetches instructions from memory according to the value of its program counter and other memory management registers such as ................... in Intel CPUs segment registers segment bits segment memory segment bytes A typical instruction-execution cycle, e.g., first fetches an instruction from memory, which is then decoded and .......... played executed terminated both A & B The memory hierarchy not includes: Very small, extremely fast, extremely expensive, and volatile CPU registers Small, very fast, expensive, and volatile cache Hundreds of megabytes of medium-speed, medium-price, volatile main memory Hundreds of gigabytes of slow, cheap, and non-volatile secondary storage Very Big, extremely fast, extremely expensive, and volatile CPU registers The purpose of memory management is to ensure fair, secure, orderly, and ............ Small use of memory Large use of memory Extra use of memory efficient use of memory The task of memory management includes keeping track of used and free memory space, as well as when, where, and how much memory to .................. allocate and deallocate allocate only only deallocate All of the above Translation of a source program in a high-level or assembly language involves compilation and ..................... Execution of the program De-linking of the program Extra linking of the program linking of the program Memory Management is also responsible for swapping processes in and ................. out of main memory In of main memory Extra of main memory more to main memory The collection of processes that is waiting on the disk to be brought into the memory for execution forms the ;........... input queue output queue Processing input queue Processing Output Queue if you know at compile where the process will reside in memory, the absolute addresses can be assigned to instructions and data by the compiler....This process is known as ... Load Time Compile Time Execution Time Memory Management if it is not known at compile time where the process will reside in memory, then the compiler must generate re-locatable code. In this case the final binding is delayed until ....... Compile Time Execution Time load time Memory management if the process can be moved during its execution from one memory segment to another, then binding must be delayed until run time. This process is known as ..... Execution Time Compile Time Load Time Memory Management In case of compile and load time binding, a program may not be moved around in memory ............ at run time Load Time Compile Time Execution Time An address generated by the CPU is commonly referred to as a ......... Theoretical logical address Bus logical address Data logical address logical address An address generated by the CPU is commonly referred to as a logical address, where as an address seen by the memory unit–that is, the one loaded into the memory-address register of the memory–is commonly referred to as the .......... Logical Address Process Address physical address All of the above logical data refers to an instruction or data in the ...................... process address space Physical address space Logical address space Virtual address space where as the physical address refers to a main memory location where instruction or ................ data resides logical data resides Physical data resides Process data resides The compile time and load time binding methods generate identical logical and ............. physical addresses Data physical addresses Data addresses Virtual addresses The set of all logical addresses generated by a program form the logical address space of a process; the set of all physical addresses corresponding to these logical addresses is a ............ space of the process Logical address Virtual address physical address All of them The total size of physical address space in a system is equal to the size of its ................ main memory Secondary memory hard Disk All of the above The run-time mapping from virtual to physical addresses is done by a piece of hardware in the CPU, called the ./....... memory management unit MMU MNU Both A & B Base Register is also known as ........... Memory Register Relocation Register Short memory Register Location Register مشہور کہانی اوور کوٹ کے مصنف کون ہیں A. منٹو B. غلام عباس C. حسینہ معین D. امتیاز علی تاج غار کبف کس ملک میں ہے A. شام ✓ B. عراق C. مصر D. سعودی عرب عرب میں یہودیوں کی طاقت کا سب سے بڑا مرکز کونسا تھا A. مکہ B. طائف C. خیبر D. حبشہ مشہور ڈرامہ انار کلی کس نے لکھا A. امتیاز علی تاج B. اشفاق احمد C. بانو قدسیہ D. سعادت منٹو روزے کس سن ہجری میں فرض ہوۓ A. 1 B. 2 C. 3 D. 5 Related Author: A.J. Bhatti