Introduction to C Programming — Major (End Semester) 2025 question paper
MMMUT Computer Science and Engineering previous year question paper for Introduction to C Programming (BCS-110), semester 1, Major (End Semester) 2025. All 24 questions are listed below, each with a written answer on Nexsus.
Paper details
Subject: Introduction to C Programming (BCS-110)
Branch: Computer Science and Engineering
Semester: 1
Exam: Major (End Semester) 2025
Questions: 24
Questions asked in Introduction to C Programming Major (End Semester) 2025
Q1(a). Explain the role of compiler, linker, and loader in program execution. [2 marks]
Q1(b). Design an algorithm and flowchart to calculate the grade of a student based on marks in five subjects. [2 marks]
Q1(c). How does operator procedure affect complex expressions? Illustrate with examples and outputs. [2 marks]
Q1(d). Write and explain a C program that demonstrates tested if-else structures to find the largest of three numbers. [2 marks]
Q1(e). Explain the difference between auto, static, and external variables in terms of memory storage and lifetime. [2 marks]
Q1(f). Develop a program using arrays to compute and display the transpose of a matrix. [2 marks]
Q1(g). Explain the concept of recursion and trace the recursive execution of factorial (4) with memory stack representation. [2 marks]
Q2(a). What are array and pointer? How they are use full in C programming. Also explain how pointers are used to dynamically access and modify array elements. [5 marks]
Q2(b). Define Structure. Design a program to generate the product bill using structures for online billing system to store and display details of products (p_name, p_order, p_price, p_quantity). Use functions for input and display. [5 marks]
Q2(c). Illustrate the relationship between pointers and functions through a C program that swaps two numbers using pointers. [5 marks]
Q3. Attempt any two parts of the following.
Q3(a). Write a C program using union to store details of an employee and demonstrate memory sharing between its members. [5 marks]
Q3(b). Explain the concept of pointer to pointer with an example showing its use in dynamic memory management. [5 marks]
Q3(c). Compare the use of structure pointers and union pointers with examples highlighting their advantages. [5 marks]
Q4. Attempt any two parts of the following.
Q4(a). What is dynamic memory allocation? Write a C program that dynamically allocates memory for an integer array using malloc and realloc, and displays the updated array contents. [5 marks]
Q4(b). Discuss the internal working of malloc() and free() in C. How does improper deallocation lead to memory leaks? [5 marks]
Q4(c). Explain the file handling in program C. Write a program to copy the contents of one file into another using file I/O operations in C. [5 marks]
Q5. Attempt any two parts of the following.
Q5(a). Explain the use of macros in C programming. Write a macro that finds the maximum of two numbers and demonstrates its expansion. [5 marks]
Q5(b). Write a C program for student grade management system using structures, file handling, functions, dynamic memory. [5 marks]
Q5(c). Discuss the role of preprocessor directives with #include and #define examples. [5 marks]