Sie sind auf Seite 1von 30

University of Pune

F.Y.B.C.A. Sem-II Practical Examination


LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Employee (empno, empname, salary, commission, designation)
Department (deptno, deptname,location)

Relationship between Employee and Department is many-to-one.

Constraints : Primary Key,


Salary should be > 0.

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Display all details of employees who are working at ‘Pune’ location


 Display department name wise list of Employees
 Count the number of employees who are working in ‘Computer’ department
 Display maximum salary for every department.

Q. 2) Write a ‘C’ Program to accept ‘n’ numbers from user, store these numbers into an array.
Find out Maximum and Minimum number from an Array.

[Marks 20]

Q. 3) Write a menu driven program in ‘C’ that shows the working of a library. The menu
option should be
- Add book information.
- Display book information.
- List all books of given author.
- List the count of books in the library.
- Exit.
(Using Structure Array) [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

1
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Movie (mvno, mvname, releaseyear)
Actor (actno, actname)

Relationship between Movie and Actor is many-to-one.

Constraints: Primary Key,


releaseyear should be > 0.

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Count all the movie names released in the year 2000.
 Display all actor details of movie ‘Dhoom’
 Display actorwise movie names.
 Display all movies of ‘Abhishek’

Q. 2) Write a ‘C’ Program to accept ‘n’ numbers from user, store these numbers into an array
and sort the numbers of an array. [Marks 20]

Q. 3) Write a ‘C’ program to accept customer details such as: Account_no, Name, Balance in
account,. Assume Maximum 20 customers in the bank. Write a function to print the account no
and name of each customer with balance below Rs.100.

[Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

2
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Employee (empno, empname, city, deptname)
Project (pno, pname, status)

Employee and Project are related with many to many relationships with descriptive
attribute no_of_days employee worked on that project
Constraints : Primary Key,
Project Status Constraints: C – completed, P-Progressive, I-Incomplete
Create a RDB in 3NF & write queries in Oracle 8i for following.
 List the names of employees working on projects having status “Incomplete”
 Display all project names and total number of employees who are working on that
project.
 List the names of the employees who are working on project for more than 20
days.
 Display project wise Employee details

Q. 2) Write a ‘C’ Program to accept 5 names from user and store these names into an array.
Sort these array elements in alphabetical order. [Marks 20]

Q. 3) Write a ‘C’ Program for multiplication of two m X n matrices. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

3
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Movie (mvno, mvname, releaseyear)
Actor (actno, actname)

Relationship between Movie and Actor is many-to-one.

Constraints : Primary Key,


releaseyear should be > 0.

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Display all the movies released after year 2000.
 Count the number of movies in which ‘Hrithik’ has acted.
 Display all the movie names order by released year in ascending order.
 Display movie names released between year 2000 to 2008.

Q. 2) Write a ‘C’ Program to swap the values of two variables by using call by reference.
[Marks 20]

Q. 3) Write a ‘C’ program to write a macro definition for the following


i) To test whether a character is a lower case letter or not.
ii) To check whether a character is alphabet or not.
iii) To obtain the largest of two numbers.
[Marks 30]

Journal [Marks 10]

Viva [Marks 10]

4
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Employee (empno, empname, salary, commission, designation)
Department (deptno, deptname,location)
Relationship between Employee and Department is many-to-one.
Constraints : Primary Key, Salary should be > 0.

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Display average salary for every designation


 Update commission for every employee by 5 % for all department
 List details of employee who belong to ‘Computer’ department and
salary > 20000
 Display all employees details whose designation is manager and salary > 25000

Q. 2) Write a ‘C’ Program to accept a string from user and generate following pattern
(e.g. input is string “abcd”)

[Marks 20]

a
ab
abc
abcd
abc
ab
a

Q. 3) Write a ‘C’ Program to copy the contents of one file into another file. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

5
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Doctor(dno, dname, city)
Hospital (hno, hname, hcity)

The relation between Doctor and Hospital is many-to-many.

Constraints : Primary Key,


City should not be null

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Display all the details of hospitals located in ‘Pune’ city.


 Display hospital wise doctor’s details.
 Count the number of doctors who are visiting to ‘KEM’ Hospital.
 Display the hospital names whose first character is ‘S’.

Q. 2) Write a ‘C’ Program to convert given decimal number into binary number. [Marks 20]

