Thadomal Shahani Engineering College First Year Engineering Semester II C Programming Lab Sample Questions.
- Write a program to find the area of a triangle.
- Write a program to accept three numbers from the user and display the largest number.
- Write a program to display the numbers from 1 to 100 that are divisible by 4 and 6.
- Write a program to display the prime numbers in between 75 to 150.
- Write a program to display the odd numbers from 1 to 100 that are not divisible by five.
- Write a program to find the sum of natural numbers starting from 5 till the product of consecutive numbers is less than 400.
- Write a program to check the given number is even/odd, perfect square and prime number
- Write a program to check whether the number is a part of Fibonacci series
- Write a program to find the sum of digits of a number.
- Write a program to generate 3digit Armstrong numbers
- Write a program to reverse a number.
- Write a program to display the any given pattern.
- Write a program to accept ‘n’ integers from the user into an array and display the sum and average of these integers.
- Write a program to accept ‘n’ integers from the user into an array and display the count of even and odd integers.
- Write a program to accept ‘n’ integers from the user into an array and find the largest/smallest integer.
- Write a program to accept ‘n’ integers from the user into an array and sort the numbers in ascending/descending order.
- Write a program to calculate the sum and average of mxn matrix.
- Write a program to find the transpose of square matrix.
- Write a program to multiply two matrices.
- No Question
- Write a program to find nCr.
- Write a program to solve the following equation using function.
- Write a program to demonstrate call by value and call by reference.
- Write a program to create one dimensional array and usingfunction perform sort, search, delete, and insert operations. Use switch case for the choice of operation and while for continuation.
- Write a program to store and display the name, roll number and total PCM marks for ‘n’ students. Generate a merit list with respect to the total marks scored. Display the output in tabular form in order of maximum total marks to minimum total marks.
- Write a program to store the information of a person as his name, or ID number using union. Ask the user for the information choice.
- Write a program to demonstrate five string functions.
- Write a program that checks whether the entered string is a palindrome or not, without using string header file.
- Write a program to accept a string and find the number of vowels in it.
- Write a program to accept two strings, compare them and display whether they are equal or not. If not equal then display the string which is greater, without using built in functions.