Skip to content

// Anna University, Chennai / 2020, 2021

Anna University — Programming in C (CS8251), November/December 2020 / April/May 2021

Programming in C · CS8251 · R2017 · 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 2Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    Distinguish between character and string.

    No verified answer or solution is available for this question.

  2. Question 2

    Part AUnit 1Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    When to use global variable in programming?

    No verified answer or solution is available for this question.

  3. Question 3

    Part AUnit 2Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    What is the starting index of an array?

    No verified answer or solution is available for this question.

  4. Question 4

    Part AUnit 2Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    What are the different ways of initializing array?

    No verified answer or solution is available for this question.

  5. Question 5

    Part AUnit 3Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    What is pointer arithmetic?

    No verified answer or solution is available for this question.

  6. Question 6

    Part AUnit 3Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    Distinguish between call by value and call by reference.

    No verified answer or solution is available for this question.

  7. Question 7

    Part AUnit 4Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    How can you access the members of the union?

    No verified answer or solution is available for this question.

  8. Question 8

    Part AUnit 4Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    Specify the use of typedef.

    No verified answer or solution is available for this question.

  9. Question 9

    Part AUnit 5Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    What are unformatted data files?

    No verified answer or solution is available for this question.

  10. Question 10

    Part AUnit 5Descriptive2 marks

    Programming in C

    • 2021
    • 2020

    Write short note on State Transaction Processing.

    No verified answer or solution is available for this question.

  11. Question 11

    Part BUnit 1Descriptive16 marks

    Programming in C

    • 2021
    • 2020

    (a) Discuss about preprocessor directive with example program. (OR) (b) Summarize the various types of operators in ‘C’ language along with its priority and justification.

    No verified answer or solution is available for this question.

  12. Question 12

    Part BUnits 2, 3Descriptive16 marks

    Programming in C

    • 2021
    • 2020

    (a) Describe the following functions with examples. (i) strlen(). (4 marks) (ii) strcpy(). (4 marks) (iii) strcat(). (4 marks) (iv) strcmp(). (4 marks) (OR) (b) Write a C program to sort the n numbers using selection sort and trace it using following values 64, 25, 12, 22, 11.

    No verified answer or solution is available for this question.

  13. Question 13

    Part BUnit 3Descriptive16 marks

    Programming in C

    • 2021
    • 2020

    (a) Explain in detail about recursive function with sample code. (OR) (b) Write a C program for swapping of two numbers and changing the value of a variable using pass by reference.

    No verified answer or solution is available for this question.

  14. Question 14

    Part BUnit 4Descriptive16 marks

    Programming in C

    • 2021
    • 2020

    (a) Discuss about the following. (i) Singly linked list and operations (insertion, deletion, searching) with code segment. (10 marks) (ii) Advantages and disadvantages of singly linked list. (6 marks) (OR) (b) C program to add two distance (in inch-feet) system using structures.

    No verified answer or solution is available for this question.

  15. Question 15

    Part BUnit 5Descriptive16 marks

    Programming in C

    • 2021
    • 2020

    (a) Explain the types of file processing with its suitable application. (OR) (b) Write a C program to do the following. (i) Create a text file ‘input.txt’. (8 marks) (ii) Print the contents of file in reverse order. (8 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