|
Read the passage and answer the questions that toflow on the basis of the information provided in the passage. 1. Dynamic Link Libraries Windows provides several files called dynamic link libraries (DILLS) that contain collections of software code that perform common functions such as opening or saving a file. When Windows application wants to use one of those functions or routines, the app sends a message to Windows with the names of the DLL file and the function. This procedure is known as calling a function. One of the most frequently used DILLS is Windows COMMDLG.DLL, which includes, among others the functions to display File Open, File Save, Search, and Print dialog boxes. The application also sends any information the DILL function will need to complete the operation. For example, a program calling the Open File function in COMMDLG.DLL would pass along a file spec, such as *.* or *.DOC, to be displayed in the dialog box's Filename text box. The application also passes along a specification for the type of information it expects the DLL to return to the application when the DLL's work is done. The application, for example, may expect return information in the form of integers, truelfalse values, or text. Windows passes the responsibility for program execution to the DILL, along with the parameters and return information the DLL will need. The specific DILL is loaded into memory, and then executed by the processor. At this point the DILL, rather than the application, is running things. The DLL performs all the operations necessary to communicate with Windows and, through Windows, with the PC's hardware. After the DLL function is complete, the DLL puts the return information into memory, where it can be found by the application, and instructs Windows to remove the DILL routine from memory. The application inspects the return information, which usually tells whether the DLL function was able to execute correctly. If the operation was a success, the application continues from where it left off before issuing the function call. If the operation failed, the application displays an error message. I) By using DILLS, Windows A) Saves processing time B) Multitasks C) Shares program code D) Communicates with PC's hardware II) To use any routine of a DILL, Windows A) Searches and copies it in the application code and executes it B) Loads the OLL file and searches and executes the routine C) Loads just the required routine in memory and executes it D) Searches the location of the routine and instructs the application to execute it III) Which Information does an application needs to pass to Windows, to use a DILL routine? A) Just the name of the routine B) Just the name of the DLL, which finds the routine to be executed in return C) Both the name of the routine as well as DLL and any parameters D) Name of the DLL, routine, any parameters and type of information to be returned IV) According to the passage, while the DLL routine is executing, the calling application A) Waits for the routine to execute B) Continues with other tasks C) Helps the DLL routine perform by communicating with Windows and through Windows with the PC's hardware D) Passes all responsibility of program execution to the DILL and is removed from memory V) The DLL function after execution, A) Returns the parameters and information into memory, where it can be inspected by the calling application B) Returns information into memory, where it can be inspected by the calling application C) Returns to the calling application the information required by it so that it can inspect it D) Returns the information required into memory so that IDLL can inspect whether the function operation was a success
2. Multitasking by Windows Multitasking lots you run several applications simultaneously. While you use a word processor in the foreground, your Web browser can be downloading a file, unseen and unattended, in the background. As each application loads, the processor allocates a chunk of memory for the exclusive use of that application. When an application needs more memory, it sends a request to Windows, which checks to see how much memory is available and assigns an additional free stretch of RAM to that application. If there's not enough unallocated RAM to supply the application, Windows checks a table that shows how recently different sections of memory have been used. It then copies the contents of the oldest used RAM to virtual memory, hard disk storage your PC treats as if it were RAM. Windows then assigns the RAM to the application asking for it. Too little real RAM can result in extensive swapping between memory and disk, which slows your PC. To multitask all the programs loaded In memory, Windows assigns each program a slice of the processor's time. When one program's time using the processor is up, Windows instructs the processor to save whatever it's doing by writing the contents of the processor's registers to RAM. Registers are like the processors scratch pads where it stores data temporarily as it processes the data. Windows also saves a digital bookmark In the application's code to save its place. After the processor has cleared the registers, the processor fills them again with new data from the next program, and begins executing that program's Instructions from a new location In RAM until that program's time slice expires. Windows tells the processor to save those registers and repeat the process for the next application being multitasked. If a program needs the services of a PC's hardware, such as a printer port or video card, Windows first checks whether another multitasked program Is already using that service. If it's In use, Windows puts the now request into a queue until the current hardware operation is completed. Then Windows gives the requesting program access to the hardware through drivers or the BIOS. I) If there is insufficient RAM to run an application, Windows A) Uses virtual memory instead of RAM B) Clears the RAM for the application C) Uses registers as the RAM D) Copies the contents of the oldest used RAM to virtual memory, then assigns the RAM to the application II) Multitasking means, A) Multiple programs are processed at any instant of time B) Multiple programs are assigned a slice of the processor's time C) Multiple programs use the RAM through swapping D) Multiple programs use the services of a single hardware III) According to the passage, a program being processed if is in need of the services of PC's hardware makes A) Windows checks and puts a request to use it immediately as it is currently being processed B) Windows checks and puts a request into queue if it is already in use C) Windows checks and puts a request into queue if it is already in use and keeps processing the program until the current hardware operation is completed D) Windows checks and puts a request into queue if it is already in use and stores the program in registers until the current hardware operation is completed IV) In multitasking, when one program slice of processor time is over A) Processor writes contents of registers to RAM and from there to virtual memory, the hard disk storage B) Processor writes contents of registers to RAM and fills them again with next programs instructions C) Processor writes contents of registers to RAM and fills them again with next programs data and executes program's instructions from RAM D) Processor writes contents of registers to RAM and starts executing the next program from RAM V) Choose the most accurate statement A) If an application needs additional memory, it sends a request to Windows, which assigns available RAM to the application B) If an application needs additional memory, it sends a request to Windows, which saves oldest used RAM to hard disk and assigns the RAM to application C) If an application needs additional memory, it sends a request to Windows which saves oldest used RAM to virtual memory and assigns the RAM to application D) If an application needs additional memory, it sends a request to Windows, which starts swapping between memory and disk to free some RAM and assigns to the application
|