CS508 MIDTERM SOLVED MCQS By JUNAID (1).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
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
MCQ, 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

  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 CS508 MIDTERM SOLVED MCQS By JUNAID (1).pdf for free?

You can preview and download "CS508 MIDTERM SOLVED MCQS By JUNAID (1).pdf" (CS508 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs508-midterm-solved-mcqs-by-junaid-1-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 MCQs)
                            FROM MIDTERM PAPERS
                               LECTURE (1-22)

BC190202640@vu.edu.pk     For More Visit: vulmshelp.com
Junaidfazal08@gmail.com
                                                          JUNAID MALIK
                                                          (0304-1659294)

AL-JUNAID INSTITUTE OF GROUP
  1. was designed primarily for system simulation.
     1. APL
     2. SNOBOL
     3. Pascal
     4. Simula
  2. Which of the following is not a discrete type in ada.
     1. Integer type
     2. Modular type
     3. Character type
     4. String type
  3. The property list in LISP is a substitute of ------- --.
     1. C/C++ pointer
     2. C/C++ structure
     3. Java interfaces
     4. Complier
   4. Which of the following operator is used for pattern matching in
SNOBOL?
     1. = (Equal)
     2. = (Not Equal)
     3. . (Dot)
     4. (Space)
     5. In SNOBOL we can create new pattern by ---------- two or more
patterns.
     1. Matching
     2. Replacing

  0304-1659294
                                                                        1

AL-JUNAID INSTITUTE OF GROUP
      3. Removing
      4. Concatenating
     6. A --------- is used to signify a potentially infinite loop in ada.
        1. Full loop
        2. Simple loop
      3. Special loop
      4. Master loop
     7. The design and evaluation of a particular ---------------- is highly
dependent on the domain in
         which it is to be used.
   1. Computer program
   2. Programming language
   3. Database system
   4. Software design
8. “Everything for everybody” was the motive of the language.
   1. COBOL
   2. LISP
   3. PL/1                      AL-JUNAUID INSTITUTE OF GROUP
   4. JAVA
9. Which of the following is not part of standard SNOBOL 4 statement
structure?
   1. Label
   2. END
   3. Statement body

  0304-1659294
                                                                               2

AL-JUNAID INSTITUTE OF GROUP
   4. Goto Field
10. The first programming language was ------------ developed by Zuse in
isolation.
   1. Ada
   2. Algol
   3. PL1
   4. Plankalkul
11. The tools we use have a profound (and devious!) influence on our ---------
--- habits and, on our thinking abilities.
   1. Seeing
   2. Listening
   3. Thinking
   4. Feeling
12. Which of the following functions assigns value 5 to symbol y.?
   1. >(setq 5 y)
   2. >(setq.5.y)
   3. >(setq y 5)
   4. >(setq.y.5)
13 was considered good for describing algorithms.

   1. FORTRAN
   2. ALGOL
   3. LISP              AL-JUNAUID INSTITUTE OF GROUP
   4. Ada
14 was developed at Bell Labs by Stroustrup. It evolved
from C and SIMULA 67.

  0304-1659294
                                                                           3

AL-JUNAID INSTITUTE OF GROUP
   1. C#
   2. C++
   3. Java
   4. Smalltalk
15. What is maximum length of variable name in Snobol?
   1. 16
   2. 32
   3. 64
   4. 120
16. The first programming language to support Recursion was -------------.
   1. ADA
   2. LISP
   3. FORTRAN
   4. COBOL
17. Two important versions of LISP are ------------------------ --.
   1. Scheme and Atoms
   2. Scheme and Common Lisp
   3. Common Lisp and defacto
   4. List and Common Lisp
18. Pascal language was popular in Colleges and universities to teach:
   1. Structured programming
   2. Object Oriented programming
   3. Business programming
   4. Scripting language
19 ---------------was developed at Sun in the early 1990s and is based on C++.

   0304-1659294
                                                                             4

AL-JUNAID INSTITUTE OF GROUP
   1. C#                 AL-JUNAUID INSTITUTE OF GROUP
   2. Java
   3. Pascal
   4. Smaltalk
20. To implement a counter-controlled loop in LISP. Which of the following
statement is used?
   1. listLoop
   2. iterate
   3. defun
   4. dotimes
21. Measure of -------------------is considered as the cost of writing programs in
a programming language.
   1. Readability
   2. Writability
   3. Reliability
   4. Productivity
22 was the era when programming language design took an
empirical approach.
   1. 1940s
   2. 1950s
   3. 1960s
   4. 1970s
23 are a type of Aliasing.

   1. Pointers
   2. Parameters                     AL-JUNAUID INSTITUTE OF GROUP
   3. Arrays

  0304-1659294
                                                                               5

AL-JUNAID INSTITUTE OF GROUP
  4. Linked List
24. Some languages allow special keywords for signaling the start and end of
a construct, making it more --------------- and less prone to errors.
   1. Readable
   2. Writable
   3. Listenable
   4. Watchable
25. In the Decimal fixed point type. The distance between values is
implemented as a power of ------ --.
  1. 2
  2. 10
  3. 8
  4. 16
26. Following are some of the reasons for studying concepts related to
different programming languages EXCEPT.
  1. Increased ability to learn new language
  2. Increased capability to design communication links
  3. Increased ability to design new languages
  4. Increased capacity to express programming concepts
27. Which of the following statement is correct about SNOBOL?
  1. Poor Readability Poor Writablity
  2. Poor Readability Good Writablity
  3. Good Readability Poor Writablity
  4. Good Readability Poor Writablity                AL-JUNAUID
     INSTITUTE OF GROUP
28. A query given to a PROLOG system:

  0304-1659294
                                                                          6

AL-JUNAID INSTITUTE OF GROUP
   1. Is a pattern matching exercise
   2. Cannot contain variables
   3. Is treated an object
   4. Does not involve database
29. A loop in which condition is tested after executing the body of loop is
called post-test loop. Which of the following post- test loop is not supported
in Ada language?
   1. ‘While’ loop
   2. ‘do while’ loop
   3. ‘for’ loop
   4. Infinite loop
30. The integrity of types is checked from all together in ----- --.
   1. SNOBOL

More CS508 files

All CS508 files · Midterm Prep 2026 · MCQs Bank