cs401 Final Term Solved Mcqs by Junaid
cs401 Final Term Solved Mcqs by Junaid
1. Suppose AL contains 5 decimal then after two left shifts produces the value as
5
10
15
20 (Page 52)
4. The thread registration code initializes the PCB and adds it to the linked list so that the
__________ will give it a turn.
Assembler
Scheduler (Page 141)
linked
Debugger
10. The physical address of IDT (Interrupt Descriptor Table) is stored in _______
GDTR
IDTR (Page 182)
IVT
IDTT
11. In NASM an imported symbol is declared with the ............................ while and
exported symbol is declared
With the............................
Global directive, External directive
External directive, Global directive (Page 189)
Home Directive, Foreign Directive
Foreign Directive, Home Directive
12. In 68K processors there is a ........................ program counter (PC) that holds the address of
currently executing
Instruction
8bit
16bit
32bit (Page 191)
64bit
ES register
16. For the execution of the instruction “DIV BL”, the implied dividend will be stored in
AX (Page 85)
BX
CX
DX
17. When a number is divided by zero “A Division by 0” interrupt is generated. Which instruction
is used for this?
Purpose
INT 0
INT 1
INT 2
This interrupt is generated automatically (Page 107)
18. INT 21 service 01H is used to read character from standard input with echo. It returns the
result in ______
Register.
AL (Page 152)
BL
CL
BH
19. BIOS sees the disks as
Logical storage
Raw storage (Page 155)
In the form of sectors only
In the form of tracks only
20. In 9pin DB 9, which pin number is assigned to CD (Carrier Detect)?
1 (Page 171)
2
3
4
21. In 9pin DB 9, Signal ground is assigned on pin number
4
5 (Page 171)
6
3
22. In 9pin DB 9, RI (Ring Indicator) is assigned on pin number
►6
►7
24. When two devices in the system want to use the same IRQ line then what will happen?
► An IRQ Collision
► An IRQ Conflict (Page 114)
► An IRQ Crash
► An IRQ Blockage
55. In DOS input buffer, number of characters actually read on return is stored in
First byte
Second byte (Page 152)
Third byte
Fourth byte
► IRQ 2
► IRQ 3
93. In programmable interrupt controller, which of the following ports is referred as a
control port?
► 19
► 20 (Page 115) rep
► 21
► 22
94. INT 21 service 01H is used to read character from standard input with echo. It returns
the result in______ register.
► AL (Page 152) rep
► BL
► CL
► BH
95. In 9pin DB 9, which pin number is assigned to DSR (Dataset Ready)?
►4
►5
► 6 (Page 171)
113. A 32bit address register can access up to ...access has .of memory so memory
increased a lot.
2GB
4GB (Page 175)
6GB
8GB
114. In device attribute word which of the following bit decides whether it is a character device or a
block device
Bit 12
Bit 13
Bit 14
Bit 15 (Page 166) rep
ADD
132. PCB stands for?
Select correct option:
Process Control Block (Page 140)
Process Clearing Block
Programmable Counter Block
176. In NASM an imported symbol is declared with the ............................ while and exported
symbol is declared With the............................
Global directive, External directive
External directive, Global directive (Page 189) rep
Home Directive, Foreign Directive
Foreign Directive, Home Directive
177. Single step interrupt is
Hardware interrupt
Like divide by zero interrupt (Page 133) rep
Like divide by 1 interrupt
Software interrupt
176. In programmable interrupt controller which of the following ports is referred as interrupt
mask register?
a. 19
b. 20
c. 21
d. 22
177. is the highest priority interrupt in interrupt controller?
a. IRQ 0
b. IRQ 1
c. IRQ 2
d. IRQ 3
178. IRET returns on the basis of and _
a. CS, IP
b. DS, IP
c. CS, SS
d. IP,SP
170. If is set, the after every instruction a type 1 interrupt will be
automaticallygenerated.
e. Parity flag
b. Trap flag
c. Carry flag
d. Overflow flag
180.The interrupt handler uses instruction to return back to the caller.
a. IRET
b. RETI
197. Which of the following is the BIOS interrupt providing keyboard service?
a. INT 0x13
b. INT 0x14
c. INT 0x15
d. INT 0x16
198.
Threads can have function calls, parameters and variables.
a. Global
b. Local
c. Legal
d. Illegal
199. Which of the following arranges jobs in a sequence in order to be executed?
a. Process control block
b. Arranger
c. Control unit
d. Scheduler
200. Which of the following flags cannot be cleared using an assembly instruction?
a. Trap flag
b. Interrupt flag
c. Direction flag
d. Carry flag
201. Which of the following is the highest priority interrupt?
a. INT3
b. INT2
c. INT1
d. INT0
202. At the end of servicing an interrupt, which of the following is used to inform tha PIC that it is
completed?
a. RET
b. EOI
c. IRET
d. RET N
206.
The first parallel port LPT1 has port number designated from .
a. 178 to 17A
b. 278 to 27A
c. 378 to 37A
d. 478 to 47A
207. is/are the port number(s) for parallel port.
a. 20 and 21
b. 60 to 64
c. 380
d. 378
208. The number of pins in a parallel port connector are?
a. 20
b. 25
c. 30
d. 35
209. The offset address of an interrupt n will be at
a. n
b. nx2
c. nx3
d. nx4
210.
Programmable interrupt controller has two ports (20 and 21). Port 20 is the control port
whileport 21 is .
a. The interrupt mask register
b. Interrupt port
c. Output port
d. Input port
211. Which of the following instruction selects memory address space?
a. MOV
d. 4
215. Programmable interrupt controller (PIC) has
a. One input signals and eight output signals
b. One input signal and one output signal
c. Eight input signals and one output signals
d. Eight input signals and eight output signals
216. In 8088 processor, there can be total possible entries in an interrupt vector
table.
a. 256
b. 64
c. 128
d. 512
217. Each thread can have their own
a. Execution
area
b. Stack
c. Memory
d. Array
218. The parallel port connector is
called?
a. DB-25
b. BD-25
c. DB-24
d. BD-24
219.
In 8088, the physical memory address for Interrupt Vector Table is fixed and the
tableoccupies exactly of memory.
222. Which of the following interrupts is used in debugging with the trap flag?
a. INT 0
b. INT 1
c. INT 2
d. INT 3
223. Which of the following port number is used to send an end of interrupt (EOI) signal
to thePIC after an interrupt is ended?
a. 0x16
b. 0x20
c. 0x60
d. 0x378
224. Which of the following instruction is used for reading a char from keyboard?
a. out al, 0x60
b. in al , 0x60
c. out dx, al
d. out dx, 0x378
225. In PIC, which of the following port is used for selectively enabling or disabling interrupts?
a. 19
b. 20
c. 21
d. 22
226. DOS has single entry point to access all its services through interrupt
a. INT 21
b. INT 16
c. IRQ 5
d. IRQ 7
243. The output of programmable timer interval is connected to which line
248.
All the registers & stack are
saved in
o Multitasking
o Multi-Processing
o Function call
o BIOS
249.
Which of the following is the source register in OUT
instruction?
a. AL or AX
b. BL or BX
c. CL or CX
d. DL or DX
250. Which of the following is the destination register in IN instruction?
a. AL or AX
b. BL or BX