C Programming 2078
Section A
Long Answer Questions.
Attempt any two questions. (2 x 10 = 20)
AI is thinking...
1. What is an expression and operator? Discuss operator associativity in C. Write a program to find factorial of a given integer using recursion. (2+3+5)
AI is thinking...
2. What is an Identifier and Keyword? Explain the rules for naming valid Identifiers in C with example. Write a program to convert a given string to lowercase without using any library functions. (3+2+5)
AI is thinking...
3. What are different data types available in C along with their respective range? Write a program to check whether a given integer is palindrome or not. (5+5)
AI is thinking...
Section B
Short Answer Questions.
Attempt any eight questions. (8 x 5 = 40)
AI is thinking...
4. What is the basic structure of a C program? Explain each part.
AI is thinking...
5. How break statement is different from continue statement? Explain with suitable example. (1+4)
AI is thinking...
6. What do you mean by multi-dimensional array? Write a program to display the sum of two m x n matrices. (1+4)
AI is thinking...
7. Write a program to create a file "duplicate" that contains the exact copy of file "original".
AI is thinking...
8. Explain any four input/output functions used in C language with suitable example.
AI is thinking...
9. Write a program to generate the following pattern of integers.
AI is thinking...
10. Write a program to find smallest element of any array using a pointer.
AI is thinking...
11. Write a program to store and display basic information (Roll, name, address, email, and phone) of students using a structure.
AI is thinking...
12. Write Short Notes on (2.5+2.5)
a. Escape Sequence
b. Null Pointer
AI is thinking...