Académique Documents
Professionnel Documents
Culture Documents
Write a program which when resident makes use of some hot keys to control the
typematic rate of keyboard, i.e. Each time CTRL+U is pressed the typematic rate
increases one step and when CTRL+D is pressed the typematic rate decreases one
step
Describe COM and EXE file viruses, Give an algorithm that can be
used to prevent a virus from changing the file size of COM or EXE
file during propagation state?
CS609-System Programming
Final Term Special 2006
Closed Handouts Papers
www.vujannat.ning.com
Q#1:-Explain the term TSR. State reasons why there is a need to make a program
TSR? What code you have to add while making a program TSR?
Q#2:-As you know each entry in FAT12 is 12-bits wide, but we can address to a byte
or double word etc and not a single bit.
a- So how can we access a 12-bit entry without losing any information? (5)
b- Why this is not a problem in FAT16
(5)
Q#3:-What are different types of viruses? What is the major difference between a
computer virus and a worm?
Q#4:-
a. Write down three differences between Logical Sector Number (LSN) and
Logical Block Addressing (LBA).
Q#5:-In IRQ2 and IRQ3 which one has the highest priority?
• Can’t be determined
• Both have same priority
• IRQ3
• IRQ2
As you know each entry in FAT12 is 12-bits wide, but we can address to a byte or double word
etc and not a single bit.
a- So how can we access a 12-bit entry without losing any information? (4)
b- Consider the following example: (6)
Offset value
373H 59H
374H 23H
375H 53H
376H 72H
377H 53H
378H 55H
379H 52H
380H 25H
381H 56H
382H 62H
383H 25H
Write a function that takes drive number as an input and return the far address of Drive
Parameter Block.
Write down three differences between Logical Sector Number (LSN) and Logical Block
Addressing (LBA).
Write a program that store all the bytes received through COM1 port and save it to a file.
Write a program that modifies the typematic rate of the keyboard. It will change the delay
to 1/4 second and typematic rate to 2 characters per second.
CS609-System Programming
Midterm Fall2005
www.vujannat.ning.com
What are the differences between hardware and software interrupts? How would a
procedure written for software interrupt will be different from that written for hardware
interrupt?
What are the differences between hardware and software interrupts? How would a procedure
written for software interrupt will be different from that written for hardware interrupt? Write a
program that will turn on/off the speaker and connect it with the interval timer whenever
Ctrl+Alt+S is pressed Timer interrup
www.vujannat.ning.com
You are allowed to use any C compiler to write and test your code. If you
do so please remember to copy and paste your code into the examination
solution area. (Do NOT share your code; your colleague could get
higher marks than you!!)
**WARNING: Please note that Virtual University takes serious note of unfair
means. Anyone found involved in cheating will get an `F` grade in this course.
486 processor
386 processor
286 processor
All of the above
4 bytes
6 bytes
8 bytes
10 bytes
0040:0000H
0040:0013H
0040:0015H
0040:0017H
64000 bytes
32000 bytes
16000 bytes
80000 bytes
64
128
256
512
Write a TSR program that changes the background color of the screen after every 15
seconds by accessing the text display memory. As you know, in DOS initially the
background color of the screen is black, but after running your program it should switch
between blue and green backgrounds. This means that after first 15 seconds background
color should be blue and when further 15 seconds are passed it should turn into green
and continue this color switching after every 15 seconds.
What is the difference between a simple program and a TSR program? How can we stop
multiple loading of a TSR program into memory?
How interrupts are processed? List down five differences between hardware and
software interrupts.