CS302 - Lab Manual - Week No (4).pdf

Verified academic study resource for CS302 (Digital Logic Design) under the Computer Science at Virtual University of Pakistan. This PDF document (Verified Study Resource) covers Full Course Curriculum spanning approximately 280 pages across 8 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
Study Resource
Coverage
Full Course Curriculum

Review this document alongside the official handouts and test your retention in the Interactive MCQs Studio.

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)
  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 CS302 - Lab Manual - Week No (4).pdf for free?

You can preview and download "CS302 - Lab Manual - Week No (4).pdf" (CS302 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs302-lab-manual-week-no-4-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 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 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

                                  Lab Experiment # 04
 Boolean algebra and Simplification of Boolean expressions - I
 Objectives

 Object
    1- To study DE Morgan’s theory and implemented it.
    2- Learn how to simplify Boolean logic equations using DE Morgan’s theory.

 DE Morgan’s Theory – Background
Augustus De Morgan (27 June 1806 – 18 March 1871) was a British mathematician and logician. He
formulated De Morgan's laws.

In simple words, DE Morgan’s Theory is used to convert AND/NAND gates to OR/NOR ones, and presented
OR/NOR gates by AND/NAND gates by these 2-laws:

                                            A + B= (A’. B’)’

                                             A. B = (A’ + B’)’

 Basics of Boolean algebra
     Boolean Postulates

     P1: X = 0 or X = 1
     P2: 0. 0 = 0
     P3: 1 + 1 = 1
     P4: 0 + 0 = 0
     P5: 1. 1 = 1
     P6: 1. 0 = 0. 1 = 0
     P7: 1 + 0 = 0 + 1 = 1

Boolean Laws
T1: Commutative Law

      (a) A + B = B + A
      (b) A B = B A

T2: Associate Law
      (a) (A + B) + C = A + (B + C)
      (b) (A B) C = A (B C)

T3: Distributive Law
      (a) A (B + C) = A B + A C
      (b) A + (B C) = (A + B) (A + C)

T4: Identity Law
      (a) A + A = A
      (b) A A = A

T5:
      (a)

      (b)

T6: Redundancy Law
      (a) A + A B = A
      (b) A (A + B) = A
T7:
      (a) 0 + A = A
      (b) 0 A = 0
T8:
      (a) 1 + A = 1
      (b) 1 A = A

T9:
      (a)

      (b)

T10:
       (a)

       (b)

T11: De Morgan's Theorem

       (a)

       (b)

Simplifying Boolean logic functions
     Given the following circuit

     The Boolean expression that represents the above circuit is as follows

     We can simplify the above Boolean expression as follows

    This means that the above circuit can be replaced by the following one

Lab Tasks

Task 1: Circuit analysis
Find the Boolean expression that represents the outputs x and y shown in the following
circuit.

    According to the circuit above find the equation of X and Y, then fill the truth table.

    X=

    Y=

                                  A        B        X        Y
                                  0        0
                                  0        1
                                  1        0
                                  1        1
    What do you notice?

Task 2: Circuit analysis
Find the Boolean expression that represents the outputs x and y shown in the following
circuit.

   According to the circuit above find the equation for X and Y, then fill the truth table.

   X=

   Y=

                                 A        B        X        Y
                                 0         0
                                 0         1
                                 1         0
                                 1         1
What do you notice?

Task 3: Simplifying Boolean functions
Simplify the following Boolean expression
    F (A, B) = (A. B) + A’ (A+B)

Draw the simplified and the original Boolean expression using EWB and make sure that they
are booth equivalent by filling-in the following truth table.
                     A         B       F (A, B) (original)      Y (Simplified)
                      0        0
                      0        1
                      1        0
                      1        1

Task 4: Simplifying Boolean functions
Simplify the following Boolean expression
F (A, B, C) = (A+C’) + C (C.A’ + (B.A) +C

Draw the simplified Boolean expression using EWB. Find out the truth table of the circuit.

Task 5: Simplifying Boolean functions in EWB using the logic converter
Simplify the following Boolean expression in EWB using the logic converter
F (A, B, C) = AB'C (BD + CD) + AC'

To do so, you need to enter the expression as shown below, and then click on the following
button                     to extract the truth table of the expression. Finally, click on the
following button                        that will generate the simplified form of the equation.

To draw the circuit after simplification, you need to click on the     following b u t t o n
                , this will realize the simplified expression using basic gates.

Task 6: Simplifying Boolean functions in EWB using the logic converter
Simplify the following Boolean expression in EWB using the logic converter
F (A, B, C) = AB'C'+ A'B'C'+ A'BC'+ A'B'C

More CS302 files

All CS302 files · Midterm Prep 2026 · MCQs Bank