Computer Science :: All Aptitude Test ::

1.Which one of the following is a synchronization tool?
A. Thread
B. Pipe
C. Semaphore
D. Thread

2.A semaphore is a shared integer variable?
A. That can not drop below zero
B. That can not be more than zero
C. That can not drop below one
D. That can not drop below zero

3.Mutual exclusion can be provided by the?
A. Mutex locks
B. Binary semaphores
C. Both A & B
D. Mutex locks

4.Process synchronization can be done on?
A. Hardware level
B. Software level
C. Both A & B
D. Hardware level

5.A monitor is a module that encapsulates?
A. Shared data structures
B. Procedures that operate on shared data structure
C. Synchronization between concurrent procedure invocation
D. Shared data structures

6.A Process Control Block(PCB) does not contain which of the following?
A. Code
B. Stack
C. Bootstrap program
D. Code

7.The number of processes completed per unit time is known as?
A. Output
B. Throughput
C. Efficiency
D. Output

8.The state of a process is defined by?
A. The final activity of the process
B. The activity just executed by the process
C. The activity to next be executed by the process
D. The final activity of the process

9.Which of the following is not the state of a process?
A. New
B. Old
C. Waiting
D. New

10.What is a Process Control Block?
A. Process type variable
B. Data Structure
C. A secondary storage section
D. Process type variable

11.The entry of all the PCBs of the current processes is in?
A. Process Register
B. Program Counter
C. Process Table
D. Process Register

12.A single thread of control allows the process to perform?
A. Only one task at a time
B. Multiple tasks at a time
C. Only two tasks at a time
D. Only one task at a time

13.What is the objective of multi-programming?
A. Have some process running at all times
B. Have multiple programs waiting in a queue ready to run
C. To minimize CPU utilization
D. Have some process running at all times

14.Which of the following do not belong to queues for processes?
A. Job Queue
B. PCB queue
C. Device Queue
D. Job Queue

15.When the process issues an I/O request?
A. It is placed in an I/O queue
B. It is placed in a waiting queue
C. It is placed in the ready queue
D. It is placed in an I/O queue

16.What will happen when a process terminates?
A. It is removed from all queues
B. It is removed from all, but the job queue
C. Its process control block is de-allocated
D. It is removed from all queues

17.If all processes I/O bound, the ready queue will almost always be ______ and the Short term Scheduler will have a ______ to do.
A. full, little
B. full, lot
C. empty, little
D. full, little

18.What is a medium-term scheduler?
A. It selects which process has to be brought into the ready queue
B. It selects which process has to be executed next and allocates CPU
C. It selects which process to remove from memory by swapping
D. It selects which process has to be brought into the ready queue

19.What is a short-term scheduler?
A. It selects which process has to be brought into the ready queue
B. It selects which process has to be executed next and allocates CPU
C. It selects which process to remove from memory by swapping
D. It selects which process has to be brought into the ready queue

20.The primary distinction between the short term scheduler and the long term scheduler is?
A. The length of their queues
B. The type of processes they schedule
C. The frequency of their execution
D. The length of their queues

21.The only state transition that is initiated by the user process itself is?
A. Block
B. Wakeup
C. Dispatch
D. Block

22.In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the running state to the?
A. Blocked state
B. Ready state
C. Suspended state
D. Blocked state

23.Suppose that a process is in “Blocked” state waiting for some I/O service. When the service is completed, it goes to the?
A. Running state
B. Ready state
C. Suspended state
D. Running state

24.The context of a process in the PCB of a process does not contain?
A. The value of the CPU registers
B. The process state
C. Memory-management information
D. The value of the CPU registers

25.Which of the following need not necessarily be saved on a context switch between processes?
A. General purpose registers
B. Translation lookaside buffer
C. Program counter
D. General purpose registers

26.Which of the following does not interrupt a running process?
A. A device
B. Timer
C. Scheduler process
D. A device

27.. __________ converts the programs written in assembly language into machine instructions.?
A. Machine compiler
B. Interpreter
C. Assembler
D. Machine compiler

28. A single two pass assembler does which of the following in the first pass?
A. It allicates space for the literals
B. It computes the total length of the program
C. It builds the symbol table for the symbols and their values
D. It allicates space for the literals

29.DEBUG is able to troubleshoot only.?
A. EXE files
B. OBJ files
C. EXE file and .OBJ file
D. EXE files

30.A machine language instruction format consists of.?
A. Operand field
B. Operation code field
C. Operation code field & operand field
D. Operand field


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers