CS609 SOLVED SUBJECTIVE FINAL TERM BY JUNAID.pdf

Verified academic study resource for CS609 (System Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 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
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Tags
SUBJECTIVE, SOLVED, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS609, regardless of midterm scores.

What this file covers — CS609 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS609 SOLVED SUBJECTIVE FINAL TERM BY JUNAID.pdf for free?

You can preview and download "CS609 SOLVED SUBJECTIVE FINAL TERM BY JUNAID.pdf" (CS609 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs609-solved-subjective-final-term-by-junaid-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 Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), 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-System Programming
                               (Solved Macq’s)
                             For Final Term
                                 CURRENT
                                SUBJECTIVE
Junaidfazal08@gmail.com         FOR MORE VISIT       JUNAID MALIK
Bc190202640@vu.edu.pk          VULMSHELP.COME         0304-1659294

AL-JUNAID TECH INSTITUTE
1. How a DLL file is loaded inside a program during explicit linking?
   Mention the API that is used for this purpose.
   ANSWER:
         Explicit linking requires the program to explicitly a specific DLL to be
         loaded or freed. Once the DLL is loaded then the program obtains the
         address of the specific entry point and uses that address as a pointer in
         function call. The function is not declared in the calling program.
         Rather a pointer to a function is declared. The functions required are:
         HMODULE LoadLibrary( LPCTSTR lpLibFileName );
2. Write the names of functions that are used to determine the amount of
   time consumed by:
   1. Process
   2. Thread
   ANSWER:
               GetProcessTime()
               GetThreadTime()
3. When a thread enters into the critical section and is not willing to leave
   the critical section, then what will its consequences?
   ANSWER:
   If a thread enters into the critical section and is not willing to leave the
   critical section, the following consequences occurs.
        Deadlock
        Starvation
        Reduce System Performance
4. Write the first two steps required for mapping a file to a region in
   virtual address space of a calling process.
   ANSWER:
        Open File with at least GENERIC_READ access.
        Map the file using CreateFileMapping() or OpenFileMapping ()
5. What is the purpose of InitializeCriticalSection and Spin Count API?
   Also mention the names of its parameter.
   ANSWER:

AL-JUNAID TECH INSTITUTE
     The InitializeCriticalSectionAndSpinCount API is used to initialize a critical
     section object in Windows with a spin count, which allows for better
     performance by using spinning instead of waiting. Its parameters are the
     critical section object to initialize and the spin count.
     The names of its parameter:
     VOID InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
  6. What is Explicit Linking and which Windows API is used to load a DLL
     explicit inside a program?
     ANSWER
           Explicit linking requires the program to explicitly a specific DLL to be
           loaded or freed. Once the DLL is loaded then the program obtains the
           address of the specific entry point and uses that address as a pointer in
           function call. The function is not declared in the calling program.
           Rather a pointer to a function is declared. The functions required are:
           HMODULE LoadLibrary( LPCTSTR lpLibFileName );
    The Windows API used to load a DLL explicitly inside a program is called
"LoadLibrary".

  7. Name any Two Windows API That are used to return the Pseudo and
     real handle of a process.
     ANSWER:
           GetCurrentProress()
                    GetCurrentProcess() is used to create a psuedohandle. It’s not
             inheritable and desired access attributes are undefined.
           GetCurrentProcessId()
                    The OpenProcess() function is used to obtain the process handle
             using the process ID obtained by GetCurrentProcessId() or otherwise.
  8. Briefly Describe the two parameters associated with the following
     windows API. FARPROC GetProcessAddress(HMODULE hModule,
     LPCSTR lpProcName).
     ANSWER:
     The Windows API "GetProcAddress" is used to retrieve the address of
     an exported function or variable from a specified dynamic-link library
     (DLL).
      It takes two parameters
           HMODULE hModule: is an instance produced by LoadLibrary
           LPCSTR lpProcName lpProcName cannot b UNICODE. It is the
             name of the function whose entry point is to be obtained. Its return

 AL-JUNAID TECH INSTITUTE
           type is FARPROC.
   9. In what situation the termination handler is ignore by a process
      ANSWER:
           A process can exit using the API ExitProcess(). The function does not
     return, in fact the process and all its associated threads terminate. Termination
     Handlers are ignored.
  10.Which window function is used to convert thread into fiber?
     ANSWER:
           ConvertThreadToFiber
  11.Write the signature of InterlockedExchange() API with its return type
     and parameters
     ANSWER:
     LONG InterlockedExchange(
       LONG volatile *Target,
       LONG          Value
     );
     return type and parameters is Loong Integer
  12.Write the name of the API which is used to map the view of a file mapping
     into the address space of a process
           ANSWER:
LPVOID MapViewOfFile( HANDLE hFileMappingObject,
                            DWORD dwDesiredAccess,
                            DWORD dwFileOffsetHigh,
                         DWORD dwFileOffsetLow,
                         SIZE_T dwNumberOfBytesToMap );
Note: The name of the API is MapViewOfFile.
   13.Write the name of the API which is used to open map the view of a file
      mapping into the address space of a process?
      ANSWER:
HANDLE OpenFileMapping(
                          DWORD dwDesiredAccess,
                          BOOL bInheritHandle,
                          LPCSTR lpMapName );

AL-JUNAID TECH INSTITUTE
Note: The name of the API is openFileMapping.
  14.Suppose we have a semaphore named as hThrottleSem objects current
     count is to be increased by 1 and the previous count is not required. you
     need to write the code to release this semaphore using the above-
     mentioned information.
     Note: Make use of Windows API to release semaphore.
      ANSWER:
          ReleaseSemaphore function. code snippet to release the hThrottleSem
     semaphore and increase its count by 1:
      ReleaseSemaphore(hThrottleSem, 1, NULL);

More CS609 files

All CS609 files · Midterm Prep 2026 · MCQs Bank