I. Explain the use of getchar() and putchar() functions. II. Difference between for loop and while loop. III. Explain any two mathematical functions used in C. IV. Define Logical Error with an example. V. What is a Flowchart? VI. Write the rules for naming identifiers in C. VII. What is the purpose of EOF in file handling?
[7 marks]List all the operators available in Cand explain Logical Operators with suitable examples.
[7 marks]What is a Flowchart? Explain its importance in programming and draw a flowchart to find the sum and average of five numbers.
[7 marks]What is a Linker, and what is its role in program execution? How does it differ from a Loader?
[7 marks]What is the Structure of a C Program? Explain the different sections of a Cprogram with the help of a suitable example.
[7 marks]Explain the concept of arrays in C. Write a program to find the largest element among three elements.
[7 marks]Write a Cfunction to check whether a given number is a palindrome or not using functions.
[7 marks]Write a Cprogram using switch-case to perform a simple calculator that can add, subtract, multiply, and divide two numbers.
[7 marks]Write a Cprogram using loop to find the sum of digits of a given number.
[7 marks]List all types of functions and explain Function with no arguments and no return value.
[7 marks]What is a Nested Structure? Explain with an example.
[7 marks]Page 1 of
[2 marks]Explain how to access structure members using the dot (.) and arrow (→) operators in C.
[7 marks]What is Pointer Arithmetic? Explain Increment (ptr++), Decrement (ptr--), Addition, and Subtraction in pointers.
[7 marks]Explain File Handling in C. How do you declare, open, and close a file? (Use fopen() and fclose() functions)
[7 marks]Explain file modes in C: Read (r), Write (w), Append (a), Read + Write (r+, w+, a+)
[7 marks]What is End of File (EOF)? Explain the use of the feof() function with an example.
[7 marks]Explain the concept of working with binary files in Cwith an example. How do you open binary files in "rb" and "wb" modes? Page 2 of
[2 marks]