Engineering FE Engineering Common Sem 2 C Programming Dec 2024 Question Paper - Mumbai University | munotes
This paper is solved: read the model answers.
Loading PDF...
Questions asked in this paper
Solved paper All 18 questions answered in full Exam-ready answers, the reasoning behind each one, and what the examiner is looking for. Open the solutionsQ1 Q1 (Solve any three out of the following.) 15 Marks
-
A Define Algorithm. Write an Algorithm to find the largest of three accepted numbers. 5 marksRead the model answer
-
B Explain the importance of break and default in Multi-way branching statement. 5 marksRead the model answer
-
C Why there is a need to write function prototype in a program? What is the syntax for writing function prototype? 5 marksRead the model answer
-
D Explain the following functions with proper example. i) gets( ) ii) puts( ) 5 marksRead the model answer
-
E Differentiate between Call by value and Call by reference. 5 marksRead the model answer
Q2 Q2 15 Marks
-
A Explain the organization of Standard Library of C language with Example. 5 marksRead the model answer
-
B Write a program to find the reverse of a given number. 5 marksRead the model answer
-
C Write a program to find GCD of two natural numbers using Euclid’s Algorithm which is defined as below. GCD(m, n)=GCD(n, m) if n>m / = m if n=0 / = GCD(n, m%n) Otherwise 5 marksRead the model answer
Q3 Q3 15 Marks
-
A Explain the Right and Left Shift Bitwise operators with proper example. 5 marksRead the model answer
-
B Differentiate between for loop and do-while loop. 5 marksRead the model answer
-
C Explain the concept of actual parameters and formal parameters. 5 marksRead the model answer
Q4 Q4 15 Marks
-
A Write a program to accept and sort ‘n’ elements of one dimensional array in ascending order. 5 marksRead the model answer
-
B Explain the Reference and Dereference operator with proper example. 5 marksRead the model answer
-
C Differentiate between Structure and Union. 5 marksRead the model answer
Q5 Q5 15 Marks
-
A Write a program to calculate and display all the roots of a quadratic equation. The quadratic equation can be expressed in the form ax^2 + bx + c = 0, where 'a' is not equal to zero. The program should prompt the user to input the values of a, b, and c, and then calculate. 10 marksRead the model answer
-
B Write a program to accept a string and display its length without using standard library function. 5 marksRead the model answer
Q6 Q6 15 Marks
-
A A Hospital needs to maintain details of patients. Details to be maintained are First name, Middle name, Surname, Date of Birth, Disease. Write a program which will print the list of all patients with given disease. Use the concept of Nested Structure for Date of Birth. 10 marksRead the model answer
-
B Write a program using concept of pointer to an array to display the content of an array in reverse order. Use pointer Arithmetic. 5 marksRead the model answer
Read from the scan above, so a character or two may differ. The scan is the original.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Something wrong on this page? Report it and we will check it against the scan.
Quick Help
Related Resources
Something wrong with this paper? Report it.