CS409 Week 2.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
- 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
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 CS409 Week 2.pdf for free?
You can preview and download "CS409 Week 2.pdf" (CS409 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs409-week-2-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
Introduction to Database Administration
Composite Keys
Examples
Composite Keys Examples
Composite Keys Examples
• Meaningful learning-1
• Meaningful learning-2
• Wrong composite key
• Indexing columns
Composite Keys Examples
Meaningful learning-1
Composite Keys Examples
Meaningful learning-2
• Analysis and Semantics
• Evaluations
Semantics: Creating two tables with relevant data
Analysis: Y.x=1 cannot be mapped exactly with
X.x records 1, 3 or 1, 6
Evaluations: Default FK Y.x cannot be created.
Trigger can be created on Y.x to make sure Y.x will
be a subset of X.x. Otherwise, data can be put in Y.x
which does not belong to or mapped to X.x.
Composite Keys Examples
Wrong composite key
Composite Keys Examples
Indexing columns
Introduction to Database Administration
Additional or Other
Constraints
Additional or Other Constraints
Other constraints
• What are additional or
other constraints?
• Null
• Domain constraint
Additional or Other Constraints
What are additional or
other constraints?
Other Constraints means additional
constraints in addition to the standard
constraints PK, FK, Composite Key, Surrogated
key
For example, NOT NULL, CHECK, DEFAULT,
UNIQUE etc.
Additional or Other Constraints
Null
Represents a value of an attribute that is
currently unknown or is no applicable for
this tuple, means nothing.
Cannot compute anything with the Null
Additional or Other Constraints
Domain constraint
Specifies that the value of attribute A must be
an atomic value from the domain DOM(A).
E.g., Width of column or Check on column.
Domain constraints must be Atomic means no
two mobile numbers saved in one cell of a
domain. Size of column must be
appropriate.
Introduction to Database Administration
Additional Constraints
using Tables
Additional Constraints using Tables
Other constraints
• CHECK constraint
• Unique & Default constraints
• Composite unique constraints
• Example of Trigger
Additional Constraints using Tables
CHECK constraints
The check clause in SQL permits domains to
be restricted:
• Use check clause to ensure that an hourly-
wage domain allows only values greater
than a specified value.
• create domain hourly-wage numeric(5,2)
constraint value-test check(value > = 4.00)
• The domain hourly-wage is declared to be a
decimal number with 5 digits, 2 of which
are after the decimal point
Additional Constraints using Tables
CHECK constraints
create table account
(branch-name Varchar(15),
acc-number Char(10) not null,
balance integer,
……)
alter table account
add constraint ck1 check (bal > 0);
alter table emp
add constraint ck1_deptno
check (deptno in (10,20,30));
Additional Constraints using Tables
UNIQUE & Default constraints
create table Dependent
(empno CHAR(6),
SNO Number(2),
DepName varchar2(25) NOT NULL,
DOB Date,
BloodGroup VARCHAR2(5),
RelType CHAR(1) Default ‘W’);
alter table dependent
add constraints pk_dep_empnoSNO primary key
(empno, sno);
alter table dependent
add constraints uniq_dependent unique (empno,
DepName);
Additional Constraints using Tables
Composite UNIQUE constraints
HECK (Max_Participants>=Enrolled_Participants)
CHECK (Deptno>0)
CHECK (RelType IN ('S', 'D', 'W'))
Default 'Y‘
Database Triggers
Additional Constraints using Tables
Example of Trigger
Introduction to Database Administration
Additional Constraints
using DDL Alter SQL
Additional Constraints using DDL Alter SQL
Constraints with DDL Alter SQL
• PK constraint on table
• FK constraint on table
• Composite unique & PK
constraints
Additional Constraints using DDL Alter SQL
Primary key constraint on table
create table customer
(cid char(10),
Name varchar2(100) Not null,
address varchar2(100),
city varchar2(20)
);
alter table customerMore CS409 files
- CS 409P Labs solutions BY Mahjabeen.pdf (PDF · Study Resource)
- CS409 Week 1.pdf (PDF · Study Resource)
- CS409 Week 3.pdf (PDF · Study Resource)
- CS409 Week 4.pdf (PDF · Study Resource)
- Fall 2022_CS409_2 (1).docx (DOC · Study Resource)
- 65915613-CS409-Assignment.pdf (PDF · Assignment)
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS409 Final term Handouts + MCQS Part 2.pdf (PDF · Final-Term)