The document is a question bank consisting of programming-related questions and tasks focused on arrays, functions, and basic mathematical operations. It includes questions about array characteristics, program implementations for searching and manipulating arrays, and explanations of functions and their advantages. Additionally, it covers user-defined functions, recursion, and practical programming exercises involving matrix operations and variable manipulation.
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 ratings0% found this document useful (0 votes)
8 views1 page
Question Bank CP
The document is a question bank consisting of programming-related questions and tasks focused on arrays, functions, and basic mathematical operations. It includes questions about array characteristics, program implementations for searching and manipulating arrays, and explanations of functions and their advantages. Additionally, it covers user-defined functions, recursion, and practical programming exercises involving matrix operations and variable manipulation.
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/ 1
Question Bank
1. What is array. Explain characteristics of array.
2. Write a program to search element in a 1-D array. 3. Write a program to accept ten number and print average of it. 4. Write a program to perform multiplication of 2-D array. 5. Write a program to print the array elements in reverse order. 6. Explain concept of array declaration and initialization with the help of suitable example. 7. Explain the declaration and initialize a character array with an example. 8. Write a program to calculate area of rectangle and circle using user defined functions. 9. Display the sum of digits of given number by using function. 10. What is function. Explain advantages of function. 11. Explain user defined function with an example. 12. Write a program to implement recursion. 13. Explain advantages and disadvantages of an array. 14. Write a program to find greatest number in a 5-element integer array. 15. Write a program to find smallest number from 1-D array. 16. Write a program to perform Addition of two 3x3 matrices. 17. Write a program to find transpose of 2-D Matrix. 18. Explain four aspects of functions. Write a program to implement function with argument and with return value. 19. Write a program to copy one array to another array. 20. Declare and initialize the one dimensional array with 10 elements. Explain how elements in an array can be accessed. 21. Write a program to swap the values of variables a=10, b=5 using function. 22. Define function and state the need of function with the help of one example.