CACS484 Database Programming

Database Programming TU Board 2023 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 8 · TU Board 2023

Course Title: Database Programming (CACS484)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to answer the question in their own words as far as possible.

Group B

Attempt any SIX question.(6 × 5 = 30)

  1. 2.

    Explain the PL/SQL block structure with an example.

    5
  2. 3.

    What are records and nested records in PL/SQL? Explain benefits of using records.

    5
  3. 4.

    How functions can be called and parameterized in databases? Explain with examples.

    5
  4. 5.

    What is a cursor? Explain different types of cursors used in database.

    5
  5. 6.

    Why do we need to use triggers in the database? Explain the use of triggers with proper examples.

    5
  6. 7.

    How user define exceptions can be created in PL/SQL? Explain with proper example.

    5
  7. 8.

    Write short notes (any two): a) INSTEAD OF trigger b) Packages c) Parameterized cursor

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    Explain PL/SQL architecture. Differentiate between SQL and PL/SQL Also explain the conditional constructs used in PL/SQL.

    10
  2. 10.

    Define stored procedure. Explain different parameter modes used in stored procedures. Also differentiate between functions and stored procedure with examples.

    10
  3. 11.

    Explain row trigger and statement trigger with examples. Explain any five SQL*PLUS commands.

    10

— The End —