cs508 by khizr.docx
Verified academic study resource for CS508 (Modern Programming Languages) under the Computer Science at Virtual University of Pakistan. This DOC document (Verified Study Resource) covers Full Course Curriculum spanning approximately 280 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS508 – Modern Programming Languages
- Faculty
- Computer Science
- Format
- DOC
- Type
- Study Resource
- Coverage
- Full Course Curriculum
Review this document alongside the official handouts and test your retention in the Interactive MCQs Studio.
What this file covers — CS508 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 cs508 by khizr.docx for free?
You can preview and download "cs508 by khizr.docx" (CS508 DOC, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs508-by-khizr-docx) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS508 file?
This document covers Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, 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 CS508 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 CS508 solved past papers and handouts verified for 2026 exams?
Yes. All CS508 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
Orthogonality:
In order to make a programming language easier to learn, read and write programs, Orthogonality plays a vital role. Orthogonality addresses how relatively small number of components that can be combined in a relatively small number of ways to get the desired results. It is closely associated with simplicity; the more orthogonal the design, the fewer exceptions.
As discussed in video lectures, IBM Mainframe has two different instruction sets; Register to Register and Register to/from Memory. For example, "to add values of two registers and store result in first register" the following command is used;
AR Reg1, Reg2
Here;
AR = Command to add values of two registers
Reg1 = Name of first register
Reg2 = Name of second register
Moreover, the following command is used "to add values of a register and a memory location and store result in register".
A Reg1, memory_cell
Here;
A = Command to add values of a register & a memory cell
Reg1 = Name of a register
Memory_cell = Address of a memory location
On the other hand, VAX architecture has one instruction set for both types (i.e., register to register and register to/from memory). For example, "to add values of first operand (register/memory) and second operand (register/memory) and store result in first operand (register/memory)" the following command is used;
Here;
ADDL = Command to add values of two operands
operand1 = Name of first operand (i.e., register/memory)
operand2 = Name of second operand (i.e., register/memory)
Since VAX architecture contains only one instruction set, so it is more Orthogonal as compared to IBM Mainframe.
Now, keeping in view the above discussion, you must answer the following question.
Question Statement Marks 20
You are required to guess the flow of following IBM mainframe instructions and write the resultant values of registers (i.e., A, B, C, D and E) and memory locations (i.e., x101, x102, x103, x104 and x105) after the execution in the tables given below;
Suppose A, B, C, D and E are registers and initially contain the following values;
A = 2
B = 3
C = 4
D = 5
E = 7
And x101, x102, x103, x104 and x105 are the memory locations, which contain the following values;
x101 = 10
x102 = 20
x103 = 30
x104 = 40
x105 = 50
Now examine the flow of following IBM instructions (as guided in above discussion);
1) AR A, B A=5 // AR = Addition of registers
2) MR B, A B=15 // MR = Multiplication of registers
3) A C, x101 C=14 // A = Addition of register and memory
4) A C, x102 C=34 // A = Addition of register and memory
5) AR C, A C=39 // AR = Addition of registers
6) SR C, D C=34 // SR = Subtraction of registers
7) ST x101, A x101=5 // ST = Storing register value in memory
8) A D, x104 D=45 // A = Addition of register and memory
9) ST x103, D x103=45 // ST = Storing register value in memory
10) MR D, E D=315 // MR = Multiplication of registers
11) AR C, A C=39 // AR = Addition of registers
12) ST x102, C x102=39 // ST = Storing register value in memory
13) A A, x101 A=10 // A = Addition of register and memory
14) A B, x103 B=60 // A = Addition of register and memory
15) ST x104, B x104=60 // ST = Storing register value in memory
16) M E, x105 E=350 // M = Multiplication of register and memory
17) ST x105, E x105=350 // ST = Storing register value in memory
18) AR C, B C=99 // AR = Addition of registers
19) AR E, A E=360 // AR = Addition of registers
Finally, write the resultant values;
Registers
Values
A
10
B
60
C
99
D
315
E
360
Memory Locations
Values
x101
5
x102
39
x103
45
x104
60
x105
350
More CS508 files
- CS508 - 1.pdf (PDF · Study Resource)
- CS508 MIDS MERGE BY ASFAND YARR.pdf (PDF · Study Resource)
- CS508 SOLUTION-1 BY JUNAID.docx (DOC · Study Resource)
- CS508.pdf (PDF · Study Resource)
- CS508_Highlight_Handout_By_Vu_Topper_RM-1.pdf (PDF · Study Resource)
- CS508_Quiz No.1_2026.pdf (PDF · Study Resource)
- CS508_Quiz No.2_2026.pdf (PDF · Study Resource)
- Fall 2022_CS508_2.docx (DOC · Study Resource)