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

CS3271 Set5

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

CS3271 Set5

Question Sets5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, 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/Principle/Apparatus Tabulation/ Calculation Viva-Voce Record Total


required/Procedure Circuit/Program/ & Results
Drawing
20 40 20 10 10 100

Write a C program to check whether the entered character is vowel or not(Use switch
case).
1.

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

b.Write a C program to check the biggest of three numbers.

3. Perform the Calculator operations, namely, addition, subtraction, multiplication, division


and square of a number using the C program.

4. Write a C program to perform swapping using functions.

5. Display all prime numbers between two intervals using the C program(Use Functions).

6. Write a C program to reverse a sentence using recursion.

7. Find the length of the string using the C program.

a. Using Library Function.

b. Without using Library Function.

8. Write a C program to get the user details and display it.

9. Write a C program to store student information in structure and display it.

Page 1 of 2
10. a.Write a C program to copy the contents of one file to another.

b.Write a C program to merge two files into a third file.

11. a.Write C program to count the number of lines, words and characters in a given text.

b.Write a C program to find the length of the string using Pointer.

12. Write a C program that displays the position or index in the main string S where the sub
string T begins, or - 1 if S doesn't contain T.

13. a.Write a C program to find the roots of a quadratic equation.

b.Write a C program to perform arithmetic operations using switch statement.

14. Write a C program to count the number of account holders whose balance is less than the
minimum balance using a sequential access file.

15. Write a C program to Display array elements using calloc( ) function

16. Write a C program that uses functions to perform Multiplication of Two Matrices

17. a. Write a C Program to Sort the Array in an Ascending Order.

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

18. a.Write a C program to find the sum of individual digits of a given positive

integer.

19. Write a C program to insert, update, delete and append telephone details of an individual
or a company into a telephone directory using a random access file.

20. a. Write a C program that uses functions and structures to perform the following
operations:

i) Reading a complex number ii) Writing a complex number

b. Write a C program to display the contents of a file.

Page 2 of 2

You might also like