2-PU Computer Science Annual Lab Exam QP-2024 (DDCSF)
2-PU Computer Science Annual Lab Exam QP-2024 (DDCSF)
Part-A Part-A
Write a program to find the frequency of presence an element in an Write a program to delete an element from an array at a given position.
array.
Part-B
Part-B Write a HTML program to create your own study time-table.
Create a table for a class of students with the following details.
Field 1. Add records into the table for 6-students
Type
Name for SID, SName and marks in six subjects -----------------------------------------------------------------------------------
SID NUMBER(4) using insert command.
2. Display the description of the fields in Practical-04
SName VARCHAR2(25) the table using Desc command. Part-A
Sub1 NUMBER(3) 3. Alter the table add Total, Per & Result Write a program to sort the elements of an array in ascending order
Sub2 NUMBER(3) 4. Compute the result as ‘PASS’ or ‘FAIL’ using insertion sort.
by checking,- if the student has scored more
Sub3 NUMBER(3)
than 35 marks in each subject. Part-B
Sub4 NUMBER(3) 5. Retrieve all the records of the table Create a table for a class of students with the following details.
Sub5 NUMBER(3) 6. List the students who’s result ‘PASS’ Field 1. Add records into the table for 6-students
7. Sort the table order by SID. Type
Sub6 NUMBER(3) Name for SID, SName and marks in six subjects
SID NUMBER(4) using insert command.
2. Display the description of the fields in
----------------------------------------------------------------------------------- SName VARCHAR2(25) the table using Desc command.
Sub1 NUMBER(3) 3. Alter the table add Total, Per & Result
Practical-02 Sub2 NUMBER(3) 4. Compute the result as ‘PASS’ or ‘FAIL’
Part-A by checking if the student has scored more
Write a program to insert an element into an array at a given position. Sub3 NUMBER(3)
than 35 marks in each subject.
Sub4 NUMBER(3) 5. Retrieve all the records of the table
Part-B Sub5 NUMBER(3) 6. List the students who’s result ‘PASS’
Create a table for house hold electricity bill with the following fields. 7. Sort the table order by SID.
Sub6 NUMBER(3)
Field Name Type 1. Insert 6-records into the table.
RRNo VARCHAR2(8) 2. Add two new fields
CName VARCHAR2(25) BillAmt Number (6, 2) -----------------------------------------------------------------------------------
BillDate DATE DueDate Date
Units NUMBER(3) 3. Compute the BillAmt for each
customer as per the following rules. Minimum amount Rs. 50. For
First 100 units Rs. 4.25; & Units >100 Rs. 5 per unit.
4. Compute due date as (Billing date + 15 days).
5. List all the bills generated.
Practical-05 Practical-07
Part-A Part-A
Write a program to search for a given element in an array using ‘Binary Program to find the area of a square/rectangle/triangle using function
search’ method. overloading.
Part-B Part-B
Create a table for house hold electricity bill with the following fields. Create a table for house hold electricity bill with the following fields.
Field Name Type 1. Insert 6-records into the table. Field Name Type 1.Insert 6-records into the table.
RRNo VARCHAR2(8) 2. Add two new fields RRNo VARCHAR2(8) 2. Add two new fields
CName VARCHAR2(25) BillAmt Number (6, 2) CName VARCHAR2(25) BillAmt Number (6, 2)
BillDate DATE DueDate Date BillDate DATE DueDate Date
Units NUMBER(3) 3. Compute the BillAmt for each Units NUMBER(3) 3. Compute the BillAmt for each
customer as per the following rules. Minimum amount Rs. 50. For customer as per the following rules. Minimum amount Rs. 50. For
First 100 units Rs. 4.25; & Units >100 Rs. 5 per unit. First 100 units Rs. 4.25; & Units >100 Rs. 5 per unit.
4. Compute due date as (Billing date + 15 days). 4. Compute due date as (Billing date + 15 days).
5. List all the bills generated. 5. List all the bills generated.
----------------------------------------------------------------------------------- -----------------------------------------------------------------------------------
Practical-06
Practical-08
Part-A
Part-A
Write a program to create a class with data members principle, time and
Program to find the cube of a number using inline function.
rate. Create member functions to accept data values to compute simple
interest and to display the result. Part-B
Create a table for a class of students with the following details..
Part-B
Field 1. Add records into the table for 6-students
Create a table for a class of students with the following details.. Type
Name for SID, SName and marks in six subjects
Field 1. Add records into the table for 6-students
Type SID NUMBER(4) using insert command.
Name for SID, SName and marks in six subjects
2. Display the description of the fields in
SID NUMBER(4) using insert command. SName VARCHAR2(25) the table using Desc command.
2. Display the description of the fields in
SName VARCHAR2(25) Sub1 NUMBER(3) 3. Alter the table add Total, Per & Result
the table using Desc command.
Sub1 NUMBER(3) Sub2 NUMBER(3) 4. Compute the result as ‘PASS’ or ‘FAIL’
3. Alter the table add Total, Per & Result
by checking if the student has scored more
Sub2 NUMBER(3) 4. Compute the result as ‘PASS’ or ‘FAIL’ Sub3 NUMBER(3)
than 35 marks in each subject.
by checking if the student has scored more Sub4 NUMBER(3)
Sub3 NUMBER(3) 5. Retrieve all the records of the table
than 35 marks in each subject.
Sub4 NUMBER(3) Sub5 NUMBER(3) 6. List the students who’s result ‘PASS’
5. Retrieve all the records of the table
Sub6 NUMBER(3) 7. Sort the table order by SID.
Sub5 NUMBER(3) 6. List the students who’s result ‘PASS’
Sub6 NUMBER(3) 7. Sort the table order by SID.
Practical-09 Practical-11
Part-A Part-A
Write a program to find the sum of the series 1+ x + x2 + … + xn using Write a program to create a class with data members principle, time and
constructors. rate. Create member functions to accept data values to compute simple
interest and to display the result.
Part-B
Create a table for house hold electricity bill with the following fields. Part-B
Field Name Type 1. Insert 6-records into the table. Write a HTML program to create your own study time-table.
RRNo VARCHAR2(8) 2. Add two new fields
CName VARCHAR2(25) BillAmt Number (6, 2)
BillDate DATE DueDate Date -----------------------------------------------------------------------------------
Units NUMBER(3) 3. Compute the BillAmt for each
customer as per the following rules. Minimum amount Rs. 50. For Practical-12
First 100 units Rs. 4.25; & Units >100 Rs. 5 per unit. Part-A
Program to find the cube of a number using inline function
4. Compute due date as (Billing date + 15 days).
5. List all the bills generated. Part-B
Write a HTML program to create your own study time-table.
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
Practical-10
Part-A
Create a base class containing the data members roll number and name.
Also create a member function to read and display the data using the
concept of single level inheritance. Create a derived class that contains
marks of two subjects and total marks as the data members.
Part-B
Write a HTML program to create your own study time-table.
-----------------------------------------------------------------------------------