Ps Questions
Ps Questions
3. a) Write a C program to sort the 10 strings (entered by the user) in lexicographical order
(dictionary order).
b) Describe the concept of dynamic memory allocation.
5. a) Write a C program to copy the content from one file to another file.
b) What is a file pointer? Explain the steps for sequential file operations
***
Code No:PSsWC202102
R20
CMR INSTITUTE OF
CMR
GROLIP OF INSTITUTIONS
TECHNOLOGY
(UGC AUTONOMOUS)
Kandlakoya (V), Medchal Road, Hyderabad -501401
IB.Tech. I Sem Pre-Final Examinations,
March 2021
Problem Solving with C
Time: 3 hours
(COMMON TO CSE, CSD,CSM,ECE, ME,CE)
Max. Marks: 70
Note: Answer any Five
questions.
All Questions carries
equal marks.
1. a) Explain the different types of data types used in 'C'
b) Write a C program to calculate the sum of individuallanguage.
digits
of a given number.
a) Apply binary search to search key 15 in the list 79 10 12 14 15 25?
b) Discuss the concept of Linear search. Write a C
Program to implement linear searchh
technique.
3 a) Describe the concept of pointers in C.
AC program contains the
following declaration.
i) x[8] {10, 20, 30, 40, 50, 60, 70, 80);
int =
March 2021
I B.Tech. I Sem Pre-Final Examinations,
4. a) Define and declare a structure to store date, which including day, month, year
and explain nested structure concept using date structure
Referential Structure.
b) i) Discuss about enumerated type. ii) Self
lowercase letters
a) Write C program to copy one file to another by replacing all
a
file
a) Write a program to display contents of the for
on screen.
5. files?
b) Explain any five standard library
functions handling