CS508 MIDTERM SOLVED SUBJECTIVE By JUNAID.pdf
Verified academic study resource for CS508 (Modern Programming Languages) 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
- CS508 – Modern Programming Languages
- Faculty
- Computer Science
- Format
- 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 CS508.
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)
Frequently asked questions
Where can I download CS508 MIDTERM SOLVED SUBJECTIVE By JUNAID.pdf for free?
You can preview and download "CS508 MIDTERM SOLVED SUBJECTIVE By JUNAID.pdf" (CS508 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs508-midterm-solved-subjective-by-junaid-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS508 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 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
CS508- MODERN
PROGRAMMING LANGUAGES
(SOLVED SUBJECTIVE)
FROM MIDTERM PAPERS
LECTURE (1-22)
BC190202640@vu.edu.pk
Junaidfazal08@gmail.com
For More Visit: vulmshelp.com JUNAID MALIK
(0304-1659294)
AL-JUNAID TECH INSTITUTE
1) LISP stands for LIST processing language. It was designed by John McCarthy in 1959 as part of
AI research at MIT to deal with problems of linguistic, psychology, and mathematics.
ANSWER:
LISP, an acronym for list processing, is a programming language that was designed for easy
manipulation of data strings. Developed in 1959 by John McCarthy, it is a commonly used language
for artificial intelligence (AI) programming. It is one of the oldest programming languages still in
relatively wide use.In LISP, all computation is expressed as a function of at least one object. Objects
can be other functions, data items (such as constants or variables), or data structures. LISP's ability
to compute with symbolic expressions rather than numbers makes it convenient for AI applications.
2) ALGOL 58 – 1958 – Search for a “Universal Language”
ALGOL stands for Algorithmic Language. It was designed in 1958.
Salient features of the language are:
• Concept of type was formalized
• Names could have any length
• Arrays could have any number of subscripts
• Lower bound of an array could be defined
• Parameters were separated by mode (in & out)
• Subscripts were placed in brackets
• Compound statements were introduced (begin ... end)
• Semicolon as a statement separator was used
• Assignment operator was :=
• if had an else-if clause
Algol 60 - 1960
ALGOL 60 was a modified version of ALGOL 58. It added new features to the language.
These included block structure (local scope), two parameter passing methods – value and
name, subprogram recursion, and stack-dynamic arrays – run time size definition and
space allocation. It did not have built-in I/O facility.
COBOL - 1960 COBOL was designed in 1960 to support business-oriented computation which
requires fixed point arithmetic. It was designed to look like simple English to broaden the base of
computer users. It was thus required to be easy to use, even if that means it will be less powerful.
Another design consideration was that it must not be biased by current compiler. It encountered
problems because the design committee members were all from computer manufacturers and
DoD branches and there were fights among manufacturers. It was the first language to add macro
facility in a high-level language. It also introduced hierarchical data structures (records) and
nested selection statements. The language supported long variable names (up to 30 characters)
with hyphens, data division, and fixed-point arithmetic. It was the first language required by DoD
and would probably have failed without support from DoD. It is still a very widely used business
applications language and is very popular in business and government, much less at universities.
AL-JUNAID TECH INSTITUTE
Question: Describe the following statement by SNONOBOL
:S(label2) F(label3)>> marks 2
Answer:
(label)
This is a command for unconditional jump to the label specified inside parentheses.
:S(label)
This is a command for jump. It is used to the specified label if the statement in the body was executed
successfully or resulted in true Boolean value.
:F(label)
It is opposite to the second (label) :S (label). It the control jumps to the label if the statement is not
executed successfully or resulted in false.
:S(label1) F(label2)
It is a combination of the second (label) :S(label) and the third :F(label). It states that go to label1 in case
of success and label2 in case of failure.
Question: write two point that differentiate the LISP language from other language. Marks 2
Answer:
1. A LISP program has two types of elements:
Atoms
lists
2. The first symbol is the name of the function. The rest are its arguments.
For example:
>(+ 1 3 5)
9
Question: Why we need single language Ada. Marks 2
Answer: The necessity for a single standard language was felt in 1975. The draft requirements were given
the code name strawman. Strawman was refined to Woodman and then Tinman in 1976. Initial designs
were submitted in 1978 and red and green short listed on the basis of these designs. Standard
requirements were then refined to steelman. The designs were refined additional and finally in 1979
Green was selected. DoD announced that the language will be called Ada. In 1995 revision of Ada (Ada
95) was developed by a small team managed by Tucker Taft. In both cases, the design need a public
comment period where the designers answer back to public comments.
Question: Set the value of variable a HEIGHT =12 and Weight=5. Marks3
Answer:
>(setf (get 'a 'height) 12) ;
>(setf (get „a „weight) 5) ;
AL-JUNAID TECH INSTITUTE
Question: What is difference b/w these two statements >(set-intersection L1 L2) and >(set-difference L1
L2) Marks 5
Answer:
>(union L1 L2) ; returns the union of the two lists
>(intersection L1 L2) ; returns the intersection of the two lists
>(set-difference L1 L2) ; returns the difference of the two lists
Question: 2 which data structure is more widely us in LISP programming?
Answer: Atoms and Lists.
Question: 4 Set the value of variable a HEIGHT =12 and Weight=5.
Answer:
(setf (get „a „height)12);
(setf (get „a „Width)5)
Question: 1; which predicate function will help for testing atoms?
Answer:
>(member 'b L)
More CS508 files
- CS508 CURRENT MIDTERM SOLVED SUBJECTIVE By JUNAID.pdf (PDF · Midterm)
- CS508 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS508 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS508 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS508 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS508 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS508 MIDTERM SOLVED MCQS By JUNAID (1).pdf (PDF · Midterm)
- CS508 MIDTERM SOLVED MCQS By JUNAID-1.pdf (PDF · Midterm)