Tuesday, December 1, 2020

Practice Question (C Language)

1. Write a program to display Hello world .

2.Program to calculate Area and Circumference of circle based on user input

3. Write a program to accept basic salary find out its 30%.

4. Write a program to accept length and width of rectangle find out area of rectangle.

5. Write a program to accept a rate and quantity find out amount also provide 2% discount of total amount.

6. Write a program to accept principal amount, rate of interest and time find out simple interest.

7. Write a C program to print your name, date of birth. and mobile number.

8.Write a C program to print a block F using hash (#).
######
#
#
#####
#
#
#
9. Write a C program to convert specified days into years, weeks and days.
10. write a c program accept marks of five subject find out total marks 
and its percentage.

11. Write a program to accept two 
different number and swap their value.

================
Conditional Question 
1. Write a program to accept two
 different number check given
 no are equal or not.
2. Write a program to accept a number 
and check given no is negative or positive.
3. Write a program to accept a number 
check given number is larger than 30 or not. 

=========================================
Array Two Dimension Question
=========================================
Write a C program for two dimension array 5*3, perform following operation-

1. find second largest element in an array.
2. count total number of even and odd elements in an array.
3. count total number of negative elements in an array.
4. copy all elements from an array to another array.
5. insert an element in an array.
6. delete an element from an array at specified position.
7. count frequency of each element in an array.
8. print all unique elements in the array.
9. count total number of duplicate elements in an array.
10. delete all duplicate elements from an array.
11. merge two array to third array.
===============================================
String Sample Question
==============================================

1. Write a program in C to input a string and print it.
2. Write a program in C to find the length of a string without using library function.
3. Write a program in C to print individual characters of string in reverse order.
4. Write a program in C to count the total number of words in a string. 
5. Write a program in C to compare two strings without using string library functions.
6. Write a program in C to copy one string to another string.
7. Write a program in C to count total number of vowel or consonant in a string.