PPL Question Bank Unit 5 2024-25
PPL Question Bank Unit 5 2024-25
2 Explain with example how to initialize an array and change the values of array
elements.Write a C program to find the sum of all elements in a 1-D array. 5 3
Write a program in C to accept elements from user , store elements in a 1-D
3
array and print them in reverse order. 5 3
Explain the declaration and initialization of 1 D array. Write a program in C
4 24
to find the sum and average of all elements of the array. 5 3
Write a C program to read N integers into an array A and to find the (i)sum of
5
odd numbers, (ii) sum of even numbers. 5 3
Write a C program to read N integers into an array A and to find the (i)sum of
6
positive numbers, (ii) sum of negative numbers. 5 3
7 13 Write a c program to add two matrices (2-D arrays) in c. substract 5 3
Write a program in C to accept elements from user , store elements in a 2-D
8 8 Marks array and print them. 5 3
Write a program to accept ten numbers in an array. Find the minimum and
9 5 3
maximum element alongwith their location in the given array and display it.
Write a C program to read N integers into an array A and to find the (i)count
10 5 3
of odd numbers, (ii) count of even numbers.
Write a C program with user defined functions to perform following
11 3
operations on string: 1. Find string length, 2. String concatenate 5
Write a C program to read N integers into an array A and to find the (i)count
12 5 3
of positive numbers, (ii) count of negative numbers.
13 Write a C program to subtract two matrices (2-D arrays) in c. 5 3
Write a C program with user defined functions to perform following
14 11 12 , 13 3
operations on string: 1. Find string length, 2. String copy string concatenate 5
Write a C program to demonstrate the use of Library functions to perform
15 following operations on string: 1. Find string length, 2. String copy, 3. String 3
Concatenate, 4. String Compare 5