GGM SCIENCE COLLEGE
Data & File Structure | DBMS | PHP
● Name : Sahil kumar
● University Roll No. : 23010150061
● Subject : Major | Practical
● Semester : IV
● Course : Bachelor of Computer Applications (BCA)
● Course Code : 1CAPMJP0401
● Batch : 2023
Teacher Incharge : HOD.
Prof. Vippan Kumar Prof. Surinder Singh
ProfSurinder Singh
Prof. Kamaljeet Singh
Data & File Structure
S. No Title
1 WAP to print all Arithmetic Operations in C.
2 WAP to print Average of 100 Numbers in C.
3 WAP to demonstrate the implementation of Stack using Array in C.
4 WAP to demonstrate the implementation of Stack using Linked List in C.
5 WAP to demonstrate the implementation of Queue using Array in C.
6 WAP to demonstrate the implementation of Queue using Linked List in C.
7 WAP to demonstrate Recursion using Factorial in C.
8 WAP to demonstrate the implementation of a Doubly Linked List in C.
9 WAP to demonstrate the implementation of Linear Search in C.
10 WAP to demonstrate the implementation of Binary Search in C.
11 WAP to demonstrate the implementation of Insertion Sort in C.
12 WAP to demonstrate the implementation of Bubble Sort in C.
13 WAP to demonstrate the implementation of Selection Sort in C.
14 WAP to demonstrate insertion in BST.
15 WAP to demonstrate deletion in BST.
16 WAP to demonstrate pre-order traversal in BST.
17 WAP to demonstrate in-order traversal in BST.
1. WAP to print all Arithmetic Operations in C.
Output
:
2. WAP to
Demonstrate use of one-
dimensional array for average
the number upto 100.
Output:
3. WAP to demonstrate Recursion using Factorial in C.
Output :
4. WAP to demonstrate the implementation of a Two-
Way (Doubly) Linked List in C
OUTPUT :
Output
:
5. WAP to demonstrate Recursion using Factorial in C.
Output
:
6. WAP to demonstrate the implementation of a Two-
Way (Doubly) Linked List in C
Output :
7. WAP to demonstrate Recursion using Factorial in C.
OUTPUT :
9. WAP to demonstrate the implementation of Linear Search in C.
OUTPUT :
10. WAP to demonstrate the implementation of Binary
Search in C.
Output :
10. WAP to demonstrate the implementation of Bubble
Sort in C.
Output
13. WAP to demonstrate the implementation of
Selection Sort in C.
Output :
Output
:
12. WAP to demonstrate the implementation of Bubble
Sort in C.
Output :
13. WAP to demonstrate the implementation of
Selection Sort in C.
14. WAP to demonstrate the
implementation of Selection
Sort in C.
Output :
15. WAP to demonstrate the
implementation of Selection
Sort in C.
Output :
16. WAP to demonstrate the
implementation of Selection
Sort in C.
17. WAP to demonstrate the
implementation of Selection
Sort in C.
Output :
18. WAP to demonstrate the
implementation of Selection
Sort in C.
Output :
19. WAP to demonstrate the
implementation of Selection
Sort in C.
Output :
DBMS
PHP
S. No Title
1 WAP to find a prime number, the table of a number, a palindrome number,
reverse a number, swap two numbers without using a third variable, and
display a star triangle. All programs are implemented using functions and the
switch-case statement.
2 WAP in PHP to check whether a number is positive, negative, or zero using
an if-else statement.
3 WAP in PHP to store and display the marks of 5 subjects using a numeric
array.
4 WAP in PHP to store and display student details (name, age, grade) using an
associative array.
5 WAP in PHP to store and display a 3x3 matrix using a multi-dimensional array.
6 WAP in PHP to create a file, write some text into it, and then read and display
its name and size.
7 WAP in PHP to upload a file and display its name and size.
8 WAP in PHP to set a cookie with the user's name and display it on the next
page.
9 WAP in PHP to create a class Book with properties ("title", "author") and a
method to display the book details.
10 WAP in PHP to demonstrate inheritance by creating a class Vehicle and a
subclass Car.
1. WAP to find a prime number, the table of a number, a
palindrome number, reverse a number, swap two
numbers without using a third variable, and display a star
triangle. All programs are implemented using functions
and the switch-case statement.
Result:
2. WAP in PHP to check whether a number is positive,
negative, or zero using an if-else statement.
Result:
3. WAP in PHP to store and display the marks of 5
subjects using a numeric array.
Result:
4. WAP in PHP to store and display student details
(name, age, grade) using an associative array.
Result:
5. WAP in PHP to store and display a 3x3 matrix using a
multi-dimensional array.
Result:
6. WAP in PHP to create a file, write some text into it, and
then read and display its name and size.
Result:
7. WAP in PHP to upload a file and display its name and
size.
Result:
8. WAP in PHP to set a cookie with the user's name and
display it on the next page.
Result:
9. WAP in PHP to create a class Book with properties
("title", "author") and a method to display the book details.
Result:
10. WAP in PHP to demonstrate inheritance by creating a
class Vehicle and a subclass Car.
Result: