0% found this document useful (0 votes)
17 views1 page

PPL Question Bank Unit 5 2024-25

The document is a question bank for Unit 5 of a programming course for the academic year 2024-25, focusing on arrays and strings in C. It includes various questions categorized by marks, covering definitions, declarations, initializations, memory representation, and programming tasks related to one-dimensional and two-dimensional arrays. The document also features programming exercises that require writing C programs to manipulate arrays and strings.

Uploaded by

1.maths.care
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

PPL Question Bank Unit 5 2024-25

The document is a question bank for Unit 5 of a programming course for the academic year 2024-25, focusing on arrays and strings in C. It includes various questions categorized by marks, covering definitions, declarations, initializations, memory representation, and programming tasks related to one-dimensional and two-dimensional arrays. The document also features programming exercises that require writing C programs to manipulate arrays and strings.

Uploaded by

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

PPL Question Bank Unit 5 2024-25

Unit No: 5 Sr No. Marks Questions CO BL PI


1 Define array and write syntax. 5 1
2 How to declare a float array of size 5 and assign 5 values to it . 5 1
3 Define string. Give an example for initialization of character array. 5 1
4 How a character array is declared? Explain the use of null character. 5 1
5 Write syntax to declare and initialize two-dimensional array. 5 2
6 Define 2-D array and write syntax to accept elements from user. 5 2
7 What are different types of Array? Give examples of each. 5 1
Define a float array ? What is the index of the last element in an array having
8 2 Marks size 10? 5 2
Write syntax of 2-D array. What is the maximum number of elements in an
9 array having 4 rows and 3 colums? 5 3
10 How 2-D- array/Two Dimensional arrays is declared and initialized in C. 5 2
11 What are the limitations of arrays in C? 5 1
12 What are advantages & disadvantages of arrays in C? 5 1
13 Explain multidimensional array with example . 5 1
14 Declare and initialize multidimensional array. 5 1
15 Differentiate between arrays and structures 5 2
Unit No: 5 Sr No. Marks Questions CO BL PI
What is array? Explain the declaration and initialization of one dimensional
1 array with an example. 5 2
Define array. Explain with suitable example how to declare and initialize 1D
2 array of floats of size 5. 5 2
3 Explain the memory representation of 1 D Array with suitable diagram. 5 2
Write a C program to read integers into array and find average of all numbers.
4 5 3
5 11 smallest element Write a C program to find the largest element and its location in an array. 5 3
Explain with a C Program how to update values of array elements using loop
6 and display it? 5 3
4 Marks How to loop through an Array in C? Demonstrate using for loop and while
7 loop. 5 2
8 Explain the memory representation of 2 D Array with suitable diagram. 5 2
9 Demonstrate the use of any two library functions for strings. 5 2
Define 2-D array with syntax. Explain the declaration and initialization of two-
10 dimensional array of floats with an example. 2
11 Write a C program to find the smallest element and its location in an array. 5 3
12 Write a C program with user defined function to find length of the string. 5 3
13 Write a C program with user defined function to copy one string to another string. 5 3
14 Write a C program with user defined function to cocatenate one string to another string.
5 3
15 Write a C program with user defined function to compare two strings. 5 3
Unit No: 5 Sr No. Marks Questions CO BL PI
Depict tht types of arrays with syntax. Explain the memory representation of 1-
1 38
D and 2-D Array. 5 2

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

You might also like