Mahatma Gandhi University: Time: Three Hours Maximum:80 Marks
Mahatma Gandhi University: Time: Three Hours Maximum:80 Marks
1. Write a program to determine the position of uppercase or lowercase character in the alphabets.
Using elseif ladder. Do not use library functions.
[ hint: enter an element check the element is digit, uppercase, lowercase or special character or not if uppercase or
lowercase character then determine position]
2. Write a program to sort an array using user defined functions (create, sort and display) pass
parameters. Check all validations. Do not use library functions.
1. Write a program to find the summation of the series S=x+x2/2!- x3/3!+x4 /4! + ……… n terms. Do not
use any type of library functions.
2. Write a program to delete more than one element from an array using user defined functions
(create, delete, display) pass parameters. Check all validations. [Hint: - do not enter the size/number of
elements to be deleted from array. Use do you want to continue to delete another element concept.]
1. Write a program to find largest and second largest element of a list of numbers. Do not use array and
library functions. (Enter minimum 5 numbers) [hint: – eg. -2, -1, -2, -1, -3-> largest -1 second largest -2].
2. Write a user defined function (for read, check and display) program to check whether the given
string is palindrome or not. Do not use any library functions. Pass parameters to the user defined
functions.
QP_CODE: SL-I2023 06FN04
1. Write a program to enter a list of numbers and find average of odd numbers from the list. Do not use
array.
2. Write a program to multiply two matrices using user defined functions (create, multiply, display) and
pass parameters.
1. Write a program to determine the grade of a student with all validations using nested if. Given marks
of 5 subjects. Do not use library functions and array.
Enter five subject marks and find the score. Based on the score
Score in subject Grade
>=90 A
80-89 B
70-79 C
60-69 D
50-59 E
<50 F
(hint: using 5 marks find grade based on percentage of marks scored by the student, check minimum pass mark
of each subject also mark range between 0 and 100)
2. Write a program to check whether the given matrix is symmetric or not using user defined functions
(read, check and display) and pass parameters.