0% found this document useful (0 votes)
17 views4 pages

IP Lab Internal Ques

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)
17 views4 pages

IP Lab Internal Ques

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/ 4

Unit 1

1)Sum and average of 3 numbers

2) Conversion of Fahrenheit to Celsius and vice versa

3)Simple interest calculation

4)Finding the square root,power,cuberoot of a given number

5) Finding compound interest

6) Distance travelled by an object

7) Area of a triangle using heron’s formulae

8) Evaluate the following expressions.

a. A+B*C+(D*E)+F*G

b. A/B*C-B+A*D/3

c. A+++B---A

d. J= (i++)+(++i)

9) Take marks of 5 subjects in integers, and find the total, average in float

10) Find the maximum of three numbers using conditional operator

Unit 2

1)Write a C program to find the max and min of four numbers using if-else.

2 Write a C program to simulate a calculator using switch case.

3 Write a C program to find the given year is a leap year or not.

4 Find the roots of the quadratic equation.

5 Find the factorial of given number using any loop.

6)Find the given number is a prime or not.

7 Checking a number palindrome

8) construct left half pyramid of *

9) construct left half pyramid of numbers

10) construct right half pyramid of *

Unit 3:

1. Find the min and max of a 1-D integer array.

2 Perform linear search on1D array.


3 The reverse of a 1D integer array

4 Addition of two matrices

5 Sort array elements using bubble sort

6Multiplication two matrices

7Program to count the even and odd numbers in a array


8 Write a C program to find addition of all even numbers and product of odd number in the
given array of numbers
9 Write a C program to find the sum of secondary diagonal elements in a given square matrix
10 Write a C program read elements of 2D array and display the square value of the elements

LAB QUESTIONS Each question consists of 3 sub questions from unit 1,2 and 3

1a) Sum and average of 3 numbers

b) Find the given number is a prime or not.

c) Program to count the even and odd numbers in a array

2a) Conversion of Fahrenheit to Celsius and vice versa


b) Find the factorial of given number using any loop.

c) Write a C program to find addition of all even numbers and product of odd number in the
given array of numbers

3a) write a c program to print Simple interest

b) Find the roots of the quadratic equation.

c) Perform linear search on1D array.

4a) Write a c program to find the square root, power, cube root of a given number

b) Write a C program to find the max and min of four numbers using if-else

c) Addition of two matrices

5a) Write a c program to find compound interest

b) Write a C program to simulate a calculator using switch case.


c) The reverse of a 1D integer array

6a) Write a C program to print Distance travelled by an object

b) Write a C program to find the given year is a leap year or not

c) Find the min and max of a 1-D integer array

7a) write a program to print area of a triangle using heron’s formulae

b) Checking a number palindrome

c) Sort array elements using bubble sort

8a) Evaluate the following expressions.

i. A+B*C+(D*E)+F*G

ii. A/B*C-B+A*D/3

iii. A+++B---A

iv. J= (i++)+(++i)

b) construct left half pyramid of *

c) multiplication of 2 matrices

9a) Take marks of 5 subjects in integers, and find the total, average in float

b) construct left half pyramid of numbers

c) Write a C program read elements of 2D array and display the square value of the elements

10 a) Find the maximum of three numbers using conditional operator

b) construct right half pyramid of *

c) Write a C program to find the sum of secondary diagonal elements in a given square
matrix

You might also like