Skip to content

// 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.

  1. Question 1

    Part AUnit 1Descriptive2 marks

    Programming in C

    Draw the structure of a C program.

    No verified answer or solution is available for this question.

  2. Question 2

    Part AUnit 1Descriptive2 marks

    Programming in C

    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.

  3. Question 3

    Part AUnit 2Descriptive2 marks

    Programming in C

    Write down the syntax and give an example for array initialization.

    No verified answer or solution is available for this question.

  4. Question 4

    Part AUnit 2Descriptive2 marks

    Programming in C

    How do you find the length of a string?

    No verified answer or solution is available for this question.

  5. Question 5

    Part AUnit 3Descriptive2 marks

    Programming in C

    What is a function prototype? Give an example.

    No verified answer or solution is available for this question.

  6. Question 6

    Part AUnit 3Descriptive2 marks

    Programming in C

    What is the difference between user-defined functions and built-in functions?

    No verified answer or solution is available for this question.

  7. Question 7

    Part AUnit 4Descriptive2 marks

    Programming in C

    What do you mean by a self-referential structure?

    No verified answer or solution is available for this question.

  8. Question 8

    Part AUnit 4Descriptive2 marks

    Programming in C

    What is unique about the register storage class?

    No verified answer or solution is available for this question.

  9. Question 9

    Part AUnit 5Descriptive2 marks

    Programming in C

    Describe the prototype of fopen().

    No verified answer or solution is available for this question.

  10. Question 10

    Part AUnit 5Descriptive2 marks

    Programming in C

    List the various modes of accessing a file in C.

    No verified answer or solution is available for this question.

  11. Question 11

    Part BUnit 1Descriptive16 marks

    Programming in C

    (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.

  12. Question 12

    Part BUnit 2Descriptive16 marks

    Programming in C

    (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.

  13. Question 13

    Part BUnit 3Descriptive16 marks

    Programming in C

    (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.

  14. Question 14

    Part BUnit 4Descriptive16 marks

    Programming in C

    (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.

  15. Question 15

    Part BUnit 5Descriptive16 marks

    Programming in C

    (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.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam