cs609-midterm (2)
cs609-midterm (2)
Select correct Top down approach sequence of layered approach followed for system programming.
Hardware -> Bios -> DOS
DOS -> Bios -> Hardware
Bios -> DOS -> Hardware
Systems programming is the study of techniques that facilitates the acquisition of ______ from input
devices.
Data
Information
Power
Control
There are differences in mechanism of invocation of interrupt and event driven procedures
Yes
No
Maximum numbers of interrupts that are registered in IVT are;
FF
EF
BF
AE
In interrupt vector table, if we are at address 0000:03FBH, this represent interrupt number;
FE
EF
EE
FF
Each Entry in Interrupt Vector Table (IVT) is sized _______ .
4 bytes
4 KB
8 bytes
1024 bytes
Parameters in interrupts are passed through _________ .
Stack
Registers
Array
None of the given options
If we are at address F000:0000H, then we are supposed to invoke interrupt(s) for;
BIOS
COM4
LPT3
LPT1
What is output of the following program;
#include<DOS.H>
union REGS regs;
void main (void )
{
regs.h.al = 0x99;
regs.h.ah = 0x00;
printf ("%x",regs.x.ax);
}
00
99
0099
9900
Int86() has ________ parameters.
0
1
2
3
Getting interrupt vector refers to the operation which is used to read the _________ address stored with in
vector.
Far
Near
High
None of the given options
To change the behavior of an interrupt, we have to use function;
Changevect()
Keep()
Setvect()
Getvect()
keep() has ___________ parameters while exit() has ___________.
0, 2
1, 2
2, 0
2, 1
Interrupt number 8 is invoked by ____________.
DOS
BIOS
Hardware
None of the given
In text mode, screen has limit to print ________ alphabets shown on screen simultaneously.
1500
1800
2000
2200
The registers Flags, __________ are pushed on execution of INT instruction and executions branches to
the interrupt procedure
CS and IP
CS and SP
IP and DS
DS and SP
To access disk interrupt ______ and its service _______ are used
13H , 3H
13H, 12H
09H , 3H
12H , 3H
The address of partition block on hard disk is ___________________________.
head # =1, track# = 0 and sector # = 1
head # =0, track# = 0 and sector # = 0
head # =1, track# = 1 and sector # = 1
head # =0, track# = 0 and sector # = 1
The service _______ is called the keyboard hook service
15H/4FH
15H/4EH
16H/4AH
15H/4FFH
Which of the following register is used, if you want to block access of any Hardware.
ISR
IMR
IRR
None of the given
If printer is _____ then printer sends back the ACK signal to the printer interface
Idle
Busy
Out of the paper
None of the given
At IRQ 7 Interrupt # ___ is used.
0X0A
0X0B
0X0C
0X0F
We have set the bit No. 7 of IMR(Interrupt Mask Register) to unmask the Interrupt so that interrupt
_____ can occur at ____ line.
0xf ,IRQ 7
0xa, IRQ 6
0x8, IRQ 5
0x6, IRQ 2
In order to produce the sound from PC internal Speaker we have to load the___bit divisor value at the
___port.
8, 0x21
16, 0x42
32, 0x22
64, 0x32