601. Recognition of basic syntactic constructs through reductions, this task is performed by:
Lexical Analysis
Semantic Analysis
Syntax Analysis
Structure Analysis
Show me the answer
Answer: 3. Syntax Analysis
Explanation:
Syntax Analysis: Syntax analysis recognizes the syntactic structure of source code by reducing it to basic constructs.
Conclusion: Syntax analysis performs this task.
602. A grammar for a programming language is a formal description of:
Syntax
Structure
Semantics
Code
Show me the answer
Answer: 1. Syntax
Explanation:
Grammar: A grammar defines the syntax of a programming language, specifying how valid programs are structured.
Conclusion: Grammar describes the syntax of a language.
603. ______ is a technique of temporarily removing inactive programs from the memory of a computer system:
Swapping
Semaphore
Spooling
Scheduler
Show me the answer
Answer: 1. Swapping
Explanation:
Swapping: Swapping involves moving inactive processes out of memory to secondary storage to free up memory for active processes.
Conclusion: Swapping temporarily removes inactive programs from memory.
604. ______ is a technique of improving the priority of processes waiting in the queue for CPU allocation:
Starvation
Revocation
Aging
Relocation
Show me the answer
Answer: 3. Aging
Explanation:
Aging: Aging gradually increases the priority of long-waiting processes to prevent starvation.
Conclusion: Aging improves the priority of waiting processes.
605. ______ is the time required by a sector to reach below the read/write head:
Seek Time
Access Time
Latency Time
None
Show me the answer
Answer: 3. Latency Time
Explanation:
Latency Time: Latency time is the time required for the desired sector to rotate under the read/write head.
Conclusion: Latency time is the time for a sector to reach the read/write head.
606. Which of the following is the most general phase-structured grammar?
Context-Sensitive
Context-Free
Regular
None of the above
Show me the answer
Answer: 1. Context-Sensitive
Explanation:
Context-Sensitive Grammar: Context-sensitive grammar is the most general phase-structured grammar, allowing rules that depend on the context of symbols.
Conclusion: Context-sensitive grammar is the most general.
607. File record length:
Should always be fixed
Should always be variable
Depends upon the size of the file
Should be chosen to match the data characteristics
Show me the answer
Answer: 4. Should be chosen to match the data characteristics
Explanation:
File Record Length: The length of file records should be chosen based on the characteristics of the data being stored.
Conclusion: File record length should match data characteristics.
608. The process is:
An instance of a program in execution
A program only
Processor state
None of the above
Show me the answer
Answer: 1. An instance of a program in execution
Explanation:
Process: A process is an instance of a program in execution, including the program code, data, and resources.
Conclusion: A process is an executing instance of a program.
609. A program is passive while a process is:
Inactive
Spontaneous
Active
None of the above
Show me the answer
Answer: 3. Active
Explanation:
Program vs. Process: A program is a passive entity stored on disk, while a process is an active entity that executes the program.
Conclusion: A process is active, while a program is passive.
610. A process is created and is initially put in the:
Ready queue
Device output
Any of the above
None of the above
Show me the answer
Answer: 1. Ready queue
Explanation:
Process Creation: When a process is created, it is placed in the ready queue, waiting to be scheduled for execution.
Conclusion: A new process is placed in the ready queue.
611. Exit() system call results in:
Forced termination
Normal termination
Abnormal termination
None of the above
Show me the answer
Answer: 2. Normal termination
Explanation:
Exit() System Call: The exit() system call terminates a process normally, releasing its resources.
Conclusion: Exit() results in normal termination.
612. A thread is a:
Task
Process
Program
Lightweight process
Show me the answer
Answer: 4. Lightweight process
Explanation:
Thread: A thread is a lightweight process that shares memory and resources with other threads in the same process.
Conclusion: A thread is a lightweight process.
613. Generally, we have user-level threads and:
Programmer-level thread
Kernel-level thread
Program-level thread
None of the above
Show me the answer
Answer: 2. Kernel-level thread
Explanation:
Thread Types: Threads can be user-level (managed by the application) or kernel-level (managed by the operating system).
IPC Mechanisms: Inter-process communication (IPC) can be done through messages, shared memory, pipes, and other mechanisms.
Conclusion: Messages are a common IPC mechanism.
615. RR scheduling is a preemptive version of:
FIFO
SJF
MLQ
None of the above
Show me the answer
Answer: 1. FIFO
Explanation:
Round Robin (RR): RR scheduling is a preemptive version of FIFO, where each process is given a fixed time slice.
Conclusion: RR is a preemptive version of FIFO.
616. A scheduling where in the jobs are allowed to move between the queues:
Multilevel queue scheduling
Multilevel feedback scheduling
RR scheduling
None of the above
Show me the answer
Answer: 2. Multilevel feedback scheduling
Explanation:
Multilevel Feedback Scheduling: This scheduling algorithm allows processes to move between queues based on their behavior and priority.
Conclusion: Multilevel feedback scheduling allows job movement between queues.
617. In RR Scheduling, a ready queue is treated as:
Circular queue
Doubly linked list
Stack
None of the above
Show me the answer
Answer: 1. Circular queue
Explanation:
Round Robin (RR): In RR scheduling, the ready queue is treated as a circular queue, where processes are given time slices in a cyclic manner.
Conclusion: The ready queue in RR is a circular queue.
618. FIFO scheduling is:
Preemptive
Non-preemptive
Deadline scheduling
None of the above
Show me the answer
Answer: 2. Non-preemptive
Explanation:
FIFO Scheduling: FIFO (First-In-First-Out) scheduling is non-preemptive, meaning a process runs to completion once it starts.
Conclusion: FIFO is non-preemptive.
619. The indefinite blocking of low-priority processes by high-priority processes is known as:
Starvation
Deadlock
Aging
None of the above
Show me the answer
Answer: 1. Starvation
Explanation:
Starvation: Starvation occurs when low-priority processes are indefinitely blocked by high-priority processes.
Conclusion: Starvation describes indefinite blocking of low-priority processes.
620. The technique of gradually increasing the priority of processes that wait in the system for a long time is called:
Aging
Throughput
FCFS
None of the above
Show me the answer
Answer: 1. Aging
Explanation:
Aging: Aging increases the priority of long-waiting processes to prevent starvation.
Conclusion: Aging gradually increases the priority of waiting processes.
621. The main objective of scheduling is:
CPU utilization
Increase the throughput
Both A and B
None of the above
Show me the answer
Answer: 3. Both A and B
Explanation:
Scheduling Objectives: The main objectives of scheduling are to maximize CPU utilization and throughput.
Conclusion: Scheduling aims to improve CPU utilization and throughput.
622. The total time elapsed from the time the job is submitted (or process is created) to the time the job (or process) is completed is called:
Response time
Waiting time
Turnaround time
None of the above
Show me the answer
Answer: 3. Turnaround time
Explanation:
Turnaround Time: Turnaround time is the total time from job submission to completion.
Conclusion: Turnaround time measures the total time for job completion.
623. ______ is defined as the average fraction of time during which the CPU is busy, executing either user programs or system modules:
Throughput
CPU utilization
Response time
Waiting time
Show me the answer
Answer: 2. CPU utilization
Explanation:
CPU Utilization: CPU utilization measures the fraction of time the CPU is busy executing tasks.
Conclusion: CPU utilization measures the busy time of the CPU.
624. In ______ scheduling, if once a process has been allocated CPU, then the CPU cannot be taken away from that process:
Pre-emptive scheduling
Non-preemptive scheduling
Both A and C
None of the above
Show me the answer
Answer: 2. Non-preemptive scheduling
Explanation:
Non-Preemptive Scheduling: In non-preemptive scheduling, once a process starts execution, it cannot be interrupted until it completes.
Conclusion: Non-preemptive scheduling does not allow CPU reallocation.
625. In ______, the CPU can be taken away before the completion of the process:
Pre-emptive scheduling
Non-preemptive
Both A and B
None of the above
Show me the answer
Answer: 1. Pre-emptive scheduling
Explanation:
Pre-emptive Scheduling: In pre-emptive scheduling, the CPU can be taken away from a process before it completes.
Conclusion: Pre-emptive scheduling allows CPU reallocation.
626. “If there are n-processes in a ready queue and the time quantum is ‘q’ time intervals, then each process gets ‘1/n’, of the CPU time in the chunks of at most ‘q’ units of time. Each process will have to wait for (n -1) x q time unit until its next time quantum comes in” This principle is suitable for which one of the following:
Round robin algorithm
SFJ
FCFS
None of the above
Show me the answer
Answer: 1. Round robin algorithm
Explanation:
Round Robin (RR): RR scheduling allocates CPU time in fixed time slices (quantum) to each process in the ready queue.
Conclusion: This principle describes the Round Robin algorithm.
627. Process can be in one of the following states:
New, Ready
Running
Waiting, Blocked, Terminate
All of the above
Show me the answer
Answer: 4. All of the above
Explanation:
Process States: A process can be in states such as New, Ready, Running, Waiting, Blocked, or Terminated.
Conclusion: All of the above are valid process states.
628. Process is:
Loosely coupled
Tightly coupled
Both A and B
None of the above
Show me the answer
Answer: 1. Loosely coupled
Explanation:
Process Coupling: Processes are loosely coupled, meaning they operate independently and communicate through inter-process communication mechanisms.
Conclusion: Processes are loosely coupled.
629. Process is:
Lightweight process
Heavyweight process
Tightly coupled
None of the above
Show me the answer
Answer: 2. Heavyweight process
Explanation:
Process vs. Thread: A process is a heavyweight entity with its own memory space, while a thread is a lightweight entity that shares memory with other threads.
Conclusion: A process is a heavyweight entity.
630. The high paging activity is called:
Segmentation
Thrashing
Demand Paging
None of the above
Show me the answer
Answer: 2. Thrashing
Explanation:
Thrashing: Thrashing occurs when the system spends more time swapping pages in and out of memory than executing processes.
Conclusion: High paging activity is called thrashing.
631. The process of merging adjacent holes to form a single larger hole is called as:
Fragmentation
Coalescing
Swapping
None of the above
Show me the answer
Answer: 2. Coalescing
Explanation:
Coalescing: Coalescing is the process of merging adjacent free memory blocks to form a larger contiguous block.
Conclusion: Coalescing merges adjacent holes.
632. The degree of multiprogramming is controlled by:
CPU scheduler
Context switching
Long-term scheduler
Medium-term scheduler
Show me the answer
Answer: 3. Long-term scheduler
Explanation:
Long-Term Scheduler: The long-term scheduler controls the degree of multiprogramming by deciding which jobs are admitted to the system.
Conclusion: The long-term scheduler controls multiprogramming.
633. Thrashing occurs:
When excessive swapping takes place
When you thrash your computer
Whenever deadlock occurs
When no swapping takes place
Show me the answer
Answer: 1. When excessive swapping takes place
Explanation:
Thrashing: Thrashing occurs when the system spends more time swapping pages than executing processes, leading to poor performance.
Conclusion: Thrashing is caused by excessive swapping.
634. Boundary registers:
Are available in temporary program variables storage
Are only necessary with fixed partitions
Track the beginning and ending of programs
Track page boundaries
Show me the answer
Answer: 3. Track the beginning and ending of programs
Explanation:
Boundary Registers: Boundary registers track the start and end addresses of programs in memory.
Conclusion: Boundary registers track program boundaries.
635. A scheduling algorithm is fair:
If no process faces starvation
If a process is starved, detect it and run it with high priority
If it uses semaphores
Only if a queue is used for scheduling
Show me the answer
Answer: 1. If no process faces starvation
Explanation:
Fair Scheduling: A fair scheduling algorithm ensures that no process is starved of CPU time.
Conclusion: Fairness in scheduling prevents starvation.
636. A critical region:
Is a piece of code which only one process executes at a time
Is a region prone to deadlock
Is a piece of code which only a finite number of processes executes
Is found only in Windows N operating system
Show me the answer
Answer: 1. Is a piece of code which only one process executes at a time
Explanation:
Critical Region: A critical region is a segment of code where shared resources are accessed, and only one process can execute it at a time to prevent race conditions.
Conclusion: A critical region is executed by only one process at a time.
637. In one of the deadlock prevention methods, impose a total ordering of all resource types, and require that each process requests resources in an increasing order of enumeration. This violates the ______ condition of deadlock:
Mutual exclusion
Hold and Wait
Circular wait
No preemption
Show me the answer
Answer: 3. Circular wait
Explanation:
Circular Wait: Imposing a total ordering of resources prevents circular wait, as processes cannot request resources in a cyclic manner.
Conclusion: This method violates the circular wait condition.
638. Semaphore can be used for solving:
Wait and signal
Deadlock
Synchronization
Priority
Show me the answer
Answer: 3. Synchronization
Explanation:
Semaphore: Semaphores are used for process synchronization, ensuring that processes access shared resources in a controlled manner.