CS302_Spring2009_2010_MidTerm_BY_SAIDA_ALI.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)

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 CS302_Spring2009_2010_MidTerm_BY_SAIDA_ALI.pdf for free?

You can preview and download "CS302_Spring2009_2010_MidTerm_BY_SAIDA_ALI.pdf" (CS302 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs302-spring2009-2010-midterm-by-saida-ali-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

1
    COMPOSED BY SADIA ALI SADIIIIJ
                     MIDTERM EXAMINATION
                             Spring 2009
              CS302- Digital Logic Design (Session - 1)

Question No: 1 ( Marks: 1 ) - Please choose one
In the binary number “10011” the weight of the most significant digit is
____

    ► 24 (2 raise to power 4)
    ► 23 (2 raise to power 3)
    ► 20 (2 raise to power 0)
    ► 21 (2 raise to power 1)

Question No: 2      ( Marks: 1 )    - Please choose one
An S-R latch can be implemented by using _________ gates

    ► AND, OR
    ► NAND, NOR
    ► NAND, XOR
    ► NOT, XOR

Question No: 3      ( Marks: 1 )    - Please choose one
A latch has _____ stable states

    ► One
    ► Two
    ► Three
    ► Four

Question No: 4      ( Marks: 1 )    - Please choose one
Sequential circuits have storage elements

    ► True
    ► False

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

    ►$
    ►#

2
    COMPOSED BY SADIA ALI SADIIIIJ
    ►!
    ►&

Question No: 6       ( Marks: 1 )       - Please choose one
A Demultiplexer is not available commercially.

    ► True
    ► False

Question No: 7       ( Marks: 1 )       - Please choose one
Using multiplexer as parallel to serial converter requires ___________
connected to the multiplexer

    ► A parallel to serial converter circuit
    ► A counter circuit
    ► A BCD to Decimal decoder
    ► A 2-to-8 bit decoder

Question No: 8       ( Marks: 1 )       - Please choose one
The device shown here is most likely a

    ► Comparator
    ► Multiplexer
    ► Demultiplexer
    ► Parity generator

Question No: 9       ( Marks: 1 )       - Please choose one
The main use of the Multiplexer is to

   ► Select data from multiple sources and to route it to a single
Destination
   ► Select data from Single source and to route it to a multiple

3
    COMPOSED BY SADIA ALI SADIIIIJ
Destinations
    ► Select data from Single source and to route to single destination
    ► Select data from multiple sources and to route to multiple destinations

Question No: 10      ( Marks: 1 )    - Please choose one
A logic circuit with an output <PRIVATE "TYPE=PICT;ALT=
mcq5_01700.gif">                      consists of ________.

    ► two AND gates, two OR gates, two inverters
    ► three AND gates, two OR gates, one inverter
    ► two AND gates, one OR gate, two inverters
    ► two AND gates, one OR gate

Question No: 11      ( Marks: 1 )    - Please choose one
The binary value of 1010 is converted to the product term

    ► True

    ► False

Question No: 12      ( Marks: 1 )    - Please choose one
The 3-variable Karnaugh Map (K-Map) has _______ cells for min or max terms

          ► 4
          ► 8
          ► 12
          ► 16

Question No: 13 ( Marks: 1 ) - Please choose one
Following is standard POS expression

    ► True
    ► False

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

4
    COMPOSED BY SADIA ALI SADIIIIJ
The output of the expression F=A+B+C will be Logic ________ when
A=0, B=1, C=1. the symbol’+’ here represents OR Gate.

    ► Undefined
    ► One
    ► Zero
    ► 10 (binary)

Question No: 15     ( 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: 16 ( Marks: 1 ) - Please choose one
The diagram given below represents __________

    ► Demorgans law
    ► Associative law
    ► Product of sum form
    ► Sum of product form

Question No: 17 ( Marks: 1 )
How can a PLD be programmed?
PLDs are programmed with the help of computer which runs the
programming
software. The computer is connected to a programmer socket in which
the PLD is inserted for programming. PLDs can also be programmed
when they are installed on a circuit board

Question No: 18     ( Marks: 1 )

5
    COMPOSED BY SADIA ALI SADIIIIJ
How many input and output bits do a Half-Adder contain?
The Half-Adder has a 2-bit input and a 2-bit output.

Question No: 19      ( Marks: 2 )
Explain the difference between 1-to-4 Demultiplexer 2-to-4 Binary
Decoder?
The circuit of the 1-to-4 Demultiplexer is similar to the 2-to-4 Binary
Decoder
described earlier figure 16.9. The only difference between the two is the
addition of the Data Input line, which is used as enable line in the 2-to-4
Decoder circuit figure
Question No: 20 ( Marks: 3 )
Name the three declarations that are included in “declaration
section” of the module that is created when an Input (source) file is
created in ABEL.
Device declaration, pin declarations and set declarations.

Question No: 21      ( Marks: 5 )
Explain with example how noise affects Operation of a CMOS AND Gate
circuit.
Two CMOS 5 volt series AND gates are connected together. Figure 7.3
The first AND gate has both its inputs connected to logic high, therefore
the output of the gate is guaranteed to be logic high. The logic high
voltage output of the first AND gate is assumed to be 4.6 volts well within
the valid VOH range of 5-4.4 volts. Assume the same noise signal (as
described earlier) is added to the output signal of the first AND gate.

Question No: 22 ( Marks: 10 )
explain the SOP based implementation of the Adjacent 1s Detector
Circuit

The Adjacent 1s Detector accepts 4-bit inputs. If two adjacent 1s are
detected in the
input, the output is set to high. The operation of the Adjacent 1s Detector
is represented by the
function table. Table 13.6. In the function table, for the input
combinations 0011, 0110, 0111,
1011, 1100, 1101, 1110 and 1111 the output function is a 1.
Implementing the circuit directly from the function table based on the
SOP form
requires 8 AND gates for the 8 product terms (minterms) with an 8-input
OR gate. Figure 13.3.
The total gate count is

6
    COMPOSED BY SADIA ALI SADIIIIJ
  One 8 input OR gate
  Eight 4 input AND gates
  Ten NOT gates
The expression can be simplified using a Karnaugh map, figure 13.4, and
then the

More CS302 files

All CS302 files · Midterm Prep 2026 · MCQs Bank