Sunday 29 July 2012

CS609 Unsolved MCQs from Quiz 3 #2


Size of FS Info block is _______.
Select correct option:
64 bytes
128 bytes not sure
256 bytes
512 bytes

When we mark a file as deleted by placing 0xE5 then the chain of clusters in FAT is also
replaced by ______.
Select correct option:
E5
1
0
N
Cluster size is reduced in __________.
Select correct option:
FAT12
FAT16
FAT32
None of the given
Maximum possible entries in FAT12 are ________.
Select correct option:
1024
2048
4096
65536

Disadvantage of FAT32 is ________.
Select correct option:
Large disk size can be managed in FAT32
Cluster size is reduced
Internal fragmentation is reduced
Very large table

In FAT32 __________ root directory entries are there.
Select correct option:
128
256
512
None of the given

If a file is having more than one cluster then it will be managed by ______.
Select correct option:
FAT
BPB
DPB
None of the above

Internal fragmentation is reduced in _______________.
Select correct option:
FAT12
FAT16
FAT32

None of the given
For supporting long file names, _________ fragments can be supported.
Select correct option:
12
20
26
32

To store a cluster in FAT 32 _____ is/are needed.
Select correct option:
Nibble
Byte
2 Bytes
4 Bytes

If a file size is 12K and the size of the cluster is 4K then _____ clusters are used for the
file.
Select correct option:
2
3
4
5

We can access the contents of File by using the root directory entry and _____.
Select correct option:
Reserved Blocks
Number of FAT copies
File Allocation Table (FAT)
None of the given

FAT based file system can store file name in ________ form.
Select correct option:
ASCII
UNICODE
Both ASCII and UNICODE
None of the given

CS609 Unsolved MCQs from Quiz 3


Drive parameter block is derived from ___________.
Select correct option:
FCB
FAT
BPB
CPB
What will be the value of the word located at 1Fh in DPB when number of free clusters
on drive is not known?
Select correct option:
0000H
1111H
FFFFH
None of the given.
We can access Blocks for FAT using _________.
Select correct option:
BPB
DPB
FCB
Both BPB and DPB
Jump code part contains ____ bytes in boot block.
Select correct option:
3
5
8
11
Operating system name contains ____ bytes in boot block.
Select correct option:
3
5
8
11
File can be _______ viewed as organization of data.
Select correct option:
Physically
Logically
Both logically and physically
None of the give
_________ is used to read a block against its LSN.
Select correct option:
absread()
abswrite()
lsnread()
None of the given
File can be _______ viewed as collection of clusters or blocks.
Select correct option:
Physically
Logically
Both logically and physically
None of the give
When we talk about FAT based file system, in user data area first cluster number is
______.
Select correct option:
0
1
2
None of the given
Cluster number can also be referred as block number.
Select correct option:
True
False
If we know the cluster number, we can access the blocks within the cluster using BIOS
services directly.
Select correct option:
True
False
To access the block within cluster using BIOS services the cluster number should be
converted into _____.
Select correct option:
CHS
LBA
LSN
None of the given
________ is an internal data structure of DOS and resides in main memory.
Select correct option:
BPB
DPB
CPB
None of the given.
What will be the value of DL register when we are accessing C drive using
undocumented service 21H/32H?
Select correct option:
0
1
2
3
The size of DPB data structure is _______ bytes.
Select correct option:
16
32
64
128
The size of FCB data structure is _______ bytes.
Select correct option:
16
32
64
128
The directory structure of DOS is like ________.
Select correct option:
Array
Tree
Linked list
None of the given
Control information about files is maintained using ______.
Select correct option:
BPB
DPB
FCB
FPB
File can be _______ viewed as organization of data.
Select correct option:
Physically
Logically
Both logically and physically
None of the give

CS609 MCQs from Quiz (Shared by M.Umair unsolved)


Int 14H __________ can be used to send a byte.
Select correct option:
Service # 0
Service # 1
Service # 2
None of the given options

Int 14H __________ can be used to set the line parameter of the UART or COM port.
Select correct option:
Service # 0
Service # 1
Service # 2
None of the given options

Int 14H __________ can be used to receive a byte.
Select correct option:
Service # 0
Service # 1
Service # 2
None of the given options

The ________ function simply enables the self test facility within the modem control register.
Select correct option:
STOn()
SelfTest()
SelfTestOn()
None of these

Int _______ service 0 can be used to set the line parameter of the UART or COM port.
Select correct option:
14H
15H
13H

None of the given options
_________ is a device incorporated into the PC to update time even if the computer is off.
Select correct option:
Clock Counter
ROM
clock
Real time clock
Interrupt ______ is used to get or set the time.
Select correct option:
0AH
1AH
2AH
3AH

