PREVIOUS YEAR QUESTION PAPER

EE5001 – C Programming

Anna University

Regulation 2019 Semester 8 2024

Question Paper Details

University Anna University
Degree Multi Discipline Subjects
Department Multi Discipline Subjects
Regulation Regulation 2019
Semester 8
Subject Code EE5001
Subject Name C Programming
Exam Session April / May 2024
Duration 3 hrs
Maximum Marks 100

View Question Paper PDF

Access the previous year question paper for your examination preparation.

View / Download PDF

How to Use This Question Paper

More Question Papers

Browse other previous year question papers for this subject.

View All Subject Question Papers

Question Paper Intelligence

Automatically extracted historical question data. Academic accuracy and examination rules require verification.

19Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
4Choice candidates

Part-wise extracted questions

Part A8
Part B10
Part C1

Question type candidates

Other Or Unclassified14
Definition2
Short Description2
Comparison1

Section marks — arithmetic candidates

Part A20 marks
Part B65 marks
Part C15 marks

Recorded Bloom level candidates

BL L21

Examination marks pattern

PartRequired answersMarks per answerSection total
A10220
B51365
C11515

Estimated time allocation

Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.

Section time budget

Part A36.0 min
Part B117.0 min
Part C27.0 min

Optional-choice evidence

Detected alternatives only. Confirm the actual choice rules in the original question paper.

Part B — Question 11: Option a · Option b
Part B — Question 13: Option a · Option b
Part B — Question 14: Option a · Option b
Part B — Question 15: Option a · Option b

Question navigator

Extracted questions

Part A — 2

How will an expression be evaluated when two or more operators at same 2 ட [2 operator precedence level are in it?

Other Or Unclassified

Source quality review required

Part A — 3

Differentiate call by value and call be reference. 2 2 | 14

Comparison

Source quality review required

Part A — 4

Define recursive functions. 2 2 (1

Definition

Source quality review required

Part A — 5

Write a short code snippet to iterate over and print a string in C. 7. ௪ (பட

Other Or Unclassified

Source quality review required

Part A — 6

List two dynamic memory allocation functions in C with their syntax and usage. 2 ப்பட. fA What are enumerated types? 2 4 186

Short Description

Source quality review required

Part A — 8

How to open a file in text or binary mode in C? 2 4 L2

Other Or Unclassified

Source quality review required

Part A — 9

What is linear search? 2 5 Lia

Definition

Source quality review required

Part A — 10

Name two sorting methods used to sort arrays. 2 5 | Lt

Short Description

Source quality review required

Part B — 11a

(a) (i) | Write aC program to determine whether a given number is a palindrome 8 1 | Ls number or not. Let x be a number and y be the number with digits reversed of x then a number is said to be a palindrome number only if x equals y. For example, x=1221 and y=1221. (ii) Explain briefly the different control statements used in the above program. 5 q L3

Other Or Unclassified

Source quality review required

Part B — 11b

(b) (i) | Write aC program to print all prime numbers in the given range (a, b). For 8 ம்‌ | té example, if a given range is a=2 and b=100, the program should print all prime numbers between 2 and 100 (inclusive of limits): (ii) Explain briefly the different types of operators and expressions used in the ட்‌ 4 ப above program while describing each expression's evaluation.

Other Or Unclassified

Source quality review required

Part B — 12a

(a) (i) | Explain with illustrative code examples the syntax and working mechanism of 13 2 | 4 different types of functions in 6.

Other Or Unclassified

Source quality review required

Part B — 12OR

(0) (i) | Describe with illustrative code examples the syntax and working mechanism | 13 | 2 | ப்‌ | ட 1௦72 \a\ of different types of Arrays in C.

Other Or Unclassified

Source quality review required

Part B — 13a

(a) () Write a C function void rearrange (int *arr, int order) which takes integers and order as input arguments, arranges them in ascending order if input argument order = 1 and in descending order when order = 0. Also, write a main program to demonstrate the function by creating and passing arguments as required. ln (ii) Discuss the working mechanism of the above program while describing clearly how arrays are passed as arguments to functions. oo

Other Or Unclassified

Source quality review required

Part B — 13b

(b) (i) Write a C program which takes as input two matrices A and B, Checks the matrices for dimension compatibility for performing multiplication. Determines the resultant matrix R by computing the product of A and B. Represent the arrays used in pointer representation without using index operators. (ii) Discuss the working mechanism of the above program while describing the relationship between pointers and arrays.

Other Or Unclassified

Source quality review required

Part B — 14a

(a) (i) Write a C program using structures to maintain the details of 10 books in a bookstore like Book Number, Book Name, ISBN, Author Name, and Price. Use appropriate functions to get the data, display the data, and find the total cost of inventory in the list. Also, describe the constructs used in detail. 13 Ss

Other Or Unclassified

Source quality review required

Part B — 14b

(b) (i) Write a C program to create a file named “hello.txt”, write the sentence - “Hello! Good morning! Have a good Day!” into it and read the written lines from the file and display it. Also, describe the functions used in detail. ௮

Other Or Unclassified

Source quality review required

Part B — 15a

(a) (i) Write a C program to implement a Queue data structure using arrays. Also, list some applications scenarios.

Other Or Unclassified

Source quality review required

Part B — 15b

(b) (i) Write a C program to implement a Stack data structure using arrays. Also, list some application scenarios. les jor

Other Or Unclassified

Source quality review required

Part C — 16

(i) Develop a C program using suitable choice of functions to implement a simple calculator which prints the following menu based on the user choice of operation. Operation Menu: 1. Add 2. Subtract 3. Multiply 4. Divide 5. Quit Enter your choice: Depending on the operation choice, the program should display the user's operation and result. The menu should repeat if the user does not enter 5 to quit. For example, if the user gives the choice as 1, then addition must be performed, getting two operands from the user and printing the result. PS L6

Other Or Unclassified

Source quality review required

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.