2_CS302 MID TERM SOLVED PAPER.pdf

Verified academic study resource for CS302 (Digital Logic Design) 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
CS302 – Digital Logic Design
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
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 CS302.

What this file covers — CS302 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 2_CS302 MID TERM SOLVED PAPER.pdf for free?

You can preview and download "2_CS302 MID TERM SOLVED PAPER.pdf" (CS302 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/2-cs302-mid-term-solved-paper-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS302 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 CS302 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 CS302 solved past papers and handouts verified for 2026 exams?

Yes. All CS302 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

           MIDTERM EXAMINATION
                    Fall 2009
    CS302- Digital Logic Design (Session - 5)
                                 Ref No: 1022709
                                    Time: 60 min
                                        Marks: 38

Question No: 1 ( Marks: 1 ) - Please choose
one
According to Demorgan’s theorem:

       _________
   ► A.B.C
   ►
   ►
   ►

Question No: 2 ( Marks: 1 ) - Please choose
one
The Extended ASCII Code (American Standard Code
for Information Interchange) is a _____ code

   ► 2-bit
   ► 7-bit
   ► 8-bit
   ► 16-bit

Question No: 3   ( Marks: 1 )   - Please choose
one

The AND Gate performs a logical
__________function

    ► Addition
    ► Subtraction
    ► Multiplication
    ► Division

Question No: 4 ( Marks: 1 ) - Please choose
one
NOR gate is formed by connecting _________

    ► OR Gate and then NOT Gate
    ► NOT Gate and then OR Gate
    ► AND Gate and then OR Gate
    ► OR Gate and then AND Gate

Question No: 5 ( Marks: 1 ) - Please choose
one
Generally, the Power dissipation of _______ devices
remains constant throughout their operation.

    ► TTL
    ► CMOS 3.5 series
    ► CMOS 5 Series
      ► Power dissipation of all circuits increases with
time.

Question No: 6     ( Marks: 1 )   - Please choose
one

Two 2-bit comparator circuits can be connected to
form single 4-bit comparator

    ► True
    ► False

Question No: 7 ( Marks: 1 ) - Please choose
one
When the control line in tri-state buffer is high the
buffer operates like a ________ gate

    ► AND
    ► OR
    ► NOT
    ► XOR

Question No: 8 ( Marks: 1 ) - Please choose
one
The GAL22V10 has ____ inputs

    ► 22
    ► 10
    ► 44
    ► 20

Question No: 9 ( Marks: 1 ) - Please choose
one
The ABEL symbol for “OR” operation is

   ►!
   ►&
   ►#
   ►$

Question No: 10 ( Marks: 1 ) - Please choose
one
The OLMC of the GAL16V8 is _______ to the OLMC
of the GAL22V10

   ► Similar
   ► Different
   ► Similar with some enhancements
   ► Depends on the type of PALs input size

Question No: 11 ( Marks: 1 ) - Please choose
one
All the ABEL equations must end with ________

   ► “ . “ (a dot)
   ► “ $ “ (a dollar symbol)
   ► “ ; “ (a semicolon)
   ► “ endl “ (keyword “endl”)

Question No: 12 ( Marks: 1 ) - Please choose
one
The Quad Multiplexer has _____ outputs

    ►4
    ►8
    ► 12
    ► 16

Question No: 13 ( Marks: 1 ) - Please choose
one
"Sum-of-Weights" method is used __________
    ► to convert from one number system to
other
    ► to encode data
    ► to decode data
    ► to convert from serial to parralel data

Question No: 14 ( Marks: 1 ) - Please choose
one
Circuits having a bubble at their outputs are
considered to have an active-low output.

    ► True
    ► False

Question No: 15 ( Marks: 1 ) - Please choose
one
(A + B)(A + B + C)(A + C) is an example of ______________

    ► Product of sum form

    ► Sum of product form
    ► Demorgans law
    ► Associative law

Question No: 16 ( Marks: 1 )        - Please choose
one
Which one is true:

    ► Power consumption of TTL is higher than
of CMOS
    ► Power consumption of CMOS is higher than of
TTL
    ► Both TTL and CMOS have same power
consumption
    ► Power consumption of both CMOS and TTL
depends on no. of gates in the circuit.

Question No: 17 ( Marks: 1 )
Which device performs an operation which is the opposite
of the Decoder function?

Ans:
Encoder function.
Question No: 18 ( Marks: 1 )
Name any two modes in which PALs are programmed.
Ans:

PAL devices are programmed by blowing the
fuses permanently using over voltage.
Question No: 19 ( Marks: 2 )
Explain Combinational Function Devices?

Ans;
Xor,Xnor,NAND,NOR are combinational function
devices.

Question No: 20 ( Marks: 3 )
Differentiate between hexadecimal and octal number
system

octal - base 8
hexadecimal - base 16
Octal and hex are used to represent numbers
instead of decimal because there is a very easy
and direct way to convert from the "real" way
that computers store numbers (binary) to
something easier for humans to handle (fewer
symbols). To translate a binary number to
octal, simply group the binary digits three at a
time and convert each group. For hex, group
the binary digits four at a time.

Question No: 21 ( Marks: 5 )
Explain “Sum-of-Weights Method” for Hexadecimal to
Decimal Conversion with at least one example ?

Ans:

The hexadecimal (Hex) numbering system provides
even shorter notation than octal. Hexadecimal uses a
base of 16. It employs 16 digits: number 0 through 9,
and letters A through F, with A through F substituted
for numbers 10 to 15, respectively,
Hexadecimal numbers can be expressed as their decimal
equivalents by using the sum of weights method, as shown
in the following example:

        Weight    2      1     0
        Hex. Number      1     B    7
                                    7 x 160 = 7 x 1   =
        7
                                    11 x 161 = 11x 16 =
     176
                                    1 x 162 = 1 x 256 =
  256
                         Sum of products
    43910
Like octal numbers, hexadecimal numbers can easily be
converted to binary or vise versa. Conversion is
accomplished by writing the 4-bit binary equivalent of the
hex digit for each position, as illustrated in the following
example:

        Hex. Number      1     B    7

                    0001     1011   0111          Binary
  number

       Hexadecim    Binary         Decimal
       al
       0            0000           0
       1            0001           1
       2            0010           2
       3            0011           3
       4            0100           4
       5            0101           5
       6            0110           6
       7            0111           7
       8            1000           8
       9            1001           9
       A            1010           10
       B            1011           11
       C            1100           12
       D            1101           13
       E            1110           14

More CS302 files

All CS302 files · Midterm Prep 2026 · MCQs Bank