0% found this document useful (0 votes)
14 views2 pages

Question Paper C

Question paper of C language

Uploaded by

mrjawedahmad1115
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Question Paper C

Question paper of C language

Uploaded by

mrjawedahmad1115
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

C Language Programming

All question are mandatory

Time: 3 Hours 20 X 5=100


Marks

Q.1 Find the largest number among the three


numbers.
Q.2 Write a C program to calculate Simple Interest.
Q.3 Write a Program to check if the year is a leap year
or not.
Q.4 Write a Program to find the area of a circle.
Q.5 Write a C program to accept two integers and
check whether they are equal or not.
Q.6 Write a C program to check whether a given
number is even or odd.
Q.7 Write a C program to check whether a given
number is positive or negative.
Q.8 Write a C program to read the age of a candidate
and determine whether he is eligible to cast his/her
own vote.
Q.9 Write a C program to read temperature in
centigrade and display a suitable message according
to the temperature state below:
Temp < 0 then Freezing weather
Temp 0-10 then Very Cold weather
Temp 10-20 then Cold weather
Temp 20-30 then Normal in Temp
Temp 30-40 then Its Hot
Temp >=40 then Its Very Hot
Q.10 Write a C program to check whether a
character is an alphabet, digit or special character.
Q.11 Write a C program to print numbers from 0 to
10 and 10 to 0 using two while loops.
Q.12 Write a C program that prompts the user to
input a series of integers until the user stops entering
0 using a while loop. Calculate and print the sum of all
the positive integers entered.
Q.13 Write a C program that calculates the sum of
even and odd numbers from 1 to 50 using do-while
loops.
Q.14 Write a C program that prompts the user to
enter a series of numbers until they input a negative
number. Calculate and print the sum of all entered
numbers using a do-while loop.
Q.15 Write a program in C to display n terms of
natural numbers and their sum using For loop.
Q.16 Write a program in C to read 10 numbers from
the keyboard and find their sum and average using
For loop.
Q.17 Write a program in C to find the sum of all
elements of the array.
Q.18 Write a program in C to swap two numbers
using a function.
Q.19 Write a program in C to find the maximum
number between two numbers using a pointer.
Q.20 Create a structure called "Student" with members name,
age, and total marks. Write a C program to input data for two
students, display their information, and find the average
of total marks

You might also like