Sample Paper CS508.pdf

Verified academic study resource for CS508 (Modern Programming Languages) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum spanning approximately 180 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
PDF
Type
MCQ Bank
Coverage
Full Course Curriculum

Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.

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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. 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 Sample Paper CS508.pdf for free?

You can preview and download "Sample Paper CS508.pdf" (CS508 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/sample-paper-cs508-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 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

                               Sample Paper
       FINALTERM EXAMINATION Fall 2022
      CS508 - Modern Programming Languages

            Paper solved by Neelam Shehzadi

        Paid service’s available for assignments,
                       quiz,gdb.:)

                     For any help, or any issue

                      Bc180403539@gmail.com

                                                                           Time: 90 min

                                                                             Marks: 60

Question No: 1            (Marks: 01) - Please choose the correct option

The concept of list processing was developed by _________and ________ at the
RAND Corporation around 1956.

John McCarthy in 1959
Allen Newell, J. C. Shaw, Herbert Simon
Alan Turing, Charles Babbage

Question No: 2            (Marks: 01) - Please choose the correct option

In LISP, there is a limit to the depth of recursion, and it depends on the ___________.

Version of LISP

Execution speed of processor
Operating systems version
Programmer’s capabilities

Question No: 3         (Marks: 01) - Please choose the correct option In LISP,

load is an example of _________.

List
Function
Input/Output
Predicate I think so
Question No: 4       (Marks: 01) - Please choose the correct option

Programming, in logic programming languages is ___________.

Non-procedural
Procedural I think
Sequential Serial

Question No: 5         (Marks: 01) - Please choose the correct option In

Prolog, we don’t specify __________.

Algorithm
Facts No idea
Logical relationships Rules

Question No: 6         (Marks: 01) - Please choose the correct option

CLR(Common Language Runtime) is similar to _____________ .

Java Development Kit
Java Virtual Machine
Software Development Kit
Dynamic Link Library

Question No: 7             (Marks: 01) - Please choose the correct option

In order to print the output and go to the next line in C# language, which syntax is
correct?
Console.WriteLine("Hello World!”);
Console.Write("Hello World!”);

Console.Write("Hello Mono World")+ ("New Line");
Console.Write ("Hello Mono World")+ NewLine;

Question No: 8                (Marks: 01) - Please choose the correct option

Structure in C# cannot be inherited by any class, except _________ class.
System
Class
Object not sure
Interface
Question No: 9                (Marks: 01) - Please choose the correct option

What should be the return type of given C# code?

          public ________ setSize (int value) {

                          size = value;

          }

void
int
float
double

Question No: 10                (Marks: 01) - Please choose the correct option

In C#, object and ___________ are predefined reference types.
 int
char

string
pointer

Question No: 11                (Marks: 01) - Please choose the correct option

Aliasing is a problem associated with reference types. What will be the value of
A.count in given C# code by keeping in mind here aliasing is applied?
          object A = new object();
          A.count = 5; object B =
          A; B.count = 10
          A.count = ?

5
Null
0

10

Question No: 12              (Marks: 01) - Please choose the correct option

What will be the result of the given statement in C# ?

         if( A = B)

B’s value will be assigned to A
It will check whether A = B or not
It will check whether B = A or not
Compilation error

Question No: 13              (Marks: 01) - Please choose the correct option

If a class is required to accessed only in same assembly but not by other
assemblies, then which keyword would be used in C#?

internal protected

private sealed

Question No: 14              (Marks: 01) - Please choose the correct option

In relation to an array, _________ could be declared in C#.
pointer string

class structure

Question No: 15              (Marks: 01) - Please choose the correct option

Which of the following syntax is correct to relate pointer “bb” with array “b”?
int [] b = {3,5,9];
          int b*b = b;

int [] b = {3,5,9];
          int bb* = b;

int [] b = {3,5,9];
          int *bb = b;

int [] b = {3,5,9];
          int bb = *b;

Question No: 16              (Marks: 01) - Please choose the correct option

In C#, Object Oriented Programming(OOP) is supported through _________.

classes structures

union enums

Question No: 17       (Marks: 01) - Please choose the correct option While
overriding a method, the other overridden method must not be _________.
static virtual
abstract
override

Question No: 18              (Marks: 01) - Please choose the correct option

To check the type of certain operator or expression, _______ operator is used in C#. is
type
+
:?

Question No: 19              (Marks: 01) - Please choose the correct option

Access modifiers are not available in _________ and its default access is implicitly
public.
interfaces classes
objects abstract
classes

Question No: 20              (Marks: 01) - Please choose the correct option

PHP stands for ___________.
PHP: Hypertext Preprocessor
PHP: Hypertext Preproducer
PHP: Hypertransfer Preprocessor
PHP: Hypertransfer Producer

Question No: 21              (Marks: 01) - Please choose the correct option

Choose correct syntax to fill the blank lines in given HTML code.
<html>
                 <head>
                        <title>PHP Test</title>
                 _________

</head>
          </html>

<head>
          <html>
</head>
          <html>

</html>
          </head>

Question No: 22              (Marks: 01) - Please choose the correct option

Which form of the tag is not allowed in PHP?
<?php ?>

<?
          ?>

<script
          /script>

<?html
          ?>

Question No: 23                (Marks: 01) - Please choose the correct option

What will be the resultant value of a given statement in PHP?
$stExp = "10.0 cats " + 1;
11
10
1
0

Question No: 24                (Marks: 01) - Please choose the correct option

What will be the value of “a” after execution this PHP code?

          $a = "Hello ";

          $a .= "World!";

“Hello World!”
“Hello”
“World!”

“Hello. World!”

More CS508 files

All CS508 files · Midterm Prep 2026 · MCQs Bank