______ is used to set time.
Select correct option:
1A/02H
1A/03H
1A/04H
1A/05

______ is used to read date from RTC.
Select correct option:
1A/02H
1A/03H
1A/04H
1A/05H

____whenever received indicates the start of communication and ______ whenever received indicates a temporary pause in the communication.
Select correct option:
XON & XOFF
XOFF & XON
XON & YOFF
YON & XOFF

The _________ function uses the COM port number to receive a byte from the COM port using BIOS services.
Select correct option:
initialize()
recievebyte()
recieve()
recievechar()

Int 14H __________ can be used to set the line parameter of the UART or COM port.
Select correct option:
Service # 0
Service # 1
Service # 2
None of the given options

Int 14H __________ can be used to send a byte.
Select correct option:
Service # 0
Service # 1
Service # 2
None of the given options
_________ is a device incorporated into the PC to update time even if the computer is off.
Select correct option:
Clock Counter
ROM
clock
Real time clock
The _______ function initializes the COM port whose number is passed as parameter using BIOS services.
Select correct option:
initializecom()
initialize()
recievechar()
none of these options

____whenever received indicates the start of communication and ______ whenever received indicates a temporary pause in the communication.
Select correct option:
XON & XOFF
XOFF & XON
XON & YOFF
YON & XOFF

In self test mode the output of the UART is routed to its input.
Select correct option:
TRUE
FALSE

Only ________ ports are important from programming point of view.
Select correct option:
70 and 71H
71 and 72H
70 and 72H
72 and 73H

Int _______ service 0 can be used to set the line parameter of the UART or COM port.
Select correct option:
14H
15H
13H
None of the given options
The BIOS interrupt 0x1Ah can be used to configure real time clock
Select correct option:
TRUE
FALSE

CS609 - System Programming Finalterm Subjective Paper July 2012


CS609 - System Programming Finalterm Subjective Paper July 2012


1. DTE want to communicate with DCE sing RC232c protocol, how does this communication start and end ,identify steps?
2. Write down the structure of COM files?
3. How many maximum root directory entries are possible in FAT12 and FAT16?
4. What is MFT?
5. function that will convert BCD to ASCII code?
6. What is the major disadvantage of programmed I/O?
7. how many bytes are used in FCB in FAT 32?
8. What is the disadvantage of undocumented services of interrupts?
9. What is virus?
10. What is cluster? Describe its structure?
11. How much state of viruses?

CS609 System Programming Final Subjective Questions 2012


CS609  System Programming Final Subjective Questions 2012



Write down the two main features of FAT12? (2 marks) 

How many bytes are used for FCB in FAT12 & FAT16 and to store a cluster in FAT32 how many bytes are required? (2 marks) 

What is paging in context of non contiguous memory management system? (2 marks) 

What does it indicate if the value of first byte of data part of partition table is 00H? (2 marks) 

Write down the formula to translate the cluster # into LSN for FAT 32 file system. (3 marks) 

What are selectors and why we use them? (3 marks) 

Is LSN=0 and LBA=0 same thing? Why or why not? 3marks 

Which data structure is derived from BPB and where it resides? (3 marks) 

In interval timer, what is the purpose of using the following ports?43H, 40H, 41H, 42H  (3 marks) 

Describe how a chain of cluster in FAT12 is managed.  (5 marks) 

How LSN is translated to LBA in NTFS based system?   (5 marks)  

How a PC operate in real mode?    (5 marks)

CS609 Final Term 2011 Paper Subjective Shared by Students


Shared by Rashid Iqbal

Recovery of deleted contents of  file                  Steps

Steps to access NTFS volume using BIOS function

Association B/w DPB and BPB

Difference b/w logical and physical view of memory

Different type of computer viruses

Why should we not calculate FSIfo block information again and again in FAT?

Usage of DMA mode register

What are viruses?

How larger files can be managed using FAT

Calculate sector#

Difference b/w primary and extended partition

CPUID test

Shared by Ahmed Zia
Descriptive Questions 
2 Marks
1) Disadvantage of undocumented service of interrupts
2) Difference between programmed I/O and interrupt I/O
3) When delete file what happen to chain of cluster in FAT
4) Contiguous memory management
5) What is highest capacity of disk using IDE and extended Bios Function?
3 Marks
1) In which media storage head touches the surface of the disk and why?
2) How cross reference detects
3) Possible entries are there in FAT12 and FAT16
4) ISR (interrupt service routine) for EOI (end of interrupt) write the line of code for 
this in C
5) From where, in partition table’s data part we can check the drive is bootable or 
not.
5 Marks
1) Why we convert cluster number to sector number
2) How LSN be translated into LBA
3) How chain of cluster managed in FAT12