0% found this document useful (0 votes)
26 views

CS3271 Set3

Question Sets3
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)
26 views

CS3271 Set3

Question Sets3
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/ 3

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

(To be filled by the question paper setter)

Aim / Procedure Program Results Viva-Voce Record Total


20 40 20 10 10 100

1. i) Write a C program for adding five subject marks and print the same.

ii) Write a C program to Obtain an ASCII value.

2. i) Write a C program for obtain a size of all datatypes.

ii) Write a C program for five subject marks total and average and print the results.

3. i) Write a C program to find if a person is eligible for voting or not

ii) Write a C program to find the biggest among given two integers using conditional
statement.

4. i) Write a C program to find the curved surface of the cylinder.

ii) Write a program that finds equivalent Grade of your obtained score using if -else ladder.

5. i) Write a C program to find a given number is odd or even.

ii) Write a C Program to create a Pascal triangle.

6. i) Wrtie a c Program using if statement for calculating bonus for an employee working in an

Page 1 of 3
organization.

ii) Write a C program to find the biggest among three integers.

7. i Check whether a given number is Armstrong or no using C Program.

ii) Write a C Program to find a give string is palindrome or not without using string built in
function.

8. Write a C program to find the given number is prime or not.

Write a C program to sort the alphabetic order of given names.

9. Write a C Program to find the matrix addition.

10. i) Write a C Program to swap the two numbers without using third variable or temporary
variable.

ii) Write a Program to find the given number is leap year or not.

11. Write a C Program to find the transpose of a matrix.

12. Write a C Program to find the factorial number of a given number.

13. Write a C Program to find the matrix Multiplication.

14. i.Write a C Program to find given number is zero or not a zero, odd or even using Switch
statement.

ii. Write a C Program to find given number is zero or not a zero, odd or even using if else
statement.

15. Write a C Program to create student mark sheets with course details and grades using the

Page 2 of 3
structure.

16. Write a C Program to create the Employee Structure. Take the employee ID, name, age,
rank and salary as data members and print the details of the five employees.

17. Write the file Input and output Operations

18. Write a C program for the pointer and pointer to pointer to operations.

19. Write a C program to calculate and display total cost of 4 models of Pentium PC. Use the
single dimensional array for PC codes their price and quantity available.

20. a. Write a C program to generate numbers between 1 and 100 which are divisible by 2
and not divisible by 3 and 5.

Page 3 of 3

You might also like