// Anna University, Chennai / 2023
Anna University — Programming in C (CS3251), April/May 2023
Programming in C · CS3251 · R2021 · B.E./B.Tech. Engineering (common paper) · Semester 2
Files open in a new tab. Use your browser's download or save option to keep a copy.
Work through the questions
15 questions
No verified answers are available for this paper.
Draw the structure of a C program.
No verified answer or solution is available for this question.
What is the purpose of a format specifier in I/O statements? Give an example.
No verified answer or solution is available for this question.
Write down the syntax and give an example for array initialization.
No verified answer or solution is available for this question.
How do you find the length of a string?
No verified answer or solution is available for this question.
What is a function prototype? Give an example.
No verified answer or solution is available for this question.
What is the difference between user-defined functions and built-in functions?
No verified answer or solution is available for this question.
What do you mean by a self-referential structure?
No verified answer or solution is available for this question.
What is unique about the register storage class?
No verified answer or solution is available for this question.
Describe the prototype of fopen().
No verified answer or solution is available for this question.
List the various modes of accessing a file in C.
No verified answer or solution is available for this question.
(a) Explain the various data types supported by C. (16 marks) (OR) (b) Explain the various looping statements available in C with appropriate sample programs. (16 marks)
No verified answer or solution is available for this question.
(a) (i) What is an array? Explain one-dimensional arrays with a sample program. (8 marks) (ii) Explain the significance of the string.h header and write short notes on any three string functions. (8 marks) (OR) (b) (i) Write and explain the procedure for selection sort. (8 marks) (ii) Write a C program to demonstrate matrix addition. (8 marks)
No verified answer or solution is available for this question.
(a) Write short notes on (i) function prototype and function call (8 marks) and (ii) function definition and return value (8 marks). (OR) (b) Enumerate the differences between call by value and call by reference with suitable examples. (16 marks)
No verified answer or solution is available for this question.
(a) (i) Explain the need for nested structures with an appropriate example program. (8 marks) (ii) Can a linked list grow dynamically? Justify with an example C program. (8 marks) (OR) (b) (i) Explain the concept of a singly linked list with a suitable diagram. (8 marks) (ii) Enumerate the differences between a structure and a union with an example. (8 marks)
No verified answer or solution is available for this question.
(a) How is random access to files done in C? Explain in detail. (16 marks) (OR) (b) What is the purpose of argc and argv in C command line arguments? Explain with a sample program. (16 marks)
No verified answer or solution is available for this question.