Computer Science :: All Aptitude Test ::

1.The segment of code in which the process may change common variables, update tables, write into files is known as ____________
A. program
B. race condition
C. synchronizing
D. program

2.Which of the following conditions must be satisfied to solve the critical section problem?
A. Mutual Exclusion
B. Progress
C. Bounded Waiting
D. Mutual Exclusion

3.Mutual exclusion implies that ____________
A. if a process is executing in its critical section, then no other process must be executing in their critical sections
B. if a process is executing in its critical section, then other processes must be executing in their critical sections
C. if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
D. if a process is executing in its critical section, then no other process must be executing in their critical sections

4.TestAndSet instruction is executed ____________
A. periodically
B. after a particular process
C. atomically
D. periodically

5.Semaphore is a/an _______ to solve the critical section problem.
A. hardware for a system
B. special program for a system
C. integer variable
D. hardware for a system

6.The signal operation of the semaphore basically works on the basic _______ system call.
A. continue()
B. wakeup()
C. getup()
D. continue()

7.What are the two kinds of semaphores?
A. Mutex & Counting
B. Binary & Counting
C. Counting & Decimal
D. Mutex & Counting

8.A binary semaphore is a semaphore with integer values ____________
A. 1
B. - 1
C. 0.5
D. 1

9.Semaphores are mostly used to implement ____________
A. System calls
B. IPC mechanisms
C. System protection
D. System calls

10.The bounded buffer problem is also known as ____________
A. Readers – Writers problem
B. Dining – Philosophers problem
C. Producer – Consumer problem
D. Readers – Writers problem

11.In the bounded buffer problem, there are the empty and full semaphores that ____________
A. count the number of empty and full buffers (slots)
B. count the number of empty and full memory spaces
C. count the number of empty and full queues
D. count the number of empty and full buffers (slots)

12.In the bounded buffer problem ____________
A. there is only one buffer
B. there are n buffers (n being greater than one but finite)
C. there are infinite buffers
D. there is only one buffer

13.The dining – philosophers problem will occur in case of ____________
A. 5 philosophers and 5 chopsticks
B. 4 philosophers and 5 chopsticks
C. 3 philosophers and 5 chopsticks
D. 5 philosophers and 5 chopsticks

14.A monitor is a type of ____________
A. semaphore
B. low level synchronization construct
C. high level synchronization construct
D. semaphore

15.A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.
A. process, semaphore
B. process, monitor
C. semaphore, semaphore
D. process, semaphore

16.The monitor construct ensures that ____________
A. only one process can be active at a time within the monitor
B. n number of processes can be active at a time within the monitor (n being greater than 1)
C. the queue has only one process in it at a time
D. only one process can be active at a time within the monitor

17.What are the operations that can be invoked on a condition variable in monitor?
A. Wait & Signal
B. Hold & Wait
C. Signal & Hold
D. Wait & Signal

18.A microprocessor is a----------- chip integrating all the functions of a CPU of a computer.
A. multiple
B. single
C. double
D. multiple

19.Microprocessor is a/an-------- circuit that functions as the CPU of the compute
A. electronic
B. mechanic
C. integrating
D. electronic

20.Microprocessor is the ---------of the computer and it perform all the computational tasks
A. main
B. heart
C. important
D. main

21.The purpose of the microprocessor is to control
A. memory
B. switches
C. processing
D. memory

22.The first digital electronic computer was built in the year
A. 1950
B. 1960
C. 1940
D. 1950

23.. In 1960's texas institute invented
A. integrated circuits
B. microprocessor
C. vacuum tubes
D. integrated circuits

24.The intel 8086 microprocessor is a -------- processor
A. 8 bit
B. 16 bit
C. 32 bit
D. 8 bit

25.The microprocessor can read/write 16 bit data from or to
A. memory
B. I /O device
C. processor
D. memory

26. In 8086 microprocessor , the address bus is bit ---------- wide
A. 12 bit
B. 10 bit
C. 16 bit
D. 12 bit

27.The work of EU is ---------
A. encoding
B. decoding
C. processing
D. encoding

28.The 16 bit flag of 8086 microprocessor is responsible to indicate
A. the condition of result of ALU operation
B. the condition of memory
C. the result of addition
D. the condition of result of ALU operation

29.The CF is known as
A. carry flag
B. condition flag
C. common flag
D. carry flag

30.The SF is called as
A. service flag
B. sign flag
C. single flag
D. service flag


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