BASIC COMPUTER PROGRAMMING — Major (End Semester) 2023 question paper
MMMUT Mechanical Engineering previous year question paper for BASIC COMPUTER PROGRAMMING (BCS-105), semester 1, Major (End Semester) 2023. All 24 questions are listed below, each with a written answer on Nexsus.
Paper details
Subject: BASIC COMPUTER PROGRAMMING (BCS-105)
Branch: Mechanical Engineering
Semester: 1
Exam: Major (End Semester) 2023
Questions: 24
Questions asked in BASIC COMPUTER PROGRAMMING Major (End Semester) 2023
Q1. Attempts any five parts of the following:
Q1(a). Differentiate between .obj and .exe files. [2 marks]
Q1(b). What do you mean by scope and lifetime of a variable? Discuss. [2 marks]
Q1(c). Compare system software and application software. [2 marks]
Q1(d). Differentiate between Algorithm and Flowchart with an example. [2 marks]
Q1(e). Write a program in C to calculate the area of a circle and triangle. [2 marks]
Q1(f). Correlate else if ladder with switch case statement. [2 marks]
Q1(g). Explain the various C operators in detail. [2 marks]
Q2. Attempts any two parts of the following:
Q2(a). Differentiate between- (i) Recursion and Iteration. (ii)Call by value and Call by reference. [5 marks]
Q2(b). Write a program in C to find LCM of two numbers using recursion. [5 marks]
Q2(c). Explain function with its parts and types. [5 marks]
Q3. Attempts any two parts of the following:
Q3(a). What is an array? How is an array declared and manipulated? [5 marks]
Q3(b). Write a C program that identifies the largest number among three values stored in an array. [5 marks]
Q3(c). Define String. Explain the significance of null character in string. [5 marks]
Q4. Attempts any two parts of the following:
Q4(a). Explain the importance of pointers in C. Write a program in C to swap the values of two numbers. [5 marks]
Q4(b). Discuss the relationship between array and pointers. Write a C program to reverse the digits of a given number. [5 marks]
Q4(c). Write a C program to calculate the total quantity of all items and their total cost. The details like item number, item name, quantity, unit price and total cost are to be maintained by a structure. [5 marks]
Q5. Attempts any two parts of the following:
Q5(a). Differentiate between structure and union. [5 marks]
Q5(b). What is L-value and R-value in pointers? Write a C program to implement the concept of simultaneous linear equation. [5 marks]
Q5(c). Create a structure Student that consists of the following members: name, marks in three subjects (Physics, Chemistry and Maths), cut-off and rank. Write a program that does the following- i. To read the details of 'n' students and calculate the cut-off marks scored by each student. ii. To find and display the list of students based on their rank. [5 marks]