Q. 3) Write a ‘C’ Program to accept a string from user, delete all vowels from that string and
display the result. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

6
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Student (rollno, name, marks, class)
Teacher (tno, tname)

The relation between Student and Teacher is many-to-many with subject as


descriptive attribute.
Constraints : Primary Key,
Class has to be FY, SY or TY.
Create a RDB in 3NF & write queries in Oracle 8i for following.
 Count the number of teachers who are teaching subject ‘C’
 Display all details of teachers who is teaching subject ‘DBMS’.
 Display class wise number of students.
 List the teacher names who are teaching to student ‘Amar’.

Q. 2) Write a ‘C’ Program to calculate sum of elements of a mXn matrix. [Marks 20]

Q. 3) Write a ‘C’ Program to copy the contents of one file into another file using command line
arguments. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

7
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Book ( bno, bname, pubname)
Author (ano, aname)

The relation between Book and Author is many-to-many.

Constraints : Primary Key,


Aname and Pubname should not be null.

Create a RDB in 3NF & construct queries in Oracle 8i.


 Count number of books of each publisher.
 Display all details of the book written by ‘Kanetkar’.
 Display Author-wise list of books.
 Display the book-name whose author-name is ‘Korth’ and publisher name is ‘BPB’.

Q. 2) Write a ‘C’ program to accept ‘n’ numbers from user, store these numbers into an array and
reverse an array elements using function. [Marks 20]

Q. 3) Write a ‘C’ Program to append the contents of one file at the end of another file.

[Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

8
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Doctor (dno, dname, city)
Hospital (hno, hname, hcity)

The relation between Doctor and Hospital is many-to-many.

Constraints : Primary Key, City should not be null

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Display doctor wise hospital details.
 Display the doctor details that are living in ‘Pune’ city.
 Count the number hospitals to which ‘Dr. Apte’ is visiting.
 Display all the details of hospitals not located in ‘Pune’ city.

Q. 2) Write a ‘C’ Program to accept ‘n’ numbers from user, store these numbers into an array
count the number of occurrence of each number. [Marks 20]

Q. 3) Write a ‘C’ Program to copy one file to another file while doing so replace all lower case
character to their equivalent upper case character [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

9
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Doctor (dno, dname, city)
Patient (opdno, pat_name, addr, disease)

The relation between Patient and Doctor is many-to-many.

Constraints : Primary Key, Address should not be null

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Find the names of patients who are treated by ‘Dr. Apte’.
 Display doctor wise details of patient
 Count the number of patients suffering from ‘Asthma’.
 Find the name of doctors who are treating the ‘Diabetics’ patient.

Q. 2) Write a ‘C’ Program to display the transpose of a given 3X3 matrix. [Marks 20]

Q. 3) Write a menu driven program in ‘C’ which performs the following operations on strings.
Write separate function for each option
- Check if one string is substring of another string
- Count number of occurrences of a character in the string.
- Exit.
[Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

10
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities and Relationships [Marks 30]


Machine (mno, mname, mtype, mcost)
Part (pno, pnmae, pdesc)

Machine and parts are related with one to many relationships

Constraints :
Primary Key,
Machine name not be null

Create a RDB in 3NF & construct queries in Oracle 8i


 List all machines having cost > 5000.
 Display machine wise part details.
 Find the name of machine having maximum cost.
 Display the name of all machines having parts ‘wheel’

Q. 2) Write a ‘C’ Program to read data from a text file and display the data on the screen. If file
is not exist create a file. [Marks 20]

Q. 3) Write a ‘C’ Program to accept ‘n’ numbers and store all prime numbers in an array and
display this array. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

11
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]

Politician(pno,pname,pdesc)
Party(party_code,party_name)

Politician & party are related with many-to-one.

Constraints : Primary key, Foreign key, Party_name Not NULL

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Display party wise politician details
 Display details of all politician of party ‘BJP’
 Count the total number of politicians for each party
 Count the number of politicians having political description as ‘AP’

Q. 2) Write a ‘C’ Program to calculate sum of major and minor diagonal elements of a mXn
matrix. [Marks 20]

Q. 3) Write a ‘C’ Program to store the records of student (stud_no, stud_name,stud_addr,


stud_Percentage) in a file using structure. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

