DEPARTMENT OF SCIENCE & HUMANITIES
CS 3251 PROGRAMMING IN C [REGULATION - 2021]
ASSIGNMENT I
Question Paper
ASSIGMENT – II (40 Marks ) [ CO1 – 16 marks, CO2 – 16 marks, CO3 – 8 marks]
Batch – I [720322104001- 720322104010]
S.No. Question and Answer CO
Develop a C program for the following CO1
i) To find whether the given number is odd or even, using Bitwise ' & '
1. Operator.
ii) Largest of three numbers using Ternary Operator
iii) Celsius to Fahrenheit Converter
2. Code a C program to sort an array in ascending & descending order. CO2
CO3
3. Write a C program using functions to perform arithmetic operations
Batch – II [720322104011- 720322104021]
S.No. Question and Answer CO
Write a C program for the following CO1
i) To find whether the given number is positive or negative, using
1. Bitwise ' & ' Operator.
ii) Smallest of three numbers using Ternary Operator
iii) Fahrenheit to Celsius Converter
2. Develop a program to search an element in an array using linear search. CO2
CO3
3. Develop a program to compute the factorial of a number using recursion.
Batch – III [720322104022- 720322104032]
S.No. Question and Answer CO
1. Explain the types of operators supported in C with example programs. CO1
2. Develop a C code to find the maximum and minimum element in an array. CO2
CO3
3. Develop a program to compute the Fibonacci of a number using recursion.
Batch – IV [720322104033- 720322104043]
S.No. Question and Answer CO
Describe the various conditional branching statements supported in C language CO1
1.
with necessary examples.
2. Develop a C program to perform matrix multiplication. CO2
CO3
3. Write a C program to find the GCD of two numbers using recursion.
Batch – V [720322104044- 720322104055]
S.No. Question and Answer CO
Develop a C program for the following: CO1
i) To check whether the given number is prime or not
1.
ii) To find the roots of a quadratic equation
iii) To check whether the give number is odd or even
Write a C program to find the whether the given string is palindrome or not using CO2
2.
string functions.
CO3
3. Explain in detail about pass by value and reference.
Batch – VI [720322104056- 720322104063]
S.No. Question and Answer CO
1. Illustrate about data types in C. CO1
Write a C program to count the number of characters, spaces, vowels, constants CO2
2.
and other using string fucntions.
CO3
Demonstrate about function declaration, function call and function definition with
3.
relevant example programs.
COURSE INSTRUCTOR PROGRAMME CO-ORDINATOR PRINCIPAL