Skip to content

// Anna University, Chennai / 2023

Anna University — C Programming and Data Structures (CS3353), April/May 2023

C Programming and Data Structures · CS3353 · R2021 · B.E. Electrical and Electronics Engineering · Semester 3

Files open in a new tab. Use your browser's download or save option to keep a copy.

Work through the questions

16 questions

No verified answers are available for this paper.

  1. Question 1

    Part AUnit 1Descriptive2 marks

    C Programming and Data Structures

    What is the role of associativity in prioritizing the operators?

    No verified answer or solution is available for this question.

  2. Question 2

    Part AUnit 1Descriptive2 marks

    C Programming and Data Structures

    Define recursion.

    No verified answer or solution is available for this question.

  3. Question 3

    Part AUnit 2Descriptive2 marks

    C Programming and Data Structures

    Write short notes on ‘enum’.

    No verified answer or solution is available for this question.

  4. Question 4

    Part AUnit 2Descriptive2 marks

    C Programming and Data Structures

    What is the role of pointers in call by reference.

    No verified answer or solution is available for this question.

  5. Question 5

    Part AUnit 3Descriptive2 marks

    C Programming and Data Structures

    List the advantages of linked list over arrays.

    No verified answer or solution is available for this question.

  6. Question 6

    Part AUnit 3Descriptive2 marks

    C Programming and Data Structures

    Name any four applications of queue in the field of computer applications.

    No verified answer or solution is available for this question.

  7. Question 7

    Part AUnit 3Descriptive2 marks

    C Programming and Data Structures

    Convert the infix expression to postfix: (A − B/C) ∗ (D/E − F)

    No verified answer or solution is available for this question.

  8. Question 8

    Part AUnit 4Descriptive2 marks

    C Programming and Data Structures

    What is rehashing? When is it Preferred?

    No verified answer or solution is available for this question.

  9. Question 9

    Part AUnit 5Descriptive2 marks

    C Programming and Data Structures

    What is output of selection sort after second iteration for the number sequence: 15, 5, 43, 7, 25, 11

    No verified answer or solution is available for this question.

  10. Question 10

    Part AUnit 5Descriptive2 marks

    C Programming and Data Structures

    Is linear search is better than binary search? Why?

    No verified answer or solution is available for this question.

  11. Question 11

    Part BUnit 1Descriptive13 marks

    C Programming and Data Structures

    (a) What is the use of looping? Explain about the entry-controlled and exit-controlled loops available in ‘C’ with appropriate sample C programs. (13) (OR) (b) What is an array? List the various types of arrays. Elaborate on t − D array with an example. (13) [Transcription note: The source prints “t − D array”.]

    No verified answer or solution is available for this question.

  12. Question 12

    Part BUnit 2Descriptive13 marks

    C Programming and Data Structures

    (a) (i) What is the significance of ‘structure’ in language C? Explain in detail with an example program. (10) (ii) Enumerate the difference between structures and unions. (3) (OR) (b) (i) Explain the procedure to pass an array as argument to a function with an example program. (7) (ii) Write brief notes on preprocessor directives. (6)

    No verified answer or solution is available for this question.

  13. Question 13

    Part BUnit 3Descriptive13 marks

    C Programming and Data Structures

    (a) (i) Write and explain the algorithms of enqueue and dequeue operations of queue. (7) (ii) Write short notes on doubly linked list with few operations. (6) (OR) (b) (i) Write and explain the algorithms of peek and display operations of stack. (7) (ii) With appropriate diagram explain any one application of queue. (6)

    No verified answer or solution is available for this question.

  14. Question 14

    Part BUnit 4Descriptive13 marks

    C Programming and Data Structures

    (a) (i) What is tree traversal? Explain various methods of traversals. (7) (ii) Construct an expression tree for the expression (p + r ∗ q) + ((s ∗ t + u) ∗ v). What would be the output if inorder, preorder and postorder traversals are done. (6) (OR) (b) (i) What is a hash function? Explain the concept of hashing with example. (7) (ii) Construct BST for the following: {20,30,10,40,50,−20,−30,60} (6)

    No verified answer or solution is available for this question.

  15. Question 15

    Part BUnit 5Descriptive13 marks

    C Programming and Data Structures

    (a) (i) Sort the following values using quick sort: 35,40,45,50,55,30,25,20,15. Illustrate each step of the sorting process. (9) (ii) Write and explain the algorithm of linear search. (4) (OR) (b) (i) Explain about the sorting algorithm that works based on divide and conquer technique. (7) (ii) What are the advantages of linear search over binary search? Justify your observation with an example. (6)

    No verified answer or solution is available for this question.

  16. Question 16

    Part CUnit 3Descriptive15 marks

    C Programming and Data Structures

    (a) (i) Convert the following arithmetic expression in infix form to post fix form using stack: A + B/C + D ∗ (E − F) ^ G (8) (ii) Explain the procedure for string reversal using stack with suitable diagram. (7) (OR) (b) (i) Evaluate the following arithmetic expression using stack. 2 ∗ (4 + 3) − 5 (8) (ii) Explain the procedure for balanced parenthesis checker using stack with suitable diagram. (7)

    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