N Nexsus

PROGRAMMING IN C — Minor 2024 question paper

MMMUT Chemical Engineering previous year question paper for PROGRAMMING IN C, semester 1, Minor 2024. All 12 questions are listed below, each with a written answer on Nexsus.

Paper details

  • Subject: PROGRAMMING IN C
  • Branch: Chemical Engineering
  • Semester: 1
  • Exam: Minor 2024
  • Questions: 12

Questions asked in PROGRAMMING IN C Minor 2024

  1. Qa). i. How do the RAM, Secondary and Cache play roles in the execution of programs? ii. What is system bus? State the purpose of its three types. [4 marks]
  2. Qa). Write a C program to generate all three-digit circular prime numbers. A prime number is said to be a circular prime if after any cyclic permutations of the digits, it remains a prime. e.g. All cyclic permutations of 113 (311 and 131) are prime. [3 marks]
  3. Qa). Give examples and briefly explain- i. Simple ii. Compound iii. Control statements [3 marks]
  4. Qb). State the significance of following: i. Inclusion of header file in C program ii. Compiler, linker and loader iii. Break & continue [4 marks]
  5. Qb). Write a C program that takes a string of multiple words and converts upper case alphabets to lower case and vice-versa. It should also remove blanks between successive words to convert multiple word string to a single word string. [3 marks]
  6. Qb). Write an algorithm and draw flow chart to find the greatest of N numbers. The numbers should not use array for storage. [3 marks]
  7. Qc). State the Linux commands with syntax for following operations: i. Display the contents of file file-1 and file-2 with a single command ii. Creation of a directory dir in home directory and then create a file file-3 inside the newly created directory dir iii. Delete dir created at ii with a single command [3 marks]
  8. Qc). Write a program to input a number and check and print whether it is a Duck number or not. A Duck number is a positive number which has zeroes present in it. e.g. 3210, 8050896, 70709 are all Duck numbers [3 marks]
  9. Qc). Write a C program to check whether given number N is Strong number or not. Strong number: If the sum of the factorials of individual digit of a number N is equal to the same number N, the number is known as the Strong number e.g. 145 [4 marks]
  10. QQ1.. Attempt any Two parts of the following.
  11. QQ2.. Attempt any Two parts of the following.
  12. QQ3.. Attempt any Two parts of the following.