Jump2Learn: S: P - 306: Practical S Y B.C.A. (S - Iii) E
Jump2Learn: S: P - 306: Practical S Y B.C.A. (S - Iii) E
Page 1 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 3 Student’s Signature
1. Write a program that works with two files. In first file store the rollno, name,
city of five students. In second file store result details (rollno, marks, status
[P = PASS,F= FAIL, A=ABSENT] for each student.
2. Write a program to implement Output restricted Dequeue using Linked List and
perform insert and delete-operations on it. 40
Page 2 of 33
Jump2Learn
The Online Learning Place
(B) Write a PL/SQL Function that will take as a parameter medicine type 25
the company name as an arguments and return the number of company
form the given company. That make the given type of medicine. Also write
the calling program.
*********
Page 3 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 1 Student’s Signature
Page 4 of 33
Jump2Learn
The Online Learning Place
(d) Delete all order details for the product name start with J or T.
(e) Change Sell_price and Cost_price as 100 and 50 for the product `trouser'.
(A) Create UDF which check whether the Qty_order is less than Qty_on_hand for
particular Prd_no.
(B) If Qty_order is less than Qty_on_hand then return value to calling
environment and update the stock otherwise raise the exception and Display
message "QTY_ON_HAND IS LESS THEN ORDER QUANTITY".(use Procedure)
4. Viva + Files 20
*********
Page 5 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 2 Student’s Signature
(1) Display the patient name who live in the same city as their doctor city.
(2) Display patient information for the bill paid in `June-15'.
(3) Display doctor wise total no. of patients.
(4) Display patient name whose bill amount is between 25000 To 30000.
Page 6 of 33
Jump2Learn
The Online Learning Place
Display patient name, doctor name and bill amount in the order of patient name.
4. Viva + Files 20
*********
Page 7 of 33
Jump2Learn
The Online Learning Place
Instructions:
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 3 Student’s Signature
Page 8 of 33
Jump2Learn
The Online Learning Place
2. Write a menu driven program to push and pop into dynamic stack. 40
4. Viva + Files 20
*********
Page 9 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 1 Student’s Signature
Page 10 of 33
Jump2Learn
The Online Learning Place
*********
Page 11 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 2 Student’s Signature
2. Write a program to create a class shape with functions to find area and 40
display the name of the shape and other essential component of the class.
Create derived circle, rectangle and trapezoid each having overridden
functions area and display. Write a suitable program to illustrate virtual functions.
Page 12 of 33
Jump2Learn
The Online Learning Place
*********
Page 13 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 3 Student’s Signature
2. Write a program with Student as abstract class and create derive classes - 40
B.C.A.,B.B.A. and B.Sc., StudentName,Department as data members and
member functions are getData and setData from base class student. Create
the objects of the derived classes and process them and access them
using array of pointer of type base class Student.
Page 14 of 33
Jump2Learn
The Online Learning Place
1. Fixed Deposit Maturity System whenever a fixed deposit is due for payment
and if there are fixed deposit amount is greater than 20000 then crediting
fixed deposit amount on maturity to their account held in bank otherwise
provide message for cash payment in allow, an entry is passed in TRAN_MST
table for deposit of the fixed deposit amount as well as ACCT_MST table is
updated to reflect the increase of the current balance. Finally the status of
that fixed deposit id updated as ‘M’ as matured in the FD_DETS table.
Perform With the help of cursor and procedure.
2. Generate Id with trigger, Transaction Id start with “T” FD_ID start with
“FD” and Account Id start with “AC”.
*********
Page 15 of 33
Jump2Learn
The Online Learning Place
*********
Page 16 of 33 1
Jump2Learn
The Online Learning Place
Instructions:
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 5 4 5 Student’s Signature
1. (1) Write a PL/SQL block that will accept an account number from 20
the user and debit an amount of Rs. 5000 from the account
if account has a minimum balance Rs. 1000 after amount is debited.
Page 17 of 33
Jump2Learn
The Online Learning Place
2. Linked lists : 40
1. Write an algorithm to detect a cycle in a linked list.
2. Remove consecutive duplicate entries from a given linked list.
3. Given a set of nine single digits (not necessarily distinct) say 0,0,1,3,4,6,7,8,9. 40
It is possible to form many distinct times in a 12 hour time format HH:MM:SS,
Such as 10:36:40 or 01:39:46 by using each of the digits only once. The
Objective is to find the maximum possible valid time (00:00:01 to 12:00:00)
that can be formed using some six of the nine digits exactly once. In this case,
It is 10:49:38.
Example :
(1) Set ={0,1,3,4,2,1,5,8,0}
It will print : 11:58:43
(2) Set ={0,9,6,9,7,8,9,6,3}
It will print : Impossible Operation!
*********
Page 18 of 33
Jump2Learn
The Online Learning Place
Instructions:
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 5 4 6 Student’s Signature
1. (i) Write a PL/SQL block of code that raise the salary for all the employees 20
In “JAVA” department by 20%.
DEPARTMENT (DepartmentId,DName)
EMPLOYEE (EmployeeId, EName , Salary DepartmentId)
EMPRAISE (EmpRaiseId, EmployeeId, RaiseDate, RaiseAmount)
(ii) Write a trigger when any raise is given to the employees, an audit trail 20
Of the same is maintained in the EmpRaise table.
3. Write a program to create class to read and add two times using binary 40
Plus (+) operator overloading program in C++.
*********
Page 19 of 33 1
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 5 4 4 Student’s Signature
Emp_mst (Empno, Ename, city, Dob) (Empno must be start with ‘E’)
Branch (B_code, bname,br_city) (B_code must be start with ‘B’)
Emp_detail (B_code, Empno, Job, Basic_sal, Doj, Manager_no)
Employee Details
BranchName Empno EmpName Doj City salary
Page 20 of 33
Jump2Learn
The Online Learning Place
B. Create a trigger that will not allow to delete after working hours (10 A.M 15
To 5 A.M) and Sunday in Emp_mst table.
*********
Page 21 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 5 4 5 Student’s Signature
(2) Write a database trigger that not allowing change Bookissue table after working 20
Hours (from 8:00 A.M. to 4:00 P.M.) from Monday to Saturday. There is no restriction
On viewing data from a table.
Page 22 of 33
Jump2Learn
The Online Learning Place
2. (1) Write a program for Pre-order, post-order and in-order traversal of a binary tree. 20
(2) Write a program for reverse a queue using recursion. 20
3. (1) Write a program that defines a class and overload = =, < and > operators to compare
Two dates. 20
Notes :
It returns 0 if both dates are equal.
It returns a negative value if first date is less than second one.
It returns a positive value if first date is greater than second one.
*********
Page 23 of 33
Jump2Learn
The Online Learning Place
Instructions:
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 5 4 6 Student’s Signature
1. (1) Write a PL/SQL block for Online Shopping Site’s offer Zone section “Deals 20
Of the day”.
(2) The system must keep track of the original records that are being modified 20
In the AuditOffer table.
Page 24 of 33
Jump2Learn
The Online Learning Place
2. (1) Implement the quick sort and selection sort to arrange a list in descending order
For character and numeric digit : 20
1. 66, 77, 11, 88, 99, 22, 33, 44, 55, 77, 03, 04, 05
2. S, T, R, U, C, T, U, R, E, S, D, A, T, A
3. (A) Do As Follow: 20
(1) Write a program to check whether a number is even or odd by
Overloading operator.
(2) Check whether a number is prime or not by overloading - - operator.
(Use the concept of overloading ! operator.)
(B) Write an interactive menu driven program that can perform the following 20
Operation on strings.
*********
Page 25 of 33
Jump2Learn
The Online Learning Place
Instructions:
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
1. Create a class employee having data members emp_id,ename and the member 40
Functions to perform the following task
(a) Input the employee details
(b) Display the employee details
Create the class calculate which contain the information of HRA, DA, IT, Basic
Salary. Member functions are getsalary( ) which return salary and display( )
Which display the employees name, emp_id and salary.
Create another class salary which calculate the net salary and member functions
are getsalary() which return salary and display() which display emp_name, emp_id,
basic and net salary.(Use the concept of Multilevel inheritance)
Page 26 of 33
Jump2Learn
The Online Learning Place
*********
Page 27 of 33
Jump2Learn
The Online Learning Place
Instructions:
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
2. Consider a shopping list of items for which we place an order. Create a file 40
which stores item details. Item detail includes item code, item name,
number of quantity and price per quantity. Write a C++ program that allow add item,
update item and display item with total amount(price * Quantity).
Insert at least 5 records of an item.
Page 28 of 33
Jump2Learn
The Online Learning Place
(C) Create a procedure that accepts cust_id and return cust_name, B_name,
L_type, L_amount.
(D) Create a trigger on customer when delete cust_id from customer table then
it will delete Loan Table data associated with deleted cust_id.
Page 29 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 7 4 1 Student’s Signature
1. Create a class called ACCOUNT. Derive two different class DEPOSITE and 40
WITHDRAW from it. Derive one more class ACCESS from DEPOSITE and
WITHDRAW. Give the following facilities.
To create an account.
To Deposite an amount.
To withdraw an amount.
To check balance
Page 30 of 33
Jump2Learn
The Online Learning Place
Menu ( Item_id, name, price, category [rice, vegetable, roti, starter, soup] )
Order (o_id, item, table_no, qty)
(B). Create a trigger that will make sure that order quantity cannot be 20
zero or Negative.
*********
Page 31 of 33
Jump2Learn
The Online Learning Place
Instructions
(1)
Seat No.:
Fill up strictly the details of signs on your answer book
Name of the Examination:
Second Year B.C.A. (Sem. III)
Name of the Subject :
Practical: Paper-306
Subject Code No.: 3 5 4 4 Student’s Signature
1. (A) Write a PL/SQL block of code that will merge the data available in the newly 20
Create table NEW_PRODUCT with the data available in the table PRODUCT_MSTR.
If the data in the first table exists in the second table then that data should
be skipped.
(B) Write a database trigger to generate Primary Key using sequence for 20
PRODUCT_MSTR table.
Page 32 of 33
Jump2Learn
The Online Learning Place
(B) Write a recursive program to merge two unordered linked lists such that 20
Merge list is in reverse order.
*********
Page 33 of 33