List of Questions in IP Lab Internal test
Set 1
1. Write a C program to perform addition, subtraction, multiplication, division and modulo
division on two integer numbers.
2. Write a C program to evaluate the following using loops
x+x3/3!+x5/5!+...upto 5 terms
Set 2
1. Write a C program to perform addition, subtraction, multiplication, division and modulo
division on two integer numbers.
2. Write a C program to evaluate the following using loops
1+x2/2!+x4/4!+...upto 5 terms
Set 3
1. Write a C program for electricity bill tacking different categories of users, different slabs in each
category. (using nested if else statements).
2. Write a C program to perform addition, subtraction, multiplication, division and modulo division
on two integer numbers.
Set 4
1. Write a C program to evaluate the following using loops
1+x2/2!+x4/4!+...upto 5 terms
1. Write a C program to find the mean and median of list of values by using one dimensional
array.
Set 5
1. Write a C program to check whether the given number is Prime or not
2. Write a C program to check whether a given number is Perfect or abundant or deficient
Set 6
1. Write a C program to print the following pattern.
12
123
1234
2. Write a C program to print the following pattern.
121
12321
1234321
Set 7
1. Write a menu driven program to read a list of numbers and perform the following operations
a) Print the list
b) Delete duplicates from the list
Set 8
[Link] a C program to find the mean and median of list of values by using one dimensional array.
Set 9
1. Write a menu driven program to read list of student names and perform the following
operations using functions.
a) To print list of names
b) To print the list after sorting
Set 10
1. Write a program to read a list of numbers and search for given number using binary search
algorithm and if found display its index otherwise display the message "element not found in
the list" using functions.