12
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Student (sno,sname,city,class)
Subject (sub_no,sub_name)

Students & subjects are related with many-to-many with attribute marks.

Constraints: Primary key constraints and sname not null.


Class has to be FY, SY or TY.

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Count the number of students for each class
 Display the name of all students who are studying in class ‘TY’
 Display subject wise name of all students
 Display the students from ‘Pune’ city

Q. 2) Write a ‘C’ Program to accept ‘n’ numbers from user, store these numbers into an array
and calculate average of ‘n’ numbers.
[Marks 20]

Q. 3) Write a ‘C’ Program to calculate sum of the elements of lower triangle of a nXn matrix by
using dynamic memory allocation [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

13
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Machine (mno, mname, mtype, mcost)
Part(pno, pnmae, pdesc)

Machine and parts are related with one to many relationships

Constraints :
Primary Key,
Machine name not be null, foreign key

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Increase the cost of machine by 10 %


 Display the machine names whose cost is between 50000 to 70000
 List all the parts of ‘CNC’ machine
 Delete the record from part table whose part name is wheel

Q. 2) Write a ‘C’ Program to calculate sum of non-diagonal elements of an nXn matrix.

[Marks 20]

Q. 3) Write a ‘C’ Program to display the alternate characters from an existing file.

[Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

14
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Student (sno,sname,city,class)
Subject (sub_no,sub_name)

Students & subjects are related with many-to-many with attribute marks.

Constraints: Primary key constraints and sname should not be null,


Class has to be FY, SY or TY.

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Count the number of students studying in ‘FY’ having marks between 60 to 70.
 Display student wise subject details.
 Display the details of all students who are studying ‘DBMS’ subject.
 Update the marks of students to 40 who have scored marks 39.

Q. 2) Write a ‘C’ Program to find the union and intersection of the two sets of integer (Store it in
two arrays) [Marks 20]

Q. 3) Write a ‘C’ Program to count the number of characters, number of words and number of
lines from a text file and display the result. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

15
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Country (con-code,name,capital)
Population (pop-code,population)

Country & Population are related with one-to-one relationship.

Constraints : Primary key and country name should not be null

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Give name and population of country whose capital is ‘Delhi’
 Count the number of countries whose population is > 60,00,000
 Find the country details with highest population
 Display country wise population details

Q. 2) Write a ‘C’ Program to accept the data from user and store that data into the text file
[Marks 20]

Q. 3) Write a ‘C’ Program to calculate the sum of elements of upper triangle of a nXn matrix by
using dynamic memory allocation [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

16
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Student (sno,sname,city,class)
Subject (sub_no,sub_name)

Students & Subjects are related with many-to-many with attribute marks.

Constraints: Primary key constraints and sname not null.


Class has to be FY, SY or TY.

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Display the city wise student’s details


 Find maximum marks scored in subject ‘DBMS’
 Display all the details of students who have scored marks less than 60
 Display students who are studying in class ‘SY’ and living in the city ‘Nagpur’

Q. 2) Write a ‘C’ Program to accept 10 numbers from user, store these numbers in an array and
sort an array elements in ascending order by using dynamic memory allocation.
[Marks 20]

Q. 3) Write a ‘C’ Program to append the contents of one file at the end of another file.
[Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

17
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Country (con-code,name,capital)
Population (pop-code,population)

Country & Population are related with one-to-one relationship.

Constraints : Primary key and country name not null

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Find the country details with lowest population


 List the name of countries whose population is between 50,00,000 and 70,00,000
 Find the population of ‘India’
 Display the country details in descending order of population

Q. 2) Write a ‘C’ Program to copy one string into another string without using standard function
[Marks 20]

Q. 3) Write a menu driven program in ‘C’ to accept a nXn matrix from user and to perform the
following operations
i) Check whether given matrix is Symmetric or Not.
ii) Check whether given matrix is an Identity Matrix or Not.
[Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

18
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Wholesaler(wno,wname,addr,city)
Product(pno,pname)

Wholesaler & Product are related with many-to-many relationship.

Constraints : Primary key, pname should not be null

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Display wholesaler wise product details


 Count the number of products sold by wholesaler ‘Dev Enterprise’
 Display the details of wholesalers living in the ‘Mumbai’ City
 Display the wholesaler details of product keyboard

Q. 2) Write a ‘C’ program to accept mXn matrix from user and display the elements of a given
Matrix using function. [Marks 20]

