Questions
Which phase of compiler reads the source program one character at a time, carving the source program into a sequence of atomic units called tokens?
- Lexical analysis
- Syntax analysis
- Intermediate code
- Code optimization
_______________ phase converts the intermediate code into a sequence of machine instruction.
- Code optimization
- Code generation
- Intermediate code
- None of these
Which phase imposes on a token, a tree like structure called as parse tree?
- Lexical analysis
- Syntax analysis
- Intermediate code
- Code generation
______________ is a unit of specification for program generation through expansion.
- Macro expansion
- Macro processor
- Macro
- Macro parameters
Which of the following is a computer program that transfers data from offline memory into internal storage?
- Loader
- Linking
- Relocation
- None of these
__________ is used to combine multiple functions into a single executable module.
- Dynamic linking
- Static linking
- Static library
- Shared library
___________ is the address of the origin assigned by the linker while producing a machine language program.
- Translated Origin
- Linked Origin
- Load Origin
- None of these
Which of the following occurs when a linker combines object files and when a loader copies an executable file into memory in preparation for execution?
- Relocation
- Boot strapping
- Library
- Linking
_______________ is a data structure which is used by the compiler to keep track of scope and binding information about names.
- Process
- Symbol table process
- Kernel
- Scheduling
Which of the following is a process of replacing symbolic references or names of libraries with actual address in memory before running a program?
- Boot strapping
- Memory allocation
- Relocation
- Memory binding
Which of the following schedulers decides which jobs or processes are to be admitted to the ready queue?
- Long term scheduler
- Medium term scheduler
- Short term scheduler
- None of these
__________ indicates the address of the next instruction to be executed for this process.
- Program counter
- Processor status
- Accounting info
- CPU-scheduling info
__________ refers to the period when the process occupies space in the process table and has resources allocated to it but is not yet ready to run.
- Fork
- Init
- Ready
- None of these
Which of the following memory allocations refers to the process of allocating memory at compile-time before the associated program is executed?
- Static memory allocation
- Stack memory allocation
- Dynamic memory allocation
- None of these
Which of the following dynamic disk volumes allows better performance because disk read and write are balanced across multiple disks?
- Simple volume
- Spanned volume
- Striped volume
- None of these
______________ keys allow users to slow down the rate at which keys are repeated via the keyboards 'keyrepeat feature'.
- Slow keys
- Bounce keys
- Repeat keys
- Mouse keys
______________corresponds to memory allocated via malloc() or operator new[ ].
- Static memory allocation
- Stack memory allocation
- Dynamic memory allocation
- None of these
Which of the following is the state of a process that is ready to run but is not actually running because some other process is on the CPU?
- Runnable
- Running
- Waiting
- Exit
In which volume are the multiple disks span upto 32 disks and if one disk fails, all data in the volume is lost?
- Simple volume
- Spanned volume
- Striped volume
- None of these
Which keys are given in Windows 2000 that have ability to support speech augmentation device?
- Filter keys
- Serial keys
- Toggle keys
- None of these
Which of the following is a part of program that accesses a shared resource that must not be concurrently accessed by more than one process of execution?
- Race condition
- Critical section
- Mutual exclusion
- Semaphores
Which access mode read or write the next record or next n bytes of the file?
- Sequential
- Random
- Indexed
- None of these
Which of the following is a situation in which two or more processes continuously change their states in response to changes in the other process without doing any useful work?
- Deadlock
- Livelock
- Pipe
- None of these
_______________occurs when multiple processes or threads read and write data items so that the final result depends on the order of execution of instruction in the multiple processes.
- Semaphores
- Mutual exclusion
- Race condition
- None of these
Which of the following is a way of making sure that if one process is using a shared modifiable data, the other processes will be excluded from doing the same thing?
- Mutual exclusion
- Livelock
- Critical section
- Pipe
____________is a situation in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource resulting in both programs ceasing to function.
- Critical section
- Semaphore
- Deadlock
- None of these
________________is a mechanism that prevents two or more processes from accessing a shared resource simultaneously.
- Critical section
- Semaphore
- Mutual exclusion
- None of these