N Nexsus

Programming in C — Minor 2025 question paper

MMMUT Civil Engineering previous year question paper for Programming in C (BIT-103), semester 1, Minor 2025. All 13 questions are listed below, each with a written answer on Nexsus.

Paper details

  • Subject: Programming in C (BIT-103)
  • Branch: Civil Engineering
  • Semester: 1
  • Exam: Minor 2025
  • Questions: 13

Questions asked in Programming in C Minor 2025

  1. Q1. Attempt any Three parts of the following. Q. 1(a) is compulsory.
  2. Q1(a). Why do we include header file using #include in c program? Discuss the significance of “.c”, “.obj” and “.exe” files in context to C program compilation and execution. [4 marks]
  3. Q1(b). What is Bus in context to microprocessor? State the purpose of Address, Data and Control buses. [2 marks]
  4. Q1(c). Draw a flow chart to find the greatest among n input numbers. [2 marks]
  5. Q1(d). State the use of following: (i) Bitwise operator (ii) sizeof (j) (iii) type casting (iv) ternary operator [2 marks]
  6. Q2. Attempt any Two parts of the following. Q. 2(a) is compulsory.
  7. Q2(a). State the purpose of following: (i) continue (ii) exit (0) and exit (1) (iii)typedef (iv) switch ( ) [4 marks]
  8. Q2(b). What is nested loop? Write a C program to compute and print the sum of following series using nested for loop. 1 + (1 + 2) + (1 + 2 + 3) + (1 + 2 + 3 + 4) + _______ up to n terms [2 marks]
  9. Q2(c). Write a C program to print all Perfect numbers between 1 to n. A perfect number is a number, whose sum is equal to its positive divisor but excludes the number itself. For instance, the number 6 is divisible by 1, 2, and 3 completely. [2 marks]
  10. Q3. Attempt any Two parts of the following. Q. 3(a) is compulsory.
  11. Q3(a). Write a program in C to check whether input number n is Neon number or not. A neon number is a number where the sum of digits of square of the number is equal to the number. e.g. 9 is Neon number as 9^{2}=81 and 8+1=9. [4 marks]
  12. Q3(b). Explain the differences between for, while, and do while loops with suitable examples. [2 marks]
  13. Q3(c). Write a short note on the advantages of using a switch statement over nested if-else. [2 marks]