MMMUT Chemical Engineering previous year question paper for PROGRAMMING IN C (BIT-103), semester 1, Minor 2024. All 11 questions are listed below, each with a written answer on Nexsus.
Paper details
Subject: PROGRAMMING IN C (BIT-103)
Branch: Chemical Engineering
Semester: 1
Exam: Minor 2024
Questions: 11
Questions asked in PROGRAMMING IN C Minor 2024
Q1(a). 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]
Q1(b). State the significance of following: i. Inclusion of header file in C program ii. Compiler, linker and loader iii. Break & continue [4 marks]
Q1(c). 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]
Q2(a). Give examples and briefly explain- i. Simple ii. Compound iii. Control statemen [3 marks]
Q2(b). Write an algorithm and draw flow chart to find the greatest of N numbers. The numbers should not use array for storage. [3 marks]
Q2(c). 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 [3 marks]
Q3(a). 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]
Q3(b). 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]
Q3(c). 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]