Introduction
If you are a student of SRMU (Shri Ramswaroop Memorial University) and preparing for coding exams, lab tests, or interviews, then you must practice the basic to advanced coding questions. These questions are repeatedly asked in semester exams, internal viva, and placements.
In this blog, we have compiled a complete list of the most important SRMU coding questions. You can practice them in C, C++, Java, or Python. Solutions will vary, but the logic remains the same.
🔹 Section 1: Basic Programs (Loops & Conditionals)
- Write a program to find factorial of a number using loop.
- Write a program to find factorial of a number using recursion.
- Write a program to generate the Fibonacci series using loop.
- Write a program to generate the Fibonacci series using recursion.
- Write a program to find the greatest among three numbers.
- Write a program to check whether a number is even or odd.
- Write a program to check whether a number is prime or not.
- Write a program to check whether a given year is a leap year.
🔹 Section 2: Number-Based Programs
- Write a program to check whether a number is an Armstrong number.
- Write a program to check whether a number or string is a palindrome.
- Write a program to reverse a number.
- Write a program to calculate the sum of digits of a number.
- Write a program to calculate the GCD (HCF) and LCM of two numbers.
- Write a program to check whether a number is a perfect number.
- Write a program to check whether a number is a strong number.
🔹 Section 3: Menu Driven Programs
- Write a menu-driven program to perform the following:
- Addition
- Subtraction
- Multiplication
- Division
- Write a menu-driven program for:
- Factorial
- Prime check
- Fibonacci series
🔹 Section 4: Array-Based Programs
- Write a program to traverse and display elements of an array.
- Write a program to find the sum and average of array elements.
- Write a program to find the largest element in an array.
- Write a program to find the smallest element in an array.
- Write a program to reverse an array.
- Write a program to search an element in an array (linear search).
- Write a program to sort an array (ascending and descending).
- Write a program to merge two arrays.
- Write a program to find second largest element in an array.
🔹 Section 5: String-Based Programs
- Write a program to reverse a string.
- Write a program to check if a string is palindrome.
- Write a program to count vowels and consonants in a string.
- Write a program to find the length of a string without using built-in functions.
- Write a program to concatenate two strings without using library functions.
- Write a program to sort characters in a string alphabetically.
🔹 Section 6: Advanced Logic Programs
- Write a program to implement binary search.
- Write a program to implement bubble sort.
- Write a program to implement insertion sort.
- Write a program to implement selection sort.
- Write a program to find the factorial using recursion.
- Write a program to generate Fibonacci series using recursion.
- Write a program to find the power of a number using recursion.
- Write a program to check whether a number is prime using recursion.
🔹 Section 7: Matrix Programs
- Write a program to add two matrices.
- Write a program to subtract two matrices.
- Write a program to multiply two matrices.
- Write a program to find transpose of a matrix.
- Write a program to find sum of diagonal elements of a matrix.
Conclusion
These are the most important SRMU coding questions that you should practice before exams or interviews. They cover loops, conditionals, recursion, arrays, strings, and matrix operations.
👉 If you master these programs, you will be fully prepared for SRMU semester exams, viva, and placement coding rounds.
Stay connected with Nexus Coder for more coding practice questions, solutions, and tutorials. 🚀
bookmark my page and i will give you the best solution for these questions.