Beruflich Dokumente
Kultur Dokumente
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]
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. 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]
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
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]
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. 2) Write a ‘C’ Program to swap the values of two variables by using call by reference.
[Marks 20]
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. 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]
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. 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]
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. 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]
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. 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]
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. 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]
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. 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]
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
Constraints :
Primary Key,
Machine name not be null
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]
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
Politician(pno,pname,pdesc)
Party(party_code,party_name)
Q. 2) Write a ‘C’ Program to calculate sum of major and minor diagonal elements of a mXn
matrix. [Marks 20]
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
Students & subjects are related with many-to-many with attribute marks.
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]
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
Constraints :
Primary Key,
Machine name not be null, foreign key
[Marks 20]
Q. 3) Write a ‘C’ Program to display the alternate characters from an existing file.
[Marks 30]
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
Students & subjects are related with many-to-many with attribute marks.
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]
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. 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]
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
Students & Subjects are related with many-to-many with attribute marks.
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]
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. 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]
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. 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]
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
Item & sup are related with many-to-many relationships with rate, discount.
Constraints: Primary key and item qty > 5 and rate > 0.
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]
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. 2) Write a ‘C’ Program to check whether given string is palindrome or not. [Marks 20]
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
Item & sup are related with many-to-many relationships with rate, discount.
Constraints: Primary key and item qty > 5 and rate > 0.
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]
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
Constraints:
Primary key.
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]
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
Constraints:
Primary key,
Price should be > 0
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]
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. 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]
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
Constraint:
Primary Key,
Customer Name should not be null
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]
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. 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]
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. 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]
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. 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]
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. 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]
30