CS409 Final term Handouts + MCQS Part 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 (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 450 pages across 4 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
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Tags
MCQ, HANDOUT, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS409, regardless of midterm scores.

What this file covers — CS409 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. 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 Final term Handouts + MCQS Part 2.pdf for free?

You can preview and download "CS409 Final term Handouts + MCQS Part 2.pdf" (CS409 PDF, ~450 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs409-final-term-handouts-mcqs-part-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 Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (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

What is an Oracle Triggers?

      A trigger is a named PL/SQL block stored in the Oracle Database and executed
       automatically when a triggering event takes place. The event can be any of the following:
      A data manipulation language (DML) statement executed against a table e.g., INSERT,
       UPDATE, or DELETE.
      For example, if you define a trigger that fires before an INSERT statement on the
       customers table, the trigger will fire once before a new row is inserted into the customers
       table.
      A data definition language (DDL) statement executes e.g., CREATE or ALTER
       statement. These triggers are often used for auditing purposes to record changes of the
       schema.
      A system event such as startup or shutdown of the Oracle Database.
      A user event such as login or logout.
      The act of executing a trigger is also known as firing a trigger. We say that the trigger is
       fired.

Oracle Trigger Usage

Oracle triggers are useful in many cases such as the following:

      Enforcing complex business rules that cannot be established using integrity constraint
       such as UNIQUE, NOT NULL, and CHECK.
      Preventing invalid transactions.
      Gathering statistical information on table accesses.
      Generating value automatically for derived columns.
      Auditing sensitive data.

Trigger’s Disable/ Enable

Sometimes, you may want to disable a trigger for testing and troubleshooting purposes. To
disable a trigger, you use the ALTER TRIGGER DISABLE statement:

ALTER TRIGGER trigger_name DISABLE;

ALTER TABLE table_name DISABLE ALL TRIGGERS;

What is a Cursor?

      A cursor is a pointer that points to a result of a query.
      It is mainly used with tables which return more than one row.
      It is handled implicitly and explicitly.

Implicit Cursor

      Whenever Oracle executes an SQL statement such as SELECT INTO, INSERT,
       UPDATE, and DELETE, it automatically creates an implicit cursor.
      Oracle internally manages the whole execution cycle of implicit cursors and reveals only
       the cursor’s information and statuses such as SQL%ROWCOUNT, SQL%ISOPEN,
       SQL%FOUND, and SQL%NOTFOUND.

Implicit Cursor

      The implicit cursor is not elegant when the query returns zero or multiple rows which
       cause NO_DATA_FOUND or TOO_MANY_ROWS exception respectively.

Explicit Cursor

      An explicit cursor is an SELECT statement declared explicitly in the declaration section
       of the current block or a package specification.
      For an explicit cursor, you have control over its execution cycle from OPEN, FETCH,
       and CLOSE.
      Oracle defines an execution cycle that executes an SQL statement and associates a cursor
       with it.

Execution Cycle of Explicit Cursor

Cursor’s usage

      Declare a cursor

       CURSOR cursor_name IS query;

      Open a cursor

       OPEN cursor_name;

Cursor’s usage

      Fetch from a cursor

  The FETCH statement places the

   contents of the current row into var.

  FETCH cursor_name INTO variable_list;

  To retrieve all rows in a result set, you

   need to fetch each row till the last one.

      Closing a cursor

   CLOSE cursor_name;

Explicit Cursor Attributes

      %ISOPEN
      %FOUND
      %NOTFOUND
      %ROWCOUNT

Implicit Cursor – Record Type

      A record is a composite data structure, which means that it is composed of one or more
       elements.
      Records are very much like a row of a database table, but each element of the record does
       not stand on its own. PL/SQL supports three kinds of records: table-based, cursor-based,
       and programmer-defined.

What is an Array?

All VARRAYS consist of contiguous memory locations. The lowest address corresponds to the first
element and the highest address to the last element.

Declaration of an Array

A varray type is created with the CREATE TYPE statement. You must specify the maximum size and
the type of elements stored in the varray.

CREATE Or REPLACE TYPE namearray AS VARRAY(3) OF VARCHAR2(10);

Concepts of Oracle Instance-1

Introduction

A database instance is a set of memory structures that manage database files. A database is a set of
physical files on disk created by the CREATE DATABASE statement. The instance manages its
associated data and serves the users of the database.

Every running Oracle database is associated with at least one Oracle database instance. Because an
instance exists in memory and a database exists on disk, an instance can exist without a database and a
database can exist without an instance.

Configuration Option

During installation, oracle has an option to install instance, database or both

Database Instance Structure
When an instance is started, Oracle Database allocates a memory area called the system global area
(SGA) and starts one or more background processes. The SGA serves various purposes, including the
following:

■Maintaining internal data structures that are accessed by many processes and threads concurrently

■Caching data blocks read from disk

■Buffering redo data before writing it to the online redo log files

■Storing SQL execution plans

The SGA is shared by the Oracle processes, which include server processes and background processes,
running on a single computer. The way in which Oracle processes are associated with the SGA varies
according to operating system.

A database instance includes background processes. Server processes, and the process memory allocated in these
processes, also exist in the instance. The instance continues to function when server processes terminate.

Database Instance Configurations

You can run Oracle Database in either of the following mutually exclusive configurations:

■Single-instance configuration

A one-to-one relationship exists between the database and an instance.

■Oracle Real Application Clusters (Oracle RAC) configuration

A one-to-many relationship exists between the database and instances.

Duration of an Instance

More CS409 files

All CS409 files · Midterm Prep 2026 · MCQs Bank