Programming in c Lab 2024
Programming in c Lab 2024
(AUTONOMOUS)
End Semester Examinations – Nov / Dec 2024
Mark Allocation
Concluding
Experimental setup Execution of Practical
Activities Viva-Voce Total
(Aim) (Program)
(Output/Result)
30 30 30 10 100
S. No QUESTIONS COs BTL
1. C Programming using I/O statements and expressions. CO1 K3
Design a calculator to perform the operations, namely, Addition, CO1
2. K3
Subtraction, Multiplication, Division and Square of a number.
Prime number generation and to check whether the given number is Armstrong or CO1
3. K3
not using looping.
4. Greatest number using array (One dimensional). CO1 K3
Populate an array with height of persons and find how many persons are above CO1
6. K3
the average height.
Populate a two dimensional array with height and weight of persons and CO1
7. K3
compute the Body Mass Index of the individuals.
Given a string –a$bcd./fg|| find its reverse without changing the position of
8. CO2 K3
special characters.(Example input:a@gh%;j and output: jAhg%;a)
From a given paragraph perform the following using built-in functions:
a. Find the total number of words. CO2
9. K3
b.Capitalize the first word of each sentence.
C.Replace a given word with another word.
10. Sort the list of numbers using pass by reference. CO2 K3
11.
CO2 K3
Solve Factorial and Fibonaaci series using recursion.
12. Generate salary slip of employees using structures and pointers. CO2 K3
Compute internal marks of students for five different subjects using structures CO2 K3
13.
and functions.
Encl: Syllabus copy
2. Design a calculator to perform the operations, namely, addition, subtraction, multiplication, Division
and square of a number.
3. Prime number generation and to check whether the given number is armstrong or not using looping
6. Populate an array with height of persons and find how many persons are above the average height.
7. Populate a two dimensional array with height and weight of persons and compute the Body Mass Index
of the individuals.
8. Given a string ―a$bcd./fg‖ find its reverse without changing the position of special characters. (Example
input:a@gh%;j and output:j@hg%;a)
9. From a given paragraph perform the following using built-in functions:
a. Find the total number of words.
b. Capitalize the first word of each sentence.
c. Replace a given word with another word.
10. Sort the list of numbers using pass by reference.
13. Compute internal marks of students for five different subjects using structures and functions.
Total: 30 Periods
COURSE OUTCOMES:
On completion of the course, the students will be able to
CO1 Develop C programs for simple applications making use of basic constructs, arrays and strings.
BOS Chairman