Question Paper 5th Attempt
Question Paper 5th Attempt
Time: 3 Hours
Note:
- Answer any five full questions, choosing ONE from each Module.
Module - 1
Q1.
OR
Q2.
b) Write a program to find the largest of three numbers using if-else ladder. (8M)
c) Describe the use of printf() and scanf() functions with format specifiers. (6M)
Module - 2
Q3.
OR
Q4.
b) Write a program to count the number of digits, spaces, and special characters in a string. (8M)
c) What is a switch statement? Write syntax and explain with an example. (6M)
Module - 3
Q5.
b) Write a C program to find the sum of all elements in a one-dimensional array. (8M)
OR
Q6.
a) Explain the concept of a 2D array. Give syntax and a sample program. (6M)
c) Write short notes on string handling functions like strlen() and strcpy(). (6M)
Module - 4
Q7.
OR
Q8.
Module - 5
Q9.
b) Write a program to display the address and value of a variable using a pointer. (8M)
OR
Q10.
b) Write a C program to read and display information of 3 employees using structure. (8M)
c) Write short notes on file opening modes and file functions like fopen() and fclose(). (6M)