cs609-midterm-subjective-solved-with-references-by-seher.pdf

Verified academic study resource for CS609 (System Programming) under the Computer Science at Virtual University of Pakistan. This PDF 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
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
SUBJECTIVE, 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-subjective-solved-with-references-by-seher.pdf for free?

You can preview and download "cs609-midterm-subjective-solved-with-references-by-seher.pdf" (CS609 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs609-midterm-subjective-solved-with-references-by-seher-pdf) 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

      CS609 Midterm Subjective Solved with References

            Year: 2013                                             By: Sahar

                                   Subjective (Year : 2013)
Q:1

 ((( inport((*lpt) +1)) & 0x80) == 0x80) which condition is checked? 2 marks

Answer:-                      page #97

Condition will check whether the printing port is idle or not.

Q:2

Which command used before changing the typematic and LEDS? 3 marks.

Answer:                       Page no: 181

0xF3 used for type matic rate

oxED used for LEDS

Explain null modem? 5 marks

Answer:                       Page no: 122

If data is to be transferred from one computer to another through some media which can carry
digital data then the modem can be eliminated and the UART on both computers can be
interconnected. Such arrangement is called a NULL modem.

Keyboard writing protocol? 5 marks

Answer:                       Page no: 180

• Wait till input buffer is full

• Write on buffer

• Wait till output buffer is full

• Check the acknowledgement byte

• Repeat the process if it was previously unsuccessful.

Solved by : sahar || www.freeittips.com

Q.1:    write down the purpose of interrupt 11H.

Answer:                                   Page no: 161

Interrupt 11H is used to determine the systems information. On return this service returns the
systems info in AX register.

Q.2: When we discuss flow control using RS232C. Which line is used for data transmission and
reception?

Answer:                                   Page no:110

RS232C is a standard for physical dimension of the connector interconnecting a DTE(Data
terminal equipment) and DCE (Data communication equipment). Data is received through the
RxD line. Data is send through the TxD line.

Q.3: What the usage of coprocessor control word while testing for coprocessor?

Answer:                                   Page no:16

The coprocessor control word contains some control information about the coprocessor. The
bit number 7 of coprocessor control word is the Interrupt Enable Flag and bit number 8 & 9
should contain 11on initialization. The coprocessor status register stores the status of the
coprocessor. Very much like the flags register in the microprocessor the Coprocessor status
word can be used to determine the result of a comparison as shown in the slide.

Q.4: Suppose we have got the status byte of LPT1 port usig BIOS function int 17H.Write the
condition

Answer:

17H/00H Write a character on entry

AH=00

AL=ASCII code

DX=Interface#

On exit

AH=Status Byte

in C language that can check the time out, transfer error and out of paper error.

Solved by : sahar || www.freeittips.com

Q.5: Draw the status of Clock Status C register.

Answer:                                            Page no: 146

Q.6: Explain the purpose of UART.

Answer:                                    Page no:107

The UART is a device used for asynchronous communications. UART is capable of encapsulating
a byte that might be 5, 6, 7 or 8 bits wide in start and stop bits. Moreover it can attach an extra
parity bit with the data for error detection. The width of stop bits may also vary.

 Write Keyboard writing protocol?

Answer:                                        Page no: 182

 Keyboard writing Protocol

• Wait till input buffer is full

• Write on buffer

• Wait till output buffer is full

• Check the acknowledgement byte

Solved by : sahar || www.freeittips.com

• Repeat the process if it was previously unsuccessful.

 Steps involve in LPT1 and LPT2 ?

 Answer:                                  Page no:

unsigned int far * lpt = (unsigned int far *) 0x00400008 ;

unsigned int temp;

temp=*(lpt);

*lpt=*(lpt + 1);

*(lpt + 1)=temp;

3) How to send data to keyboard?

Answer:

Similarly some data (as control information) can be send to the keyboard. The processor will
write on the port 60H. The device driver will check the OBF( output buffer full bit of port 64H
which remains set as long as the byte is not received by the keyboard. On receipt of the byte
from the port 60H the keyboard device write a code 0xFA on the port 60H to indicate that the
byte has been received properly.

Describe the purpose of 12h interrupt and 88h? 3Marks

Answer:

Int 12H is used to determine the amount of conventional memory interfaced with the processor
in kilobytes. The amount of memory above conventional memory (extended memory) can be
determined using the service 15H/88H.

 In flow control what is the working of D4?

Solved by : sahar || www.freeittips.com

Answer:

First the low nibble of the byte is sent from the sender in bit D0 to D3 of the data port. D4 bit is
cleared to indicate the low nibble is being sent. The receiver will know the arrival of the low
nibble when its checks BUSY bit which should be set (by the interface) on arrival.

STATUS REGISTER C of RTC.        MARKS 5

Answer:

The lower 4 bits of this register stores a code indicating the frequency with which the RTC
hardware interrupt can interrupt the processor. The next field is used to specify the time
frequency i.e. the frequency with the time is sampled and hence updated. The most significant
bit indicates that after time sampling if the time has been updated in to the 64 byte RAM or
not.

What is the purpose of Interrupt ID register in UART? 3 marks

Answer:

Once an interrupt occurs it may be required to identify the case of the interrupt. This register is
used to identify the cause of the interrupt.

What are the usages of coprocessor control word in coprocessor while testing for
coprocessor? 3 marks

Answer:

The coprocessor control word contains some control information about the coprocessor. The
bit number 7 of coprocessor control word is the Interrupt Enable Flag and bit number 8 & 9
should contain 11 on initialization.

In LPT1 BIOS what is the meaning of " inportb*(base +1)& 0x80);?

Answer:

In direct parallel port programming it indicate to print a file. While loop terminate when the file
ends.

Solved by : sahar || www.freeittips.com

More CS609 files

All CS609 files · Midterm Prep 2026 · MCQs Bank