How will an expression be evaluated when two or more operators at same 2 ட [2 operator precedence level are in it?
Other Or UnclassifiedSource quality review required
Anna University
| 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 |
Access the previous year question paper for your examination preparation.
View / Download PDFBrowse other previous year question papers for this subject.
View All Subject Question PapersAutomatically extracted historical question data. Academic accuracy and examination rules require verification.
| Part | Required answers | Marks per answer | Section total |
|---|---|---|---|
| A | 10 | 2 | 20 |
| B | 5 | 13 | 65 |
| C | 1 | 15 | 15 |
Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.
Detected alternatives only. Confirm the actual choice rules in the original question paper.
How will an expression be evaluated when two or more operators at same 2 ட [2 operator precedence level are in it?
Other Or UnclassifiedSource quality review required
Differentiate call by value and call be reference. 2 2 | 14
ComparisonSource quality review required
Define recursive functions. 2 2 (1
DefinitionSource quality review required
Write a short code snippet to iterate over and print a string in C. 7. ௪ (பட
Other Or UnclassifiedSource quality review required
List two dynamic memory allocation functions in C with their syntax and usage. 2 ப்பட. fA What are enumerated types? 2 4 186
Short DescriptionSource quality review required
How to open a file in text or binary mode in C? 2 4 L2
Other Or UnclassifiedSource quality review required
What is linear search? 2 5 Lia
DefinitionSource quality review required
Name two sorting methods used to sort arrays. 2 5 | Lt
Short DescriptionSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(a) (i) | Explain with illustrative code examples the syntax and working mechanism of 13 2 | 4 different types of functions in 6.
Other Or UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(a) (i) Write a C program to implement a Queue data structure using arrays. Also, list some applications scenarios.
Other Or UnclassifiedSource quality review required
(b) (i) Write a C program to implement a Stack data structure using arrays. Also, list some application scenarios. les jor
Other Or UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.