N Nexsus

PROGRMMING IN C — Major (End Semester) 2024 question paper

MMMUT Chemical Engineering previous year question paper for PROGRMMING IN C (BIT-103), semester 1, Major (End Semester) 2024. All 24 questions are listed below, each with a written answer on Nexsus.

Paper details

  • Subject: PROGRMMING IN C (BIT-103)
  • Branch: Chemical Engineering
  • Semester: 1
  • Exam: Major (End Semester) 2024
  • Questions: 24

Questions asked in PROGRMMING IN C Major (End Semester) 2024

  1. Q1(a). Describe about the basic components of computers with a neat block diagram. [2 marks]
  2. Q1(b). Write a C program to find the squares of N numbers using do-while. [2 marks]
  3. Q1(c). What is the role of switch statement in C programming language? Explain with example. [2 marks]
  4. Q1(d). Write down the difference between the associativity and precedence of operators. [2 marks]
  5. Q1(e). What is the difference between break and continue in C? [2 marks]
  6. Q1(f). Differentiate between high level and machine level language. [2 marks]
  7. Q1(g). What do you mean by Algorithm? Explain the properties of algorithm. [2 marks]
  8. Q2(a). (i)What is an array? How a single dimension and two-dimension arrays are declared and initialized? (ii) Write a C program to multiply two matrices entered by the user. [5 marks]
  9. Q2(b). What is pointer? Explain the process of declaring and initializing pointer with example. Write a program in C to demonstrate the use of the address of and value at address operators. [5 marks]
  10. Q2(c). Explain string manipulation library functions with their syntaxes. Write a C program to check whether a string is palindrome or not. [5 marks]
  11. Q3(a). What is recursion? Write a recursive program to find factorial of a number. [5 marks]
  12. Q3(b). What is function? Give the structure of the functions and explain about the arguments and parameters. Explain the difference between parameter passing mechanisms with example. Which is more efficient and why? [5 marks]
  13. Q3(c). Define the concept of pointer. Also define the dynamic memory allocation and various functions for dynamic memory allocation, with suitable examples. [5 marks]
  14. Q4(a). Define structure and write the general format for declaring and accessing members. Also write a program that compares two given dates. To store date use structure, say date that contains three members namely date, month, and year. If the dates are equal then display message as "Equal" otherwise "Unequal". [5 marks]
  15. Q4(b). List out various file operations and modes in C. Write a program to copy the content from one file to another file. [5 marks]
  16. Q4(c). Describe command line arguments with example in C program. [5 marks]
  17. Q5(a). What are the various types of files that can be created in C language? Also give different modes in which these files can be used with proper syntax. Write a program in C language to append some more text at the end of an existed text file. [5 marks]
  18. Q5(b). (i) Define stack, queue and linked list with example. (ii) Differentiate between array and structure. Write a program using structures to display the following information for each customer name, account number, street, city, old balance, current payment, new balance, account status. [5 marks]
  19. Q5(c). What is Macros? How it is substituted? Write macro definition with arguments for calculation of area and perimeter of a circle and rectangle. Store these macro definitions in a file called "areaperi.h". [5 marks]
  20. QQ.1. Attempt any Five parts of the following.
  21. QQ.2. Attempt any Two parts of the following.
  22. QQ.3. Attempt any Two parts of the following.
  23. QQ.4. Attempt any Two parts of the following.
  24. QQ.5. Attempt any Two parts of the following.