Practical Slips2019 Sem1
Practical Slips2019 Sem1
Practical Slips2019 Sem1
Q1. Write a C program to accept dimensions of a cylinder and display the surface area and
volume of cylinder. [15 Marks]
Q2. Create a structure employee (id, name, salary). Accept details of n employees and write a
menu driven program to perform the following operations. [25 Marks]
a) Search employee by id
b) Display all employees
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Emp(eno ,ename ,designation ,salary, Date_Of_Joining)
Dept(dno,dname ,loc)
The relationship between Dept & Emp is one-to-many.
Constraints: - Primary Key, ename should not be NULL, salary must be greater than 0.
Q4. Consider the above database and execute the following queries: [25 Marks]
1. Display the count of employees department wise.
2. Display the name of employee who is ‘Manager’ of “Account Department”.
3. Display the name of department whose location is “Pune” and “Mr. Advait” is
working in it.
4. Display the names of employees whose salary is greater than 50000 and department
is “Quality”.
5. Update Dateofjoining of employee to ‘15/06/2019’ whose department is ‘computer
science’ and name is “Mr. Roy’.
1
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept radius of a circle and display the area and circumference
of a circle. [15 Marks]
Q2. Write a program to calculate sum of following series up to n terms. [25 Marks]
Sum=X+X /2!+X /3!+……
2 3
(Note: Write separate user defined function to calculate power and factorial)
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Sales_order (ordNo, ordDate)
Client (clientNo, ClientName, addr)
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Delete sales order details of client whose name is “Patil” and order date is
“09/08/2019”.
2. Change order date of client_No ‘CN001’ to ‘18/03/2019’.
3. Delete all sales_record having order date is before ‘10 /02/2018’.
4. Display date wise sales_order given by clients.
5. Update the address of client to “Pimpri” whose name is ‘Mr. Roy’.
2
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept temperatures in Fahrenheit (F) and display it in Celsius(C)
and Kelvin (K) (Hint: C=5.0/9(F-32), K = C + 273.15) [15 Marks]
Q2. Write a menu driven program to perform the following operations on strings using standard
library functions: [25 Marks]
1. Length of String 2. Copy String 3. Connect Two Strings 4. Compare two strings
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Display the names of the hospitals which are located at “Pimpri” city.
2. Display the names of doctors who are working in “Birla” Hospital and city
name is “Chinchwad”.
3. Display the specialty of the doctors who are working in “Ruby” hospital.
4. Give the count of doctor’s hospital wise which are located at “Pimple Gurav”.
5. Update an address of Doctor to “Pimpri” whose hospital is “Ruby clinic”.
3
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept two numbers and print arithmetic and harmonic mean of
the two numbers (Hint: AM= (a+b)/2 ,HM = ab/(a+b) ) [15 Marks]
Q2. Create a structure Student (id, name, marks). Accept details of n students and write a menu
driven program to perform the following operations. [25 Marks]
a) Search student by id
b) Display all students
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Patient (PCode, Name, Addr, Disease)
Bed (Bed_No, RoomNo, loc)
Q4. Consider the above tables and execute the following queries: [25 Marks]
4
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept dimensions length (l), breadth(b) and height(h) of a
cuboids and display surface area and volume (Hint : surface area=2(lb+lh+bh ),
volume=lbh ) [15 Marks]
Q2.Write a program which accepts a sentence from the user and alters it as follows: Every space
is replaced by *, case of all alphabets is reversed, digits are replaced by ? [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
5
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C Program to accept a character from the keyboard and display its previous and
next character in order. Ex. If character entered is ‘d’, display “The previous character
is c”, “The next character is e”. [15 Marks]
Q2. Write a program to accept a string and then count the occurrences of a specific character of a
string. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Project (pno, pname, start_date, budget, status)
Department (dno, dname, HOD, loc)
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Display the names of project and department who are worked on projects whose
status is ‘Completed’.
2. Display total budget of each department.
3. Display incomplete project of each department.
4. Display all project working under 'Mr.Desai'.
5. Display department wise HOD.
6
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept the x and y coordinates of two points and compute the
distance between the two points. [15 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Room (roomno, desc, rate)
Guest (gno, gname, no_of_days)
The relationship between Room and Guest is One to One.
Constraint: Primary key, no of days should be > 0.
Consider the above tables and execute the following queries:
1. Update the rate of room to 5000 whose type is “AC”.
2. Display the name of guest who is staying 2 days in roomno 101.
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Display room details according to its rates in ascending order.
2. Display the roomno in which “Mr. Advait” is staying for 7 days.
3. Find no. of AC rooms.
4. Find names of guest with maximum room charges.
5. Display guest wise halt days.
7
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. A cashier has currency notes of denomination 1, 5 and 10. Write a C program to accept
the withdrawal amount from the user and display the total number of currency notes of
each denomination the cashier will have to give. [15 Marks]
Q2. Write a menu driven program to perform the following operation on m*n
Matrix [25 Marks]
1. Calculate sum of upper triangular matrix elements
2. Calculate sum of diagonal elements
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
Q1. Write a C program to accept a character from the user and check whether the character
is a vowel or consonant. [15 Marks]
Q2. Write a program to accept two numbers as range and display multiplication table
of all numbers within that range. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Property (pno, desc, area, rate)
Owner (owner_name, addr, phno)
Q4. Consider the above tables and execute the following queries: [25 Marks]
9
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept the x and y coordinate of a point and find the quadrant in
which the point lies. [15 Marks]
Q2. Write a program, which accepts a number n and displays each digit in words.
Example: 6702 Output = Six-Seven-Zero-Two [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
The relationship between Employee and Position is Many to Many with day and shift as
descriptive attribute.
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Find the names and rate of pay of all employees who has allocated a duty.
2. Give employee number who is working at posting_no. 201, but don’t have the
skill of waiter.
3. Display a list of names of employees who have skill of chef and who has assigned
a duty.
4. Display shift wise employee details.
5. Update payrate of employees to 20000 whose skill is waiter.
10
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept the cost price and selling price from the user. Find out if
the seller has made a profit or loss and display how much profit or loss has been made.
[15 Marks]
Q2. Accept radius from the user and write a program having menu with the following
options and corresponding actions [25 Marks]
Options Actions
1. 1. Area of Circle Compute area of circle and print
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
The relationship between Bill and Menu is Many to Many with quantity as descriptive
attribute.
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Display receipt which includes bill_no with Dish description, price, quantity and
total amount of each menu.
2. Find total amount collected by hotel on date 09/07/2019.
3. Count number of menus of billno 301.
4. Display menu details having price between 100 and 500.
5. Display the tableno and day whose bill amount is zero.
11
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to calculate sum of digits of a given input number. [15 Marks]
Q2. Accept two numbers from user and write a menu driven program to perform
the following operations [25 Marks]
1. swap the values of two variables
2. calculate arithmetic mean and harmonic mean of two numbers
Q3 Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Relationship:- Each actor has acted in one or more movie. Each producer has produced
many movies but each movie can be produced by more than one producers. Each movie has
one or more actors acting in it, in different roles.
Constraint: Primary key, release_year > 2000, A_address and P_address should not
be same.
Consider the above tables and execute the following queries:
1. List the names of movies with the highest budget.
2. Display the details of producer who have produced more than one movie in a year.
Q4. Consider the above tables and execute the following queries: [25 Marks]
12
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept the value of n and display sum of all odd numbers
up to n. [15 Marks]
Q2. Write a program to accept a decimal number and convert it to binary, octal and
hexadecimal number. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Relation between Driver and Car is Many to Many with date and time as
descriptive attribute.
Q4. Consider the above tables and execute the following queries: [25 Marks]
13
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to check whether a input number is Armstrong number or not.
[15 Marks]
Q2. Write a program to accept a number and count number of even, odd and zero digits
within that number. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Display students from class 'FY’ and participated in 'E-Rangoli ' Competition.
2. Find the number of student for programming competition.
3. Display the names of first three winners of each competition.
4. Display average number of students participating in each competition.
5. Display total number of competition held in the year 2014.
14
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to check whether a input number is perfect number of not.
[15 Marks]
Q2. Write a program having a menu with the following options and corresponding actions
[25 Marks]
Options Actions
1. Area of square Accept length ,Compute area of square and print
2. Area of Rectangle Accept length and breadth, Compute area of rectangle and
print
3. Area of triangle Accept base and height , Compute area of triangle and
print
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. Display the plan having minimum response.
2. Display customer details starting their mobile number with 98.
3. Display the customer details that are getting less number of free calls than that of
the plan ‘Let’s Rock’.
4. Delete the details of ‘John’ who has stopped ‘Go Max’ plan.
5. Find the plan whose fixed amount is greater than 5000.
Q5. Viva / Oral [10 Marks]
15
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q2. Write a program to display union and intersection of two 1D array. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
16
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to display multiplication table of a given input number [15 Marks]
Q2. Write a menu driven program to perform the following operation on m*n
Matrix [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Politicians (pno, pname, telephone_no)
Party (party_code, party_name)
Q4. Consider the above tables and execute the following queries: [25 Marks]
17
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
1
1 2
1 2 3
Q2. Write a program to calculate sum of following series up to n terms. [25 Marks]
Sum=X-X2/2!+X 3/3!-……
(Note: Write separate user defined function to calculate power and factorial)
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
18
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
* * * *
* * *
* *
*
Q2. Write a menu driven program to perform the following operation on m*n
Matrix [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Item (item_no, item_name, quantity)
Suppliers (sup_no, sup_name, address, city, phone_no)
Relation between Item and Supplier is Many to Many with rate and
discount as descriptive attribute.
19
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
1
2 3
4 5 6
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
20
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
A
A B
A B C
Q2. Create a structure employee (eno, ename, salary). Accept details of n employees and write a
menu driven program to perform the following operations options. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
21
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
A B C
A B
A
Q2. Write a menu driven program to perform the following operation on m*n
Matrix [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
1. Display passenger names and their seat no’s of train “sahyadri express”.
2. Display details of train in which “Mr. Roy” is travelling from “Pune” to “Uruli
Kanchan”.
Q4. Consider the above tables and execute the following queries: [25 Marks]
22
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to accept n elements of 1D array and then display sum of
all elements of array. [15 Marks]
Q2. Accept n integers in an array. Copy only the non-zero elements to another array
(allocated using dynamic memory allocation). Calculate the sum and average of
non-zero elements. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Student (rno,sname,address,class)
Subject (subno,subname)
Relationship: - Student and Subject are related with many-to-many relationship with attribute
marks and status.
Constraints: - Primary Key, class must be fy,sy,ty.
Q4. Consider the above tables and execute the following queries: [25 Marks]
1. List the distinct names of students who have either Electronics, or Statistics or both
subjects.
2. List the names of students who are either passed or failed.
3. List the students who have “Database” subject and they are not in “TY” class.
4. List the names of students who are not failed in any subject.
5. List the names of students not staying at “Uruli Kanchan”.
23
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q2. Create a structure Book (Bno, Bname, Price). Accept details of n Books and write a menu
driven program to perform the following operations options. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
24
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to calculate sum of all even elements of a matrix. [15 Marks]
Q2. Write a menu driven program for the following option [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
25
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to calculate length of string without using standard functions.
[15 Marks]
Q2. Write a program to display the elements of an array containing n integers in the
Reverse order using a pointer to the array. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
26
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a program to count the occurrences of vowel from a input string. [15 Marks]
Q2. Create a structure Item (Ino, Iname, Price). Accept details of n Items and write a
menu driven program to perform the following operations options. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [25 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
27
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a program to accept a string and then count the occurrences of a specific
character of a string. [15 Marks]
Q2. Write a program to accept two numbers as range and display multiplication table
of all numbers within that range. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
28
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a C program to calculate factorial of a number using user defined function.
[15 Marks]
Q2. Write a program, which accepts a number n and displays each digit separated by tabs.
Example: 6702 Output = 6 7 0 2 [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
29
Savitribai Phule Pune University
F.Y.B.B.A.(C.A.) Semester - I Practical Examination. Oct/Nov 2019
Lab Course: (CA-106) Computer Lab Based on C programming and DBMS.
Time: - 3 Hours] [Marks: - 100
Q1. Write a program to find sum of digits of a given input number using user defined
Function [15 Marks]
Q2. Write a program to accept a number and count number of even, odd and zero digits
within that number. [25 Marks]
Q3. Consider the following entities and their relationships. Create a RDB in 3 NF with
appropriate data types and Constraints. [15 Marks]
Q4. Consider the above tables and execute the following queries: [25 Marks]
30