CACS484 Database Programming

Database Programming old question papers

Pick a year on the left to see the full paper, exactly as it was set. 1 questions have come up in more than one paper.

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 8 · TU Board 2025

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.

    Define database programming. Describe the differences between procedural and non-procedural access to a database. [1+4]

    5
  2. 3.

    What is a subquery? Explain the use of GROUP BY and HAVING clauses in SQL. [1+4]

    5
  3. 4.

    Explain the concept of parameter modes (IN, OUT, IN OUT) in PL/SQL with examples. [5]

    5
  4. 5.

    Define trigger. Write the syntax to create a row-level trigger in PL/SQL. [1+4]

    5
  5. 6.

    Write a PL/SQL block using an explicit cursor to display all employee names from the Employee table. [5]

    5
  6. 7.

    What are constants in PL/SQL? Give syntax and an example. [5]

    5
  7. 8.

    Differentiate between anonymous blocks and named blocks in PL/SQL. [5]

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    Explain stored procedure. Explain views in SQL, their creation, modification, and deletion with examples. [3+7]

    10
  2. 10.

    Explain the structure of a PL/SQL block with an example. Explain exception handling in PL/SQL with examples of predefined and user-defined exceptions. [5+5]

    10
  3. 11.

    What are cursor parameters? Give an example. Describe the types of iterative control structures available in PL/SQL with examples. [4+6]

    10

— The End —