In the name of ALLAH, the most beneficient, the most merciful

System Programming (CS609)

Multiple Choice Questions (MCQs)

 

Objective Questions

Question

There are two main types of interrupts, namely

  1. PC based and Window based
  2. Hardware based and Kernal based
  3. Hardware interrupts and Software interrupts
  4. None of the given

Answer: 3 Chapter No. 1 

Question

Standard PC operates in two modes in terms of memory which are

  1. Real mode and Extended Mode
  2. Base mode and Memory Mode
  3. Real mode and protected mode
  4. None of the given

Answer: 3 Chapter No. 1 

Question

BPB stands for ________.

  1. BIOS parameter block
  2. BIOS processing block
  3. Base processing block
  4. BIOS partition block

Answer: 1 Chapter No. 1 

Question

The Function of I/O controller is to provide ________.

  1. I/O control signals
  2. Buffering
  3. Error Correction and Detection
  4. All of given

Answer: 4 Chapter No. 1 

Question

IVT is a table containing ______ byte entries each of which is a far address of an interrupt service routine.

  1. 2
  2. 4
  3. 8
  4. 16

Answer: 2 Chapter No. 1 

Question

The ______ service # is not used in any interrupt.

  1. 01
  2. 02
  3. 03
  4. FF

Answer: 4 Chapter No. 2 

Question

To set the interrupt vector means is to change the double word sized interrupt vector within the IVT.

  1. True
  2. False

Answer: 1 Chapter No. 3 

Question

If the following function, keep(1, 1000); is called in the TSR program, it means that ________ No. of bytes are reserved in the memory.

  1. 8000
  2. 16000
  3. 32000
  4. 64000

Answer: 2 Chapter No. 3 

Question

The service number is usually placed in the ________ register.

  1. AL
  2. CL
  3. AH
  4. AX

Answer: 3 Chapter No. 4 

Question

The output on the monitor is controlled by a controller called __________ within the PC.

  1. Video controller
  2. Bus controller
  3. Ram controller
  4. None of the given

Answer: 1 Chapter No. 4 

Question

The keyboard makes use of interrupt number ________ for its input operations.

  1. 9
  2. 10
  3. 11
  4. 12

Answer: 1 Chapter No. 5 

Question

The service _________ is called the keyboard hook service.

  1. 15H/2FH
  2. 15H/4FH
  3. 15H/FFH
  4. None of the given

Answer: 3 Chapter No. 6 

Question

______ is Disk interrupt.

  1. 10H
  2. 11H
  3. 13H
  4. 14H

Answer: 3 Chapter No. 6 

Question

Which of the following register is used, if you want to block access of any Hardware.

  1. ISR
  2. IMR
  3. IRR
  4. None of the given

Answer: 1 Chapter No. 7 

Question

In keyboard status byte bit no. 2 and 3 are used for ctrl and alt keys respectively. which of the following condition is used to check that Ctrl + Alt keys are pressed. Where: unsigned char far * scr = (unsigned char far *)(0x00400017);

  1. if (((*scr)&12)==12)
  2. if (((*scr)&8)==8)
  3. if (((*scr)&4)==4)
  4. if (((*scr)&2)==2)

Answer: 1 Chapter No. 7 

Question

Total No. of bytes that can be stored in Keyboard Buffer is_________.

  1. 16
  2. 32
  3. 64
  4. 128

Answer: 2 Chapter No. 8 

Question

________ No. of bytes are used to store the character in the key board buffer.

  1. 1
  2. 2
  3. 4
  4. 8

Answer: 2 Chapter No. 8 

Question

Counter register can be used to divide clock signal.

  1. True
  2. False

Answer: 1 Chapter No. 9 

Question

If we want to produce the shrill voice from the speaker phone then we have to load the _________ divisor value at Port _________.

  1. high, 0x42
  2. low, 0x42
  3. high, 0x22
  4. low, 0x22

Answer: 1 Chapter No. 10 

Question

In order to produce the sound from PC internal Speaker we have to load the _________ bit divisor value at the _________ port.

  1. 8, 0x21
  2. 16, 0x42
  3. 32, 0x22
  4. 64, 0x32

Answer: 2 Chapter No. 10 

Question

If printer is __________ then printer sends back the ACK signal to the printer interface.

  1. idle
  2. busy
  3. out of paper
  4. None of the given

Answer: 1 Chapter No. 11 

Question

_______ store the base address for LPT1.

  1. 40:00H
  2. 40:02H
  3. 40:08H
  4. 40:1AH

Answer: 3 Chapter No. 11 

Question

Int ________ is used to control the printer via the BIOS.

  1. 17H
  2. 18H
  3. 20H
  4. 21H

Answer: 1 Chapter No. 11 