Q. 3) Write a ‘C’ Program using command line arguments to search for a word in a file and
replace it with the specified word. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

19
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Item (item_no,name,quantity)
Sup(no,name,addr,city,phone)

Item & sup are related with many-to-many relationships with rate, discount.

Constraints: Primary key and item qty > 5 and rate > 0.

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Find the rate and discount of the item keyboard


 Display item names in ascending order of quantity
 Display the details of all suppliers from ‘Pune’ city
 Count the number of items supplied by supplier ‘Mr. Bhatia’

Q. 2) Write a ‘C’ Program to accept 10 numbers from user, store these numbers in an array and
find the smallest number from an array using pointer. [Marks 20]

Q. 3) Write a C’ Program to create student structure having fields roll_no, stud_name, mark1,
mark2, mark3. Calculate the total and average of marks and arrange the records in
descending order of marks. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

20
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Person (pno,pname,birthdate,income)
Area (Ano,aname,atype);
Relationship between Person and area is many to one
Constraints :
Primary key,
Area type may be either rural or urban.

Create a RDB in 3NF & write queries in Oracle 8i for following.


 List the name of all person living in urban area
 List details of all persons whose name start with alphabet ‘M’
 Display the details of person having maximum Income
 Count the number of persons from each type of area.

Q. 2) Write a ‘C’ Program to check whether given string is palindrome or not. [Marks 20]

Q. 3) Write a menu driven program in ‘C’ to


i) Convert Decimal number to Octal number
ii) Convert Decimal number to Hexadecimal number [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

21
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Item (item_no,name,quantity)
Sup(no,name,addr,city,phone)

Item & sup are related with many-to-many relationships with rate, discount.

Constraints: Primary key and item qty > 5 and rate > 0.

Create a RDB in 3NF & write queries in Oracle 8i for following.


 List all the details of items having quantity > 500
 Increase the 5% rate of the item mouse
 Display the item details supplied by the supplier ‘Mr. Patil’
 Count the number of suppliers from each city

Q. 2) Write a menu driven program in ‘C’ for the following:


- calculating length of a given string and display the length
- copy one string into another string and display both the strings
- compare two strings and display the result
- concatenate two strings and display the resultant string
(By using standard functions) [Marks 20]

Q. 3) Write a ‘C’ Program to accept an mXn matrix and find the largest and smallest number
from the matrix using dynamic memory allocation. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

22
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Patient (pno, pname, addr)
Bed(bno, roomno, description);

Relationship between Patient and Bed is one to one

Constraints:
Primary key.

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Find the name of patients of bed number 103.


 Count the number of bed in room number 3
 Find bed number and room number of patient ‘Mr. Sharma’
 List bed wise patient name along with room number

Q. 2) Write a ‘C’ Program to calculate sum of elements of upper triangle of a nXn matrix.
[Marks 20]

Q. 3) Write a ‘C’ Program to accept ‘n’ numbers, store all perfect numbers in an array and
display this array. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

23
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Customer(cno, cname, city)
Car ( Carno, carmodel, color, price)

Customer and car are related with one to many relationships

Constraints:
Primary key,
Price should be > 0

Create a RDB in 3NF & write queries in Oracle 8i for following.

 list car model and color of car belong to ‘Mr. Jadhav’


 Display the car details having maximum price.
 Count the number of cars belong to ‘Mr. Patil’
 List customer wise car model

Q. 2) Write a ’C’ Program to calculate sum of elements of lower triangle of a nXn matrix.
[Marks 20]

Q. 3) Write a ‘C’ Program to accept the line from user, delete all the occurrences of word ‘the’
from the line and display the result. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

24
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Room(Rno, roomtype, Rate)
Guest(Gno,gname,no_of_days)

Room and Guest are related with one to one relationship.

Constraint: Primary Key


no_of_days should be > 0

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Find the type of room number 101


 Find the name of guest who have allocated room more than three days
 Display the room information having maximum rate.
 List room wise guest name

Q. 2) Write a ‘C’ Program to calculate length of a given string without using standard function.

[Marks 20]

