Skip to content

// Anna University, Chennai / 2025

Anna University — Computer Programming: C (CS25C01), November/December 2025

Computer Programming: C · CS25C01 · R2025 · B.E./B.Tech. Engineering (common paper) · Semester 1

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

    Mention any two characteristics of a good algorithm.

    No verified answer or solution is available for this question.

  2. Question 2

    Part AUnit 2Descriptive2 marks

    Programming in C

    Compare between entry controlled and exit controlled loop.

    No verified answer or solution is available for this question.

  3. Question 3

    Part AUnit 3Descriptive2 marks

    Programming in C

    Differentiate between local and global variables.

    No verified answer or solution is available for this question.

  4. Question 4

    Part AUnit 4Descriptive2 marks

    Programming in C

    Write the general syntax for a multi-dimensional array and its initialization.

    No verified answer or solution is available for this question.

  5. Question 5

    Part AUnit 4Descriptive2 marks

    Programming in C

    How will you copy one string into another without using library functions?

    No verified answer or solution is available for this question.

  6. Question 6

    Part AUnit 4Descriptive2 marks

    Programming in C

    Compare between static and dynamic memory.

    No verified answer or solution is available for this question.

  7. Question 7

    Part AUnit 5Descriptive2 marks

    Programming in C

    What is union? How to define it?

    No verified answer or solution is available for this question.

  8. Question 8

    Part AUnit 5Descriptive2 marks

    Programming in C

    Present the syntax of initializing a structure at the time of declaration.

    No verified answer or solution is available for this question.

  9. Question 9

    Part AUnit 6Descriptive2 marks

    Programming in C

    State the purpose of using rewind() in file handling.

    No verified answer or solution is available for this question.

  10. Question 10

    Part AUnit 7Descriptive2 marks

    Programming in C

    List two advantages of using user-defined header files.

    No verified answer or solution is available for this question.

  11. Question 11

    Part BUnit 1Descriptive16 marks

    Programming in C

    (a) Explain the basic structure of a C program in detail with an example. Describe documentation section, link section, definition section, global declaration, main() function and subprograms. (OR) (b) Describe bitwise operators in detail. Explain AND, OR, XOR, NOT, left shift and right shift operations with binary examples.

    No verified answer or solution is available for this question.

  12. Question 12

    Part BUnit 2Descriptive16 marks

    Programming in C

    (a) Explain in detail the looping constructs: for, while and do-while. Compare them and write example programs. (OR) (b) Discuss in detail about the selection statement in C: if, if-else, nested if, switch. Give suitable C programs.

    No verified answer or solution is available for this question.

  13. Question 13

    Part BUnit 3Descriptive16 marks

    Programming in C

    (a) (i) Write a C program to find greatest common divisor using recursive function. (8 marks) (ii) Discuss about the scope and lifetime of variables. (8 marks) (OR) (b) Illustrate in detail about call by value and call by reference with an example.

    No verified answer or solution is available for this question.

  14. Question 14

    Part BUnit 5Descriptive16 marks

    Programming in C

    (a) (i) Compare and contrast structure and union with examples. (8 marks) (ii) Explain about enum datatype in C with an example of days of a week. (8 marks) (OR) (b) Write a C program using pointers to structures to insert and update employee details using array of structure.

    No verified answer or solution is available for this question.

  15. Question 15

    Part BUnits 3, 6, 7Descriptive16 marks

    Programming in C

    (a) Compare and contrast between text files and binary files. Write C programs for reading and writing in both formats. (OR) (b) Explain the entire process of modular programming: splitting code, creating headers, linking and reuse with an example program.

    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