CS 409P Labs solutions BY Mahjabeen.pdf

Verified academic study resource for CS409 (Ethical & Legal Issues in Computing) 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
CS409 – Ethical & Legal Issues in Computing
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 — CS409 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 CS 409P Labs solutions BY Mahjabeen.pdf for free?

You can preview and download "CS 409P Labs solutions BY Mahjabeen.pdf" (CS409 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs-409p-labs-solutions-by-mahjabeen-pdf) with 100% free high-speed downloads and zero registration requirements.

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

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

                                                                       ‫ِل مم لرٱ َّ ي‬
                                     ‫ِهٱل ِ يم مِ َّ حْ لرٱ ِ يم لِ لَّرٱ‬
====================================================================

                           CS409 [Practical]
                              Introduction to Database Administration
                                            LAB SOLUTIONS
                                          Made by Mah jabeen
                                             0321 2711298
                                      [mahjabeen97869@gmail.com]

====================================================================

LAB 1

Identifying Super Keys, Candidate Keys and Primary key from
Database Tables

Problem Statement:

Suppose, you are hired as a junior database developer in an XYZ software house. The software house gets a
new project to develop the database of an ABC university. As a part of database development team, you are
assigned the following tasks to perform.

Task 1:

Create a table named “Student” which should have the following attributes:
Roll Number, Student Name, Father Name, CNIC#, Mobile#, Degree Program, CGPA.
 Roll         Student       Father            CNIC#            Mobile#          Degree    CGPA
 Number       Name          Name                                                Program

Task 2:
Identify Super Keys, and Candidate Keys for the given‫ٱ‬table‫“ٱ‬Student”.
Super Key: {Roll Number}, {CNIC#}, {Roll Number, Student Name}, {CNIC#, Student Name}, {Roll
Number, Student Name, Father Name, CNIC#, Mobile#, Degree Program, CGPA}
Candidate Keys: {Roll Number}, {CNIC#}, {Mobile#}

Task 3:
Create‫ٱ‬another‫ٱ‬table‫ٱ‬named‫“ٱ‬Employee”‫ٱ‬with‫ٱ‬following‫ٱ‬attributes:Emp ID,
Name, CNIC, Salary, Designation, Email ID.
 Emp ID          Name           CNIC            Salary          Designation,    Email ID

Task 4:
Identify Candidate Keys and Primary Key for the given table‫“ٱ‬Employee”.
Candidate Keys: {Emp ID}, {CNIC}, {Email ID}
Primary Key: {Emp ID}

LAB 02
Identifying Surrogated Keys and Foreign key from Database Tables.

Problem Statement:

 Suppose,‫ٱ‬you‫ٱ‬are‫ٱ‬hired‫ٱ‬as‫ٱ‬a‫ٱ‬junior‫ٱ‬database‫ٱ‬developer‫ٱ‬in‫ٱ‬an‫ٱ‬Abbot‟s‫ ٱ‬solution. The software house
 gets a new project to develop the database for a new university. As a part of database development
 team, you are assigned the following tasks to perform.

Task 1:

 Create a table named “Student” which should have the following attributes:
 Roll Number, Student Name, Father Name, CNIC#, Mobile#, Degree Program, CGPA.

 Roll           Student        Father Name CNIC#,           Mobile#,      Degree           CGPA
 Number         Name                                                      Program

Task 2:
 Identify‫ٱ‬Surrogated‫ٱ‬Keys‫ٱ‬for‫ٱ‬the‫ٱ‬given‫ٱ‬table‫“ٱ‬Student”.
 Surrogated Keys: {Application Number}

Task 3:
 Create‫ٱ‬another‫ٱ‬table‫ٱ‬named‫“ٱ‬Employee”‫ٱ‬with‫ٱ‬following‫ٱ‬attributes:
 Emp ID, Name, CNIC, Salary, Designation, Email ID.
 Emp ID          Name            CNIC            Salary         Designation     Email ID

 Create‫ٱ‬another‫ٱ‬table‫ٱ‬named‫“ٱ‬Department”‫ٱ‬with‫ٱ‬following‫ٱ‬attributes:
 Dpt ID, Dpt Name, Emp ID, Tel No

 Dpt ID                   Dpt Name               Emp ID                Tel No

Task 4:
 Identify Primary key and Foreign Key for the given tables‫“ٱ‬Employee” and‫“ٱ‬Department”.
 Employee Table: Primary
 key: {Emp ID}Foreign
 Key: {} Department
 Table: Primary key: {Dpt
 ID} Foreign Key: {Emp
 ID}

LAB 3
Problem Statement:
The ABC Company aims to develop a project management software which enables its users to manage and

 track projects, deadlines, schedules, and other workflow processes.

 Each user has to perform a specific role. User can create tasks along with discussion threads. Users can post
 messages in Discussion Threads. User can also able to edit tasks and set deadlines. A complete progress can
 be viewed for the specific task.

You‟re required to perform the following tasks according to above scenario.

Task 1
 Identify Entities, their attributes, relationships among entities in above scenario

          Entities                   Attributes

          Role                       role_id, name

          User                       user_id, name

          Task                       Task_id, title, creation_date, deadline,
                                     assigned_to

          Discussion Thread          Thread_id, title

          Messages                   msg_id, message_body, sender_id

Task 2
 Draw Entity Relationship Diagram (ERD) for it.

                                                            Task_id
              role_id          Name                 Title             Deadline

                                        Creation_date                           Assigned_to
                                                              Task
                Role

                                                                                                    Thread_id
                 Has
                                                                                                                 Title

                                                              Has                               1   Discussion
                                                                                                     Thread

                                                                        msg_id      Sender_id

             user_id
                                Name   Has
                                                    Message_body

                                                                      Message                          Has
                        User                 Post

LAB 04

More CS409 files

All CS409 files · Midterm Prep 2026 · MCQs Bank