cs609-midterm-solved-mega-quiz-file-by-haroon.docx

Verified academic study resource for CS609 (System Programming) under the Computer Science at Virtual University of Pakistan. This DOC document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS609 – System Programming
Faculty
Computer Science
Format
DOC
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
SOLVED, MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS609.

What this file covers — CS609 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)

Frequently asked questions

Where can I download cs609-midterm-solved-mega-quiz-file-by-haroon.docx for free?

You can preview and download "cs609-midterm-solved-mega-quiz-file-by-haroon.docx" (CS609 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs609-midterm-solved-mega-quiz-file-by-haroon-docx) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS609 file?

This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS609 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS609 solved past papers and handouts verified for 2026 exams?

Yes. All CS609 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

Midterm Mega Quiz File
DMA stands for_________
►Direct Memory Access (Page 4)
►Distinct Memory Access
►Direct Module Access
►Direct Memory Allocation

Following is not a method of I/O
►Programmed I/O
► Interrupt driven I/O
►Hardware Based I/O (Page 4)
►None of given

The Function of I/O controller is to provide ____________.
►I/O control signals
►Buffering
►Error Correction and Detection
►All of given (Page 5)

Standard PC operates in two modes in terms of memory which are
►Real mode and Extended Mode
►Base mode and Memory Mode
►None of the given
►Real mode and protected mode (Page 6)

There are two main types of interrupts namely _________________.
►PC based and Window based
►Hardware based and Kernal based
►Hardware interrupts and Software interrupts (Page 10)
►None of the given

Interrupt Vector Table (IVT) in short is a _______ bytes sized table.
►1024 (Page 10)
►2048
►3072
►4096

Maximum number of interrupts in a standard PC is
► 64
► 128
► 256 (Page 10)
► 512

Which of the following are types of ISR __________.
►BIOS (Basic I/O service ) ISR
►DOS ISR
►ISR provided by third party device drivers
►All of the given (Page 13)

IVT is a table containing ______ byte entries each of which is a far address of an interrupt service routine.
►2
►4 (Page 20)
►8
►16

To set the interrupt vector means is to change the double word sized interrupt vector within the IVT.
►True (Page 22)
►False

Set the Interrupt vector means to change the double word sized interrupt vector within IVT.
►True (Page 22)
►False

Each paragraph in keep function is ____ bytes in size.
►4
►8
►16 (Page 24)
►32

Interrupt service number is usually placed in the ________ register.
►AL
►CL
►AH (Page 26)
►AX

Timer interrupt is a _________.
►Hardware Interrupt (Page 28)
►Software Interrupt
►Both of these
►None of these

Timer interrupt occurs _______ times every second by means of hardware.
►18.2 (Page 28)
►16.2
►15.2
►14.2

Keyboard Status Byte is located at the address
► 0040:0000H
► 0040:0013H
► 0040:0015H
► 0040:0017H (Page 29)

The output on the monitor is controlled by a controller called __________within the PC.
►Video controller (Page 30)
►Bus controller
►Ram controller
►None of the given

Display device (Monitor) performs _________ I/O.
►memory mapped (Page 30)
►Isolated
►Both of above
►None of these

The keyboard makes use of interrupt number _______ for its input operations.
►9 (Page 34)
►10
►11
►12

Interrupt 9 usually reads the _________ from keyboard.
►ASCII code
►Scan code (Page 34)
►Both ASCII and Scan code
►None of the above

Usually interrupt procedures are reentrant procedures especially those interrupt procedure compiled using C language compiler are reentrant.
►True (Page 38)
►False

______ is Disk interrupt.
►10H
►11H
►13H (Page 42)
►14H

The service _________ is called the keyboard hook service.
►15H/2FH
►15H/4FH (Page 44)
►15H/FFH

NMI Stand for
►Non Maskable Interrupt (Page 46)
►Non Multitude Interrupt
►Non Maskable Instruction
►None of Given

The microprocessor package has many signals for data. Below are some in Correct priority order (Higher to Lower).
►Reset,Hold,NMI,INTR (Page 46)
►NMI, INTR,Hold,Reset
►INTR,NMI,Reset,Hold
►None of the Given

A single interrupt controller can arbitrate among ____ different devices.
►4
►6
►8 (Page 47)
►10

Hardware Interrupts are __________.
►Preemptive
►Non-Preemptive (Page 48)
►Both Preemptive and Non-Preemptive
►None of given

A software interrupt does not require EOI (End of interrupt).
►True (Page 49)
►False

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);
►if (((*scr)&12)==12) (Page 52)
►if (((*scr)&8)==8)
►if (((*scr)&4)==4)
►if (((*scr)&2)==2)

To store each character in keyboard buffer ______________bytes are required
►2 (Page 54)
►4
►6
►8

____ No. of bytes are used to store the character in the keyboard buffer.
► 1
►2 (Page 54)
►4
► 8

Total No. of bytes that can be stored in Keyboard Buffer is____.
►16
►32 (Page 54)
►64
►128

If keyboard buffer is empty the head and tail points at the same location.
►True (Page 55)
►False

Tail of keyboard should get to get the start of buffer.
►True (Page 55)
►False

Interrupt _____ is empty; we can use its vector as a flag.
►9H
►13H
►15H
►65H (Page 65)

Register can be used to divide frequency is _________
►Counter Register (Page 69)
►Accumulator Register
►None of these

Counter register can be used to divide clock signal.
►True (Page 69)
►False

In counter register bit no. 3 changes its value between 0 and 1 with in ____clock cycles
►1
►2
►4
► 16 (Page 69)

Command register is an _____ bit register
►4
►8 (Page 71)
►16
►32

The interval timer can operate in _______ modes.
►Five
►Seven
►Four
►Six (Page 72)
The following command “outportb (0x61,inportb(0x61) & 0xFC);” will
►Turn on the speaker (Page 74)
►Turn off the speaker
►Toggle the speaker
►None of the given

PPI stands for
►Parallel Programmable interface
►Peripheral Programmable interface (Page 76)
►Port Programmable interface
►None of the given

PPI is used to perform parallel communication
►True (Page 81)
►False

The PPI acts as an interface between the CPU and a parallel ________ .
►I/O device (Page 83)
►CPU
►BUS
►None of given
An I/O device cannot be directly connected to the busses so controller is placed between CPU and I/O.
►True (Page 83)
►False

__________is used to control the printer via the BIOS
►Int 16H
►Int 17H (Page 84)
►Int 18H
►Int 19H

Standard PC can have _____ PPI.
►1
►4 (Page 84)
►8
►16

BIOS DO NOT support ______.
►LPT1
►LPT2
►LPT3
►LPT4 (Page 91)

LPTs can be swapped.
►True (Page 92)
►False

________ store the base address for LPT1.
►40:00H

More CS609 files

All CS609 files · Midterm Prep 2026 · MCQs Bank