A.V.
Parekh Technical Institute - Rajkot
Computer Department
Practical / Lab Assignments
Subject: Computer Programming Fundamentals
AVPTI CE SEM-1 Term: 2025-26 (ODD) COMPUTER PROGRAMMING FUNDAMENTALS
Unit – 1: Flowchart, Algorithm and Basics of ‘C’– CO1
Practical - 1 Design Flowchart and Develop Algorithm for following Problem Statements.
1. Find Addition and average of three numbers
2. Calculate area of circle
3. Find Minimum of three numbers
4. Check the given number is odd or even
5. Print 1 to 5 numbers
6. Print sum of 1 to 5 numbers
7. Print Multiplication of 1 to 5 numbers
8. Calculate factorial of given number n
Practical - 2 Design and test C programs using constants, variables datatypes and different
types of operator.
1. Develop a program to display your name on the screen.
2. Develop a program to display your name and address on the centre of the screen.
3. Develop a C program to print values of different types of variable.
4. Develop a C program which calculate area of circle using constant.
5. Develop a C program to convert temperature in Fahrenheit to Celsius and vice versa.
6. Develop a C program to calculate addition, subtraction, multiplication, division and
modulo of two numbers.
7. Develop a program to swap two numbers Using third variable.
8. Develop a program to swap two numbers Without Using third variable.
9. Develop a C program to use relational operators.
10. Develop a C program to use logical operators.
11. Develop a C program to use bitwise operators.
12. Develop a C program to use increment and decrement operator.
13. Develop a C program to find minimum of two numbers using conditional operator
14. Develop a C program to use comma operator.
Practical - 3 Design, Implement and test programs to show formatted and unformatted
input and output.
1. Design and test programs to show formatted and unformatted input and output.
AVPTI COMPUTER DEPARTMENT Page | 1
A.V.Parekh Technical Institute - Rajkot
Computer Department
Practical / Lab Assignments
Subject: Computer Programming Fundamentals
AVPTI CE SEM-1 Term: 2025-26 (ODD) COMPUTER PROGRAMMING FUNDAMENTALS
Unit - 2 : Decision Making ,Branching and Looping – CO2
Practical - 4 Design, Implement and test C programs using decision making statements: (1)
Simple if (2) if…else (3) Nested if (4) if…else ladder (5) switch (6) goto
1. Develop a C Program to use simple if Statement.
2. Develop a C Program to find the given number is odd or even.
3. Develop a C Program to find the maximum from three numbers.
4. Develop a C Program to assign grade for the given marks as per GTU Grading
System Using if else ladder.
5. Develop a C Program to find the day for the given day number using switch
statement.
6. Develop a C Program to use goto statements.
Practical - 5 Design and test C programs using while loop, do-while loop.
1. Develop a C Program to print 1 to 5 Numbers Using While, do while.
2. Develop a C Program to print 1 to N Numbers Using While, do while.
3. Develop a C Program to find Factorial of Given Number.
4. Develop a C Program to print Fibonacci series up to n terms.
5. Develop a C Program to find reverse of given number.
Practical - 6 Design and test C programs using for loop
1. Develop a C Program to print 1 to 5 Numbers Using for loop
2. Develop a C Program to print 1 to N Numbers Using for loop
3. Develop a C Program to print various patterns using Nested for loop (at least 5
Programs)
Practical - 7 Design and test C programs using break and continue statements.
1. Develop a C Program to use break statement.
2. Develop a C Program to use continue statement.
Unit - 3 : Arrays and Pointers – CO3
Practical - 8 Design and test C programs using one dimensional array.
1. Develop a C program to get 5 elements of an array (1-D Array) and display it.
2. Develop a C program to calculate sum and average of n elements of an array.
3. Develop a C program to find Maximum from 5 Elements of an array.
Practical - 9 Design and test C programs using two dimensional array.
1. Develop a C program to get 3*3 matrix (2-D array) and display it.
2. Develop a C program to add two 3*3 matrix (2-D array) and display the sum matrix.
AVPTI COMPUTER DEPARTMENT Page | 2
A.V.Parekh Technical Institute - Rajkot
Computer Department
Practical / Lab Assignments
Subject: Computer Programming Fundamentals
AVPTI CE SEM-1 Term: 2025-26 (ODD) COMPUTER PROGRAMMING FUNDAMENTALS
Practical - 10 Design and test C programs using pointers
1. Develop a C program to declare and initialize pointer variable.
2. Develop a C program to use void pointer.
3. Develop a C program to use null pointer.
Unit - 4 : User Define Function – CO4
Practical - 11 Design and test C programs using user define functions.
1. Develop a C Program to swap two numbers with User Define Function.
2. Develop a C Program for Four Category of User Define Functions.
3. Develop a C Program to pass array in User Define Functions.
Practical - 12 Design and test C programs using recursion.
1. Develop a C program to find factorial of given number using recursion.
2. Develop a C program to find power of given number using recursion.
Practical-13 Develop a C programs to demonstrate various inbuilt math functions.
1. Develop a C Program With at least ten Inbuilt math functions.
Unit - 5 : Character array , Strings and Files– CO5
Practical - 14 Design and test C programs to test various inbuilt string functions.
1. Develop a C to declare, read and print string.
2. Develop a C program to perform copy, concat, compare operation in C With inbuilt
string functions.
3. Develop a C program find length of given string with and without using inbuilt
string functions.
Practical - 15 Design and test C programs using file operations.
1. Develop a C program to open and close file in text mode.
2. Develop a C program to read from and write into files in text mode.
SR NO. COURSE OUTCOME
CO1 Write Simple C Program to Input and Output data in the prescribed Format.
CO2 Create C Program Using Control Structures.
CO3 Design C program using Arrays and Pointers.
CO4 Implement user defined functions.
CO5 Execute file and I/O operations in C.
AVPTI COMPUTER DEPARTMENT Page | 3