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

22CSC01N Problem Solving and Programming Using C

Uploaded by

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

22CSC01N Problem Solving and Programming Using C

Uploaded by

25f2005509
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

R22A

Code No.: 22CSC01N


CHAITANYA BHARATHI INSTITUTE OF TECHNOLOGY (Autonomous)
B.E / B.Tech I Sem (Main) Examination January 2025
Problem Solving and Programming using C
(Common to CSE, CSM, CIC, IT & AI&DS)
Time: 3 Hours Max Marks: 60
Note: Answer ALL questions from Part-A at one place in the same order and Part–B
(Internal Choice)
Part - A
(5Q X 2M = 10 Marks)
M CO BT
1 List out the precedence rules while evaluating expression. (2) 1 1
2 Define,Declare and Initialize an Array. (2) 2 1
3 What is the scope and life time of static int? (2) 3 2
4 How to declare a pointer to pointer? (2) 4 2
5 How Structures are different from Unions? (2) 5 1

Part - B
(5Q X 10M = 50 Marks)
M CO BT
6 (a) List the different data types along with example program. (5) 1 2
(b) What are the symbols used in flowchart and draw the flowchart for the (5) 1 4
above problem
(OR)
7 (a) Develop an algorithm for checking whether the given number is a (5) 1 4
Armstrong number or Not?
(b) Distinguish between operator precedence and Associativity with (5) 1 1
example.

8 (a) Write a program for matrix multiplication. (5) 2 1


(b) Explain about the ternary operator with an example of finding the biggest (5) 2 2
number among 3 numbers.
(OR)
9 (a) Write a C program to print the following pattern (5) 2 1
50
49 48
47 46 45
44 43 42 41
(b) What is an entry controlled loop? Explain any entry controlled loop with (5) 2 1
a suitable example.

10 (a) What is recursion? Explain with an example program (5) 3 1


(b) Write a program to search an element in an array using binary search with (5) 3 1
functions.
(OR)
11 (a) Explain about call by value and call by reference with examples? (5) 3 2

Page 1 of 2
R22A
Code No.: 22CSC01N
(b) Explain the use of any 5 string handling functions in C. (5) 3 2

12 (a) What is a pointer variable? Write a C program to perform addition of 2 (5) 4 2


matrices using pointers?
(b) Discuss the bubble sort algorithm with an example (5) 4 1
(OR)
13 (a) Write a program to demonstrate the use of pointers to strings. (5) 4 1
(b) Define Dynamic memory allocation?Explain different dynamic memory (5) 4 2
allocation functions?

14 (a) Write a program to open, write to, and read from a text file in C. (5) 5 1
(b) Make use of enumeration types in C with an example of their usage. (5) 5 4
(OR)
15 (a) Write a C program to read N student records (number,name,marks of six (5) 5 1
subjects) and display average marks using array of structures.
(b) Illustrate random access file operations with examples? (5) 5 3

*****

Page 2 of 2

You might also like