Engineering :: All Aptitude Test ::

Hassan
1.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

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

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

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

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

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

7.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)

8.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

9.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

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

11.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

12.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

13.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

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

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

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

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

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

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

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

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

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

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

24.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

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

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

27.The OF is called as
A. overflow flag
B. overdue flag
C. one flag
D. overflow flag

28.The IF is called as
A. initial flag
B. indicate flag
C. interrupt flag
D. initial flag

29.The register AX is formed by grouping
A. AH & AL
B. BH & BL
C. CH & CL
D. AH & AL

30.The SP is indicated by
A. single pointer
B. stack pointer
C. source pointer
D. single pointer


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