insight into program execution important questions
IMPORTANT QUESTION for INSIGHT INTO PROGRAM EXECUTION
Q 1. Identify the translator software from the following characteristics :
(a) it generates Intermediate object code
(b) Errors are displayed for every instruction translated
(c) Errors are displayed after entire program is checked
(d) More memory required during translation phase
(e) Translation is to be done every time
(f) Memory requirements is less during translation phase
(g) Not required after translation phase
solution. statements (a), (c), (d), (g) : compiler
statements (b), (e), (f) : interpreter
solution. Linker and Loader, both are parts of a compiler. The source code of a program passes through compiler, assembler, linker, loader in the respective order, before execution. The assembler generates the object code and hand it over to linker.
The linker intakes the object code generated by the assembler and combines them together along with the libraries required to generate the executable module.
The loader loads this final executable module to main memory for execution. (insight into program execution important questions)
Q 3. Describe the role of operating system as a resource manager.
solution. A computer system has many resources (hardware, software) and these resource are managed by OS like Memory, File, I/O device etc. Operating system is responsible to allocate resource to the specific programs to complete their task.
when a computer has multiple users, the need for managing and protecting the resources (like memory, files, devices etc.) is even greater. Operating system keeps track of who is using which resource, grant resource request and to handle the same request from different users and programs. An OS achieves all this functions like:
- Process management
- Process scheduling
- Memory management
- I/O management
Q 4. what is cloud computing ?
solution. Cloud computing describes the act of storing, managing and processing data online, as opposed to on a physical computer or network. In other words, cloud computing is the delivery of computing services such as servers, storage, databases, networking, software, analytics etc. over the internet (“the cloud”).
Q 5. What are advantages of parallel computing ?
solution. The advantages of parallel computing are :
1. It saves on time and the cost too.
2. It makes it easier to solve larger to solve larger or complex problems. Many problems are so large and/pr complex that it is impractical or impossible to solve them on a single computer, especially given limited computer memory, e.g., searching the web or mining big databases or analysing big data etc.
3. It provides efficient use of underlying hardware.
4. It can utilize the resources available remotely.