Assignment-5

divider
Question-1

Q1. To reverse an array of int/float.

Question-2

Q2. To insert an element at a given location of an array.

Question-3

Q3. Delete a given element in an array.

Question-4

Q4. Linear search for element.

Question-5

Q5. Binary search for an element (which one among linear or binary search is better and why).

Question-6

Q6. Sum and average of array elements.

Question-7

Q7. Merge two arrays.

Question-8

Q8. Find largest and smallest in array.

Question-9

Q9. Union and intersection of elements of two arrays.

Question-10

Q10. Remove duplicates in an array.

Question-11

Q11.To add, multiply and transpose of a matrix.

Question-12

Q12. Sort the array elements in ascending order.

Question-13

Q13. Rotate array elements (123,231,312) or (abcd, bcda, cdab, dabc).

Question-14

Q14. Find mean, median, mode of an array.

Question-15

Q15. Use functions, loops and arrays to convert a decimal number into (a) binary (b) octal (c) hexadecimal.

Question-16

Q16. Bonus