0% found this document useful (0 votes)
16 views4 pages

CS3251-Programming Apr-May-2022

Uploaded by

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

CS3251-Programming Apr-May-2022

Uploaded by

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

www. EnggTree.

com
Reg. No. : IE IN I G IG I T IR IE I tl· I C I 0 I

I Question Paper Code :


60025
B.E./B.Tech. DEGREE EXAMINATIONS, APRII.JMAY 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 ma rks
Answer ALL questions.

PART A -(10 x2 = 20 marks)


1. Write short notes on Keywords in C language.
2. What is difference between the statements a = 5 and a = 5 in language
C?
3. Write down the syntax for array declaration.
4. What is the purpose and prototype of the function 'strcpy'?
5. Define the term recursion in language C.
6. What is the relation between the operators '&' and ' * ' in C pointers?
7. In language C can we allocate memory dynamically? How?
8. What are the key differences between structure and union?
9. What will be the impact if 'fclose( )' function is avoided in a file handling
C program?
10. What are command line arguments?
PART B -(5 x 16 = 80 marks)

11. (a) Draw the structure of a C program nd explain each part in detail.
Or
(b) Enumerate the difference between 'else-if ladder' and 'switch _ case'
statem ents with appropriate C programs .

Downloaded from EnggTree.com


}9
-· (a) (i)

(ii) Explain the usage of 'strca t( )' with an C program . (8)

Or

(b) (i) Differentiate binary search from linear search. (8)

(ii) \Vrite a C program to compare two strings wit hout using the
function 'strcmp( )'. (8)

13. (a) What is modular Programming? How does the Language C support
mod ular programming? Explain in detail.

Or
(b) \Vhat is the necessity of pa rameter passing in C Programs? Wha t are
the two types of doing tha t? Explain any one in detail.

14. (a) (i) What is the purpose of the concept 'structure' m Language C?
Explain in detail with an example program. (8)

(ii) \Vhy 1s singly linked list called as self-referential structure?


Explain. (8)

Or
(b) (i) Write short notes on 'Array of structures'. (8)
(ii) Write a comparative analysis on vanous storage classes of
language C. (8)

15. (a) What is file? What are facilities available in language C to handle files?
Explain .

Or
(b) E>.-. plain the various file accessing policies available in language C
with appropriate progra ms.

2
Downloaded from EnggTree.com 60025

You might also like