We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Reg.No.:{ | | | | TITTLE
Question Paper Code : 60025
CSE}
B.EJB.Tech. DEGREE EXAMINATIONS, APRIL/MAY 2022.
Second Semester
Computer Science and Engineering
CS 3251 — PROGRAMMING IN C
(Common to : Computer and Communication Engineering/Information Technology)
Regulations 2021)
‘Time : Three hours Maximum : 100 marks
Answer ALL questions.
PART A — (10 x 2
0 marks)
Write short notes on Keywords in C language.
What is difference between the statements a= 5 and a == 5 in language C?
1
2
3. Write down the syntax for array declaration.
4, What is the purpose and prototype of the function ‘strepy’?
5. Define the term recursion in language C.
6. What is the relation between the operators ‘&’ and‘*” in C pointers?
7. Inlanguage C can we allocate memory dynamically? How?
8. What are the key differences between structure and union?
9. What will be the impact if ‘felose( )’ function is avoided in a file handling
C program?
10. What are command line arguments?
PART B— (6x 16
0 marks)
11. (a) Draw the structure of a C program and explain each part in detail.
Or
(b) Enumerate the difference between ‘else-if ladder’ and ‘switch — case’
statements with appropriate C programs.12,
13.
14,
16.
(a)
)
(@)
)
(@)
(b)
(a)
b)
@ Whatis an array? Explain about various types of arrays in detail. (8)
(i) Explain the usage of ‘streat()’ with an C program. @)
Or
@ Differentiate binary search from linear search. ®
Gi) Write a C program to compare two strings without using the
function ‘stremp( 8)
What is modular Programming? How docs the Language C support
modular programming? Explain in detail.
Or
What is the necessity of parameter passing in C Programs? What are the
two types of doing that? Explain any one in detail.
@ What is the purpose of the concept ‘structure’ in Language C?
Explain in detail with an example program. 8)
(i) Why is singly linked list called as self-referential structure?
Explain. 8)
Or
(Write short notes on ‘Array of structures’. (8)
(ii) Write a comparative analysis on various storage classes of
language C. ®
What is file? What are facilities available in language C to handle files?
Explain.
Or
Explain the various file accessing policies available in language C with
appropriate programs.
4
2 60025