N Nexsus

Programming in C — Minor 2026 question paper

MMMUT Mechanical Engineering previous year question paper for Programming in C (BIT-156), semester 2, Minor 2026. All 12 questions are listed below, each with a written answer on Nexsus.

Paper details

  • Subject: Programming in C (BIT-156)
  • Branch: Mechanical Engineering
  • Semester: 2
  • Exam: Minor 2026
  • Questions: 12

Questions asked in Programming in C Minor 2026

  1. Q1. Attempt any Two parts of the following.
  2. Q1(a). What do you mean by the Scope of the variable? What is the scope of the variables in C. [4 marks]
  3. Q1(b). a) Explain break and continue statements with examples. b) Find the output and explain the loop execution: int i for(i = 1; i < 5; i++) printf("%d", i); [4 marks]
  4. Q1(c). What are operators in C? Explain arithmetic and relational operators with examples. [4 marks]
  5. Q2. Attempt any Two parts of the following.
  6. Q2(a). What is C-Tokens? List and define different C-Tokens with examples. [3 marks]
  7. Q2(b). Define variable. Explain rules for naming variables in C. What are comments in C? Explain types of comments with examples. [3 marks]
  8. Q2(c). Explain why keywords cannot be used as variable names. Give example. [3 marks]
  9. Q3. Attempt any Two parts of the following.
  10. Q3(a). Explain the difference between while loop and do-while loop. What is nested if-else? Explain with a simple example. [3 marks]
  11. Q3(b). Write a C program to display grade of a student using switch statement. What happens if break statement is removed from switch case? Explain with example. [3 marks]
  12. Q3(c). Write a C program to take a number as input from the user and check whether the number is even or odd using if statement. [3 marks]