Engineering FE Engineering Common Sem 2 C Programming May 2024 Question Paper - Mumbai University | munotes
This paper is solved: read the model answers.
Loading PDF...
Questions asked in this paper
Solved paper All 19 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 Write a C program to get age and vaccination details as input. Print “senior citizen and eligible for booster” if age > 60 and vaccination input as ‘2’, otherwise print “below 60 and eligible for vaccination”. Use conditional operator. 5 marksRead the model answer
-
B Write string handling functions in C used to do following task: If first-name, middle name, last name given as an input display it as a full name. / Display number of characters in full name. / Convert first name into capital letters and last name into small letters. / print the full name in reverse order 5 marksRead the model answer
-
C Write a program to print following pattern for given number of rows. 1 / 2 2 / 3 3 3 / 4 4 4 4 / 5 5 5 5 5 5 marksRead the model answer
-
D Differentiate between Structure and Union. 5 marksRead the model answer
-
E Explain formal parameters and actual parameters with an example. 5 marksRead the model answer
Q2 Q2 15 Marks
-
A What is the purpose of switch statement and write a C program to input an alphabet and check whether it is vowel or consonant using switch case. 5 marksRead the model answer
-
B Write a C program using function to check if the entered number is prime number or not. 5 marksRead the model answer
-
C What is an identifier (variable)? What are the rules to construct identifier (Variable)? Classify the following as valid/invalid Identifiers. i) num2 ii) $num1 iii) +add iv) a_2 5 marksRead the model answer
Q3 Q3 15 Marks
-
A Write a C program that takes three coefficients (a, b and c) of a quadratic Equation; (ax^2+bx+c=0) as input and compute all possible roots and print them with appropriate messages. 10 marksRead the model answer
-
B Define array. Write a C program to find the sum and average of n integer numbers using array. 5 marksRead the model answer
Q4 Q4 15 Marks
-
A What is nested Structure? Explain with proper example. 5 marksRead the model answer
-
B Explain pointer operators with proper example. 5 marksRead the model answer
-
C Write a C program to replace all occurrences of a character with another in a string. 5 marksRead the model answer
Q5 Q5 15 Marks
-
A Write a program to calculate power of a number(x raised to n), accept value of x and n from the user. 5 marksRead the model answer
-
B What is the necessity of parameter passing to function? What are the two ways of parameters passing to function? Explain any one in detail. 5 marksRead the model answer
-
C Give the difference between break and continue with an example. 5 marksRead the model answer
Q6 Q6 15 Marks
-
A Write a C program to find sum of principal diagonal elements of a given square matrix. 5 marksRead the model answer
-
B Define Recursive function. Write a Program to find GCD of two numbers using Recursive function. 5 marksRead the model answer
-
C Define pseudocode. Draw flowchart and write a pseudocode to find whether given number is palindrome or not 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.