Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

VEL TECH HIGH TECH Dr. RANGARAJAN Dr.

SAKUNTHALA
ENGINEERING COLLEGE
(AN AUTONOMOUS INSTITUTION)
DEPARTMENT OF SCIENCE & HUMANITIES

Degree : B.TECH Sub Code : CS8261


Branch : IT Time : 01:00PM -04:00 PM
Year/Semester : I / II Total Marks : 85
Date : 11-AUG-2021 Session : FN
PROGRAMMING IN C
PRACTICAL END SEMESTER EXAMINATIONS (JUL/AUG 2021)
Aim &
Result / Output
Algorithm Program Viva Voce Total

10 Marks 50 Marks 15 Marks 10 Marks 85 Marks

1 Write and execute a C Program to Insert, Update and delete the

113020205024 telephone details of a staff in a company using random access file.

2 Write and execute a C Program to Count the number of candidates

113020205025 who have failed in more than 4 subjects in a semester using


sequential access file.

3 Write and execute a C Program to replace all the characters by lowercase


(a) in a given paragraph.
113020205026

Write and execute a C program to find row sum and column sum of a
(b) square matrix with dynamic memory Allocation.
4 Write and execute a C Program to Search a Word & Replace it with
(a) the Specified Word in a given paragraph.
113020205027

Write and execute a C Program to Search a name in a list of names using


(b)
binary search.

5 Write and execute a C Program to Find the Frequency of the Word ‘the’
(a) in a given paragraph.
113020205028

Write and execute a C program to calculate median for an array of


(b)
elements.

6 Write and execute a C Program to print the Student Mark Sheet Using
(a) Structure.
113020205029

(b) Write and execute a C program to find transpose of a matrix.

7 Write and execute a C program to calculate employee salary slip using


(a) structures and pointers.
113020205030

Write and execute a C program to find whether the given string is


(b)
palindrome or not.

8 Write and execute a C program to convert a decimal number to binary using


(a) user defined functions.
113020205031

(b) Write and execute a C Program to Implement Singly Linked list.


9 Write and execute a C program to Convert Decimal to Octal using user defined
(a) functions.
113020205032

Write and execute a C program to insert a substring into a string at a particular


(b)
position.

10 Write and execute a C program to Convert Decimal to Hexadecimal using user


(a) defined functions.
113020205033

Write and execute a C program to create two files with a set of values. Merge
(b)
the two file content to form a single file

11 Write and execute a C Program to print Armstrong number from 1 to 1000.


(a)
113020205034

Write and execute a C program to find the average of numbers stored in


(b)
sequential access file.

12 Write and execute a C Program to sort an array in descending order.


(a)
113020205035

(b) Write and execute a C Program to perform matrix multiplication.


13 You are given a set of numbers from 1 to 100.

113020205036 You should find sum of weights based on the following conditions:

5 if a perfect square

(a) 4 if multiple of 4 and divisible by 6

3 if even number

Write and execute a C program to print the numbers whose sum of weights is
exactly 12.

(b) Write and execute a C program to find GCD using recursion.

14 Write and execute a C program to Print all leap years from 2018 to 2100.
(a)
113020205037

Write and execute a C program to read the contents of the file and display the
(b)
number of words, characters ,sentences, special characters,spaces.

15 Write and execute a C Program to simulate a simple calculator. This program


(a) performs arithmetic Operations like addition, subtraction, multiplication &
113020205038 division (use switch-case and functions).

(b) Write and execute a C program to search an element from the array.

16 Write and execute a C program to Print all the Repeated Numbers with
(a) Frequency in an Array.
113020205039
Write and execute a C program to read the details of book name, author name
(b)
and price of 5 books in a library and display the total cost of the books.

17 Write and execute a Program in C to find the mean of n numbers using array
(a)
113020205040 and print all the numbers greater than mean.

(b) Write and execute a C program to sort the given N names.

18 Write and execute a C program to compute body mass index (BMI) for 5
(a) persons.( Use 2D Array)
113020205041

Write and execute a C program for the following description

You are given a set of numbers like <10, 36, 54, 89, 12>.

You should find sum of weights based on the following conditions:

5 if a perfect square
(b)
4 if multiple of 4 and divisible by 6

3 if even number

And sort the numbers based on the weight and print it as follows:
<10,its_weight>,<36,its weight><89,its weight>
The program should display the numbers in increasing order of their weights.

19 Write and execute a C program to Reverse an array without affecting special


(a) characters.
113020205042
Write and execute a C Program to Calculate roots and status of a quadratic
(b)
equation.

20 Write and execute a C Program to Solve Tower-of-Hanoi Problem

113020205043 (a) using Recursion.


Display total no of moves for 4 disks.

Write and execute a C program to find Factorial of number using recursion.


(b)

21 Write and execute a C Program to sort an array using pointer.


(a)
113020205044

(b) Write and execute a C Program to delete a node in Singly Linked list.

22 Write and execute a C Program to simulate a simple calculator. This program


(a) performs arithmetic Operations like addition, subtraction, multiplication &
113020205045 division (use switch-case and functions).

(b) Write and execute a C program to search an element from the array.

23 Write and execute a C program to Print all the Repeated Numbers with
(a) Frequency in an Array.
113020205046

Write and execute a C program to read the details of book name, author name
(b)
and price of 5 books in a library and display the total cost of the books.
24 Write and execute a C program to Convert Decimal to Hexadecimal using user
defined functions.
(a)

Write and execute a C program to create two files with a set of values. Merge
(b)
the two file content to form a single file.

EXTERNAL EXAMINER
INTERNAL EXAMINER

You might also like