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

System Programming (CS609)

Multiple Choice Questions (MCQs)

Objective Questions

  1. 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
  2. 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
  3. BPB stands for ________.

    1. BIOS parameter block
    2. BIOS processing block
    3. Base processing block
    4. BIOS partition block
  4. 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
  5. 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
  6. The ______ service # is not used in any interrupt.

    1. 01
    2. 02
    3. 03
    4. FF
  7. To set the interrupt vector means is to change the double word sized interrupt vector within the IVT.

    1. True
    2. False
  8. 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
  9. The service number is usually placed in the ________ register.

    1. AL
    2. CL
    3. AH
    4. AX
  10. 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
  11. The keyboard makes use of interrupt number ________ for its input operations.

    1. 9
    2. 10
    3. 11
    4. 12
  12. The service _________ is called the keyboard hook service.

    1. 15H/2FH
    2. 15H/4FH
    3. 15H/FFH
    4. None of the given
  13. ______ is Disk interrupt.

    1. 10H
    2. 11H
    3. 13H
    4. 14H
  14. 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
  15. 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)
  16. Total No. of bytes that can be stored in Keyboard Buffer is_________.

    1. 16
    2. 32
    3. 64
    4. 128
  17. ________ No. of bytes are used to store the character in the key board buffer.

    1. 1
    2. 2
    3. 4
    4. 8
  18. Counter register can be used to divide clock signal.

    1. True
    2. False
  19. 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
  20. 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
  21. 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
  22. _______ store the base address for LPT1.

    1. 40:00H
    2. 40:02H
    3. 40:08H
    4. 40:1AH
  23. Int ________ is used to control the printer via the BIOS.

    1. 17H
    2. 18H
    3. 20H
    4. 21H
  24. 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
  25. At IRQ7 Interrupt # __________ is used.

    1. 0x0A
    2. 0x0B
    3. 0x0C
    4. x0F
  26. There are two types of communication; synchronous and anti synchronous

    1. True
    2. False
  27. DCE is ___________.

    1. Data communication equipment
    2. Dual communication equipment
    3. Data clearing equipment
    4. None of the given
  28. There are ________ kinds of serial communication.

    1. 2
    2. 3
    3. 4
    4. 5
  29. DTE is _________.

    1. Data terminal equipment
    2. Data transmitting equipment
    3. Dual terminal equipment
    4. None of the given
  30. 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
  31. In case of synchronous communication a timing signal is required to identify the start and end of a bit.

    1. True
    2. False
  32. _______ 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
  33. BIOS support _________UARTS as COM ports.

    1. 6
    2. 4
    3. 3
    4. 2
  34. 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
  35. The memory addresses of COM ports remain same for all computers.

    1. True
    2. False
  36. DSR stands for _________.

    1. Data set ready
    2. Data service ready
    3. Data stock ready
    4. None of the given
  37. 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
  38. 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
  39. Int 14H __________ can be used to send a byte.

    1. Service # 0
    2. Service # 1
    3. Service # 2
    4. None of the given
  40. The __________ function simply enables the self test facility within the modem control register.

    1. STOn()
    2. SelfTest()
    3. SelfTestOn()
    4. None of the given
  41. 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()
  42. 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
  43. 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
  44. ______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
  45. ________ is used to read time from RTC.

    1. 1A/02H
    2. 1A/03H
    3. 1A/04H
    4. 1A/05H
  46. The BIOS interrupt ________ can be used to configure RTC.

    1. 1AH
    2. 2AH
    3. 3AH
    4. 4AH
  47. XON whenever received indicates the start of communication and XOFF whenever received indicates a temporary pause in the communication.

    1. True
    2. False
  48. _______ 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
  49. 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