Q. 3) Write a ‘C’ Program to accept ‘n’ numbers from user and find out the maximum element
out of them by using dynamic memory allocation [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

25
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Company(cid,cname,cproduct,state)
Branches(bno, city)

Company and Branches are related with one to many relationships

Constraint:
Primary Key,
Customer Name should not be null

Create a RDB in 3NF & write queries in Oracle 8i for following.


 List the product names of company ‘MicroTech’
 List all the companies of product keyboard
 List all the branches along with city of company ‘Lenovo’
 Count the number of branches of company ‘Compaq’

Q. 2) Write a ‘C’ Program to accept string from user and convert all lower case letters into upper
case letters and vice versa [Marks 20]

Q. 3) Write a ‘C’ Program to do the following


a) Create a text file ‘input.txt’
b) Print the contents of file in reverse order [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

26
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Teacher (tno, tname, collegename,dept)
Exam(examtno, examname)

Teacher and Exam related with many to many relationships.

Constraints: Primary key,


examname should not be null

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Find department of teacher ‘Mrs. Jadhav’ of D.Y.Patil College


 List all teachers who have given SET examination.
 Count the number of teachers of ‘MJC’ College
 List College wise teacher name with examination given by teacher

Q. 2) Write a ‘C’ Program to calculate sum of two mXn matrices and store the result in 3rd
matrix. [Marks 20]

Q. 3) Write a ‘C’ Program to accept ‘n’ names from user store these names into 2-D array.
Accept the name from user and search whether the name is present in an array or not.

[Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

27
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following Entities & Relationships [Marks 30]


Student(Rollno, sname, birthdate)
Course(Cno, Cname, Course_fee, Duration)

Student and Course are related with many to many relationships.

Constraints: Primary key,


Course fee should be > 0

Create a RDB in 3NF & write queries in Oracle 8i for following.

 Count the number of courses joined by ‘Nilesh’


 List the name of all students who have joined for course c++
 Display details of course having maximum fee.
 List course wise Student names along with course fee and duration

Q. 2) Write a menu driven program in ‘C’ to accept a number from user and perform following
operations on it
i) Right Shift
ii) Left Shift
iii) One’s complement

[Marks 20]

Q. 3) Write a ‘C’ Program to create a student structure having field stud_name and address.
Accept the details of ‘n’ students into the structure, rearrange the data in alphabetical order
of stud_name and display the result. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

28
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following entities & relationships [Marks 30]


Department( dno,dname,HOD,location)
Project (pno, pname, status)

Department and Project are related with one to many relationships

Constraints : Primary Key,


Project Status Constraints: C – completed, P-Progressive, I-Incomplete

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Find HOD of Computer Department located in ‘Pune’.
 List all projects of mathematics department which are Incomplete
 Display the Project details of Computer Department
 List department wise project along with status

Q. 2) Write a ‘C’ Program to swap two numbers using bitwise operator. [Marks 20]

Q. 3) Write a ‘C” program to create student structure having field roll_no, stud_name, class. Pass
this entire structure to function and display the structure elements. [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

29
University of Pune
F.Y.B.C.A. Sem-II Practical Examination
LAB COURSE – (C Programming and DBMS)
Duration: 3 Hours Maximum Marks: 100

Q. 1) Consider the following entities & relationships [Marks 30]


Plant ( Plant_Code, Plant_Name,Plant_Cost, Plant_Type)
Nutrients (Ncode, N_Name)

Plant and Nutrients are related with one to many relationship

Constraints : Primary Key,


Quantity should be > 0
Plant Type Constraint: F- Flowering and NF – Non-flowering

Create a RDB in 3NF & write queries in Oracle 8i for following.


 Count the number of plants for each plant type
 List all nutrients whose name start with ‘U’
 List all the plants to whom nutrients ‘Urea’ is given
 Display plant wise nutrients given

Q. 2) Write a ‘C’ Program to reverse an array elements using dynamic memory allocation.
[Marks 20]

Q. 3) Write a ‘C’ Program to accept Book details of ‘n’ books as book_title, author, publisher and
cost. Assign the accession number to each book in increasing order Display these details as
1. Books of a specific author
2. Books by a specific Publisher
3. All Books costing Rs. 500 and above.
4. All Books.
(Using Structure Array) [Marks 30]

Q. 4) Journal [Marks 10]

Q. 5) Viva [Marks 10]

30

Das könnte Ihnen auch gefallen