Question

If we want to send printing on the printer then we have to perform following steps.

  1. Initialize printer
  2. Read Status
  3. Check Error
  4. All of the given

Answer: 4 Chapter No. 11 

Question

At IRQ7 Interrupt # __________ is used.

  1. 0x0A
  2. 0x0B
  3. 0x0C
  4. x0F

Answer: 4 Chapter No. 12 

Question

There are two types of communication; synchronous and anti synchronous

  1. True
  2. False

Answer: 2 Chapter No. 13 

Question

DCE is ___________.

  1. Data communication equipment
  2. Dual communication equipment
  3. Data clearing equipment
  4. None of the given

Answer: 1 Chapter No. 13 

Question

There are ________ kinds of serial communication.

  1. 2
  2. 3
  3. 4
  4. 5

Answer: 1 Chapter No. 13 

Question

DTE is _________.

  1. Data terminal equipment
  2. Data transmitting equipment
  3. Dual terminal equipment
  4. None of the given

Answer: 1 Chapter No. 13 

Question

In _______ each byte is needed to be encapsulated in start and end.

  1. Synchronous communication
  2. Asynchronous communication
  3. Both of Synchronous & Asynchronous Communication
  4. None of the given

Answer: 2 Chapter No. 13 

Question

_______ is used to identify the cause of interrupt.

  1. Interrupt Enable Register
  2. Interrupt ID register
  3. Interrupt Status register
  4. None of the given

Answer: 2 Chapter No. 14 

Question

BIOS support _________UARTS as COM ports.

  1. 6
  2. 4
  3. 3
  4. 2

Answer: 2 Chapter No. 14 

Question

The baud rate is set in accordance with the divisor value loaded within the UART internal registers base +0 and base +1.

  1. True
  2. False

Answer: 1 Chapter No. 14 

Question

The memory addresses of COM ports remain same for all computers.

  1. True
  2. False

Answer: 2 Chapter No. 14 

Question

DSR stands for _________.

  1. Data set ready
  2. Data service ready
  3. Data stock ready
  4. None of the given

Answer: 1 Chapter No. 14 

Question

Int _________ service 0 can be used to set the line parameter of the URT or COM port.

  1. 14H
  2. 15H
  3. 13H
  4. None of the given

Answer: 1 Chapter No. 15 

Question

Int 14H __________ can be used to set the line parameter of the UART or COM port.

  1. Service # 0
  2. Service # 1
  3. Service # 2
  4. None of the given

Answer: 1 Chapter No. 15 

Question

Int 14H __________ can be used to send a byte.

  1. Service # 0
  2. Service # 1
  3. Service # 2
  4. None of the given

Answer: 2 Chapter No. 15 

Question

The __________ function simply enables the self test facility within the modem control register.

  1. STOn()
  2. SelfTest()
  3. SelfTestOn()
  4. None of the given

Answer: 3 Chapter No. 16 

Question

The _________ function uses the COM port number to receive a byte from the COM port using BIOS services.

  1. initialize()
  2. recievebyte()
  3. recieve()
  4. recievechar()

Answer: 4 Chapter No. 16 

Question

The _________ function initializes COM port whose number is passed as a parameter using BIOS services.

  1. initializecom()
  2. initialize()
  3. recievechar()
  4. None of the given

Answer: 2 Chapter No. 16 

Question

Only _______ ports are important from programming point of view.

  1. 70 and 71H
  2. 71 and 72H
  3. 70 and 72H
  4. 72 and 73H

Answer: 1 Chapter No. 17 

Question

______whenever received indicates the start of communication and ______ whenever received indicates a temporary pause in the communication.

  1. XON & XOFF
  2. XOFF & XON
  3. XON & YOFF
  4. YON & XOFF

Answer: 1 Chapter No. 17 

Question

________ is used to read time from RTC.

  1. 1A/02H
  2. 1A/03H
  3. 1A/04H
  4. 1A/05H

Answer: 1 Chapter No. 17 

Question

The BIOS interrupt ________ can be used to configure RTC.

  1. 1AH
  2. 2AH
  3. 3AH
  4. 4AH

Answer: 1 Chapter No. 17 

Question

XON whenever received indicates the start of communication and XOFF whenever received indicates a temporary pause in the communication.

  1. True
  2. False

Answer: 1 Chapter No. 17 

Question

_______ is a device incorporated into the PC to update time even if the computer is off.

  1. Clock counter
  2. ROM
  3. Clock
  4. Real time clock

Answer: 4 Chapter No. 17 

Question

The amount of memory above conventional memory (extended memory) can be determined using the service _______.

  1. 15H/88H
  2. 16H/88H
  3. 17H/88H
  4. 21H/88H

Answer: 1 Chapter No. 19