0% found this document useful (0 votes)
14 views3 pages

23GE221 - Programming in C Laboratory

The document outlines the practical end semester examination details for the Programming in C Laboratory course at Gnanamani College of Technology for the April/May 2025 session. It includes a list of programming tasks that students must complete, covering various concepts such as volume calculation, string manipulation, recursion, and file handling. Each task is assigned specific marks contributing to a total of 100 marks for the examination.

Uploaded by

Kowsalya G
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

23GE221 - Programming in C Laboratory

The document outlines the practical end semester examination details for the Programming in C Laboratory course at Gnanamani College of Technology for the April/May 2025 session. It includes a list of programming tasks that students must complete, covering various concepts such as volume calculation, string manipulation, recursion, and file handling. Each task is assigned specific marks contributing to a total of 100 marks for the examination.

Uploaded by

Kowsalya G
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Gnanamani College of Technology

( Autonomous )
Accredited by NBA & NAAC with “A” grade
A.K.Samuthiram, Pachal (PO), Namakkal – 637 018

B.E / B.Tech. PRACTICAL END SEMESTER EXAMINATIONS, APR/MAY-2025


Second Semester

23GE221 - Programming in C Laboratory

(Regulations 2023)

Time : 3 Hours Answer any one Question Max. Marks:100

(To be filled by the question paper setter)

Aim & Procedure Program Results Viva-Voce Record Total

20 40 20 10 10 100

1. Write a Program to calculate and display the volume of a CUBE having its height
(h=10cm), width (w=12cm) and depth (8cm).

2. Write a C program to prompt the user to input 3 integer values and print these values
in forward and reversed order.

3. Write a program to check odd or even number

(a) using modulus operator

(b) using bitwise operator

(c) without using bitwise and modulus operator

(d) using a conditional operator

4. Write a program to read a string and check for palindrome without using string related
function. (a string is palindrome if its half is mirror by itself eg: abcdcba)
5. a. Write a C program to find the sum of all the elements of an array using pointers.

b. Write a C program to swap values of two variables using a pointer.

6. Write a C program to a create function which accepts structure as argument and


returns structure to the calling program.

7. Write a C program to reverse the first n characters in a file.

8. Write a C Program to find whether a given matrix is symmetric or not.

9. Write a C program to generate the first n terms of the Fibonacci sequence.

10. Draw the flowchart and write a recursive C function to find the factorial of a number,
n!, defined by fact(n)=1, if n=0. Otherwise fact(n)=n*fact(n-1). Using this function, write
a C program to compute the binomial coefficient nCr. Tabulate the results for different
values of n and r with suitable messages

11. Design and develop a C function isprime(num) that accepts an integer argument and
returns 1 if the argument is prime, a 0 otherwise. Write a C program that invokes this
function to generate prime numbers between the given range.

12. Write a C program using pointers to compute the sum, mean and standard deviation of
all elements stored in an array of n real numbers.

13. Write a recursive function to generate Fibonacci series.

14. Write a program to copy one string to another string with and without using the string
handling function.

15. Write a program to sort 5 string words stored in an array of pointers.

16. Write a C program to find whether the given year is a leap year or not.

17. Write a C program to check whether the given number is Armstrong number or not.
18. a. Write a C program to display array elements using 2D arrays.

b. Write a C program to find an average of 4 integers.

19. Write C programs that use both recursive and non-recursive functions

i) To find the factorial of a given integer.

ii) To find the GCD (greatest common divisor) of two given integers.

20. a) Write a C program which copies one file to another.

b) Write a C program to reverse the first n characters in a file.

(Note: The file name and n are specified on the command line.)

INTERNAL EXAMINER EXTERNAL EXAMINER

You might also like