Slip 1
Slip2
Slip3
Q1. Write a C program to accept temperatures in Fahrenheit (F) and display it in Celsius(C)
and Kelvin (K) (Hint: C=5.0/9(F-32), K = C + 273.15) [15 Marks]
Q2. Write a menu driven program to perform the following operations on strings using standard
1. Length of String 2. Copy String 3. Connect Two Strings 4. Compare two strings
Slip4
Q1. Write a C program to accept two numbers and print arithmetic and harmonic mean of
the two numbers (Hint: AM= (a+b)/2 ,HM = ab/(a+b) ) [15 Marks]
Q2. Create a structure Student (id, name, marks). Accept details of n students and write a menu
driven program to perform the following operations. [25 Marks]
Slip5
Q1. Write a C program to accept dimensions length (l), breadth(b) and height(h) of a
cuboids and display surface area and volume (Hint : surface area=2(lb+lh+bh ),
Q2.Write a program which accepts a sentence from the user and alters it as follows: Every space
is replaced by *, case of all alphabets is reversed, digits are replaced by ? [25 Marks]
Slip6
Q1. Write a C Program to accept a character from the keyboard and display its previous and
next character in order. Ex. If character entered is ‘d’, display “The previous character
is c”, “The next character is e”. [15 Marks]
Q2. Write a program to accept a string and then count the occurrences of a specific character of a
Slip7
Q1. Write a C program to accept the x and y coordinates of two points and compute the
distance between the two points. [15 Marks]
Q2. Write a program to calculate Multiplication of two matrices of order m*n.
Slip8
Q1. A cashier has currency notes of denomination 1, 5 and 10. Write a C program to accept
the withdrawal amount from the user and display the total number of currency notes of
each denomination the cashier will have to give. [15 Marks]
Q2. Write a menu driven program to perform the following operation on m*n
1. Calculate sum of upper triangular matrix elements
2. Calculate sum of diagonal elements
Slip9
Q1. Write a C program to accept a character from the user and check whether the character
is a vowel or consonant. [15 Marks]
Q2. Write a program to accept two numbers as range and display multiplication table
of all numbers within that range. [25 Marks]
Slip10
Q1. Write a C program to accept the x and y coordinate of a point and find the quadrant in
which the point lies. [15 Marks]
Q2. Write a program, which accepts a number n and displays each digit in words.
Example: 6702 Output = Six-Seven-Zero-Two [25 Marks]
Q1. Write a C program to accept the cost price and selling price from the user. Find out if
the seller has made a profit or loss and display how much profit or loss has been made.
Q2. Accept radius from the user and write a program having menu with the following
options and corresponding actions [25 Marks]
1. 1. Area of Circle Compute area of circle and print
2. Circumference of Circle Compute Circumference of circle and print
3. Volume of Sphere Compute Volume of Sphere and print
Q1. Write a C program to calculate sum of digits of a given input number.[15 Marks]
Q2. Accept two numbers from user and write a menu driven program to perform
the following operations [25 Marks]
1. swap the values of two variables
2. calculate arithmetic mean and harmonic mean of two numbers
Q1. Write a C program to accept the value of n and display sum of all odd numbers
Q2. Write a program to accept a decimal number and convert it to binary, octal and
hexadecimal number. [25 Marks]
Q1. Write a C program to check whether a input number is Armstrong number or not.
Q2. Write a program to accept a number and count number of even, odd and zero digits
within that number. [25 Marks]
Q1. Write a C program to check whether a input number is perfect number of not.
Q2. Write a program having a menu with the following options and corresponding actions
1. Area of square Accept length ,Compute area of square and print
2. Area of Rectangle Accept length and breadth, Compute area of rectangle and
3. Area of triangle Accept base and height , Compute area of triangle and
Q1. Write a C program to calculate xy without using standard library function.
Q2. Write a program to display union and intersection of two 1D array. [25 Marks]
Q1. Write a C program to display multiplication table of a given input number [15 Marks]
Q2. Write a menu driven program to perform the following operation on m*n
1. Display transpose of a matrix
2. Calculate sum of all odd elements of matrix
Q1. Write a C program to generate following triangle up to n lines. [15 Marks]
Q2. Write a program to calculate sum of following series up to n terms. [25 Marks]
(Note: Write separate user defined function to calculate power and factorial)
Q1. Write a C program to generate following triangle up to n lines. [15 Marks]
Q2. Write a menu driven program to perform the following operation on m*n
1. Find sum of diagonal elements of matrix
2. Find sum of all even numbers of matrix
Q1. Write a C program to generate following triangle up to n lines. [15 Marks]
Q2. Write a program to calculate addition of two matrices [25 Marks]
Q1. Write a C program to generate following triangle up to n lines. [15 Marks]
Q2. Create a structure employee (eno, ename, salary). Accept details of n employees and write a
menu driven program to perform the following operations options. [25 Marks]
1. Display all employees having salary > 5000
Q1. Write a C program to generate following triangle up to n lines. [15 Marks]
Q2. Write a menu driven program to perform the following operation on m*n
1. Find sum of non diagonal elements of matrix
2. Find sum of all odd numbers of matrix
Q1. Write a C program to accept n elements of 1D array and then display sum of
all elements of array. [15 Marks]
Q2. Accept n integers in an array. Copy only the non-zero elements to another array
(allocated using dynamic memory allocation). Calculate the sum and average of
Q1. Write a C program to find maximum elements of 1D array [15 Marks]
Q2. Create a structure Book (Bno, Bname, Price). Accept details of n Books and write a menu
driven program to perform the following operations options. [25 Marks]
1. Display all Books having price > 500
2. Display Book having maximum price
Q1. Write a C program to calculate sum of all even elements of a matrix. [15 Marks]
Q2. Write a menu driven program for the following option [25 Marks]
1. Check input number is Armstrong or not
2. Check input number is Perfect or not
Q1. Write a C program to calculate length of string without using standard functions.
Q2. Write a program to display the elements of an array containing n integers in the
Reverse order using a pointer to the array. [25 Marks]
Q1. Write a program to count the occurrences of vowel from a input string. [15 Marks]
Q2. Create a structure Item (Ino, Iname, Price). Accept details of n Items and write a
menu driven program to perform the following operations options. [25 Marks]
1. Display all Items having price > 800
2. Display Item record with Ino=2
Q1. Write a program to accept a string and then count the occurrences of a specific
character of a string. [15 Marks]
Q2. Write a program to accept two numbers as range and display multiplication table
of all numbers within that range. [25 Marks]
Q1. Write a C program to calculate factorial of a number using user defined function.
Q2. Write a program, which accepts a number n and displays each digit separated by tabs.
Example: 6702 Output = 6 7 0 2 [25 Marks]
Q1. Write a program to find sum of digits of a given input number using user defined
Q2. Write a program to accept a number and count number of even, odd and zero digits
within that number. [25 Marks]
No comments:
Post a Comment