0% found this document useful (0 votes)
48 views2 pages

CS3271 Set2

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

CS3271 Set2

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

B.E / B.Tech.

PRACTICAL END SEMESTER EXAMINATIONS, APRIL/MAY 2022


Second Semester

CS3271 - PROGRAMMING IN C LABORATORY

(Regulations 2021)

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

Aim & Procedure Program Results Viva-Voce Record Total


20 40 20 10 10 100

1. Write a C program to calculate area and circumference of a circle.

2. Write a C program to swap values of two variables with and without using third variable.

3. Write a C program to find the factorial of a number.

4 Write a C program to display the following pattern.

**

***

****

*****

5 If a four-digit number is input through the keyboard, write a program to obtain the sum of the first
and last digit of this number.

6 Write a C program to reverse a given integer

7. Write a C Program to access an element in 2-D Array.

8 Write a C Program to multiply two 3 X 3 Matrices

9. Write a C program to accept a string and count the number of vowels present in this string.

Page 1 of 2
10 Write a C program in C to copy one string to another string

11 Write a C program to calculate factorial of a number using recursion.

12 Write a C program to read an integer number and print the reverse of that number using recursion.

13 Write a C program to swap two integers using call by value and call by reference methods of
passing arguments to a function.

14 Write a C program to check whether a number is prime, Armstrong or perfect number using
functions.

15 Write a C program to input and print array elements using pointer.

16 Write a C program to search an element in array using pointers.

17. Write a C program to store information of 5 students in structure and display it

18 Write a C program to create a structure named company which has name, address, phone and no of
Employee as member variables. Read name of company, its address, phone and no of Employee.
Finally display these members‟ value.

19 Write a C program to illustrate how a file stored on the disk is read.

20 Write a C Program to print contents of file

Page 2 of 2

You might also like