Array Practice Questions
Q1- WAP to accept 10 numbers in an array from the user and calculate the sum of the array elements.
Q2- WAP to accept 8 numbers in an array from the user and display it in reverse order.
Q3- WAP to accept 12 numbers in an array and display the lowest value.
Q4- WAP to accept seven numbers and display the highest value.
Q5- WAP to accept 11 numbers from the user in an array and count all the positive numbers and display
them, after which also display the frequency of positive numbers.
Q6- WAP to except 11 numbers from the user in an array and count all the positive numbers and display
them, after which also display the frequency of positive numbers.
Q7- WAP to accept 6 numbers from the user in an array and count the even numbers and display them.
Q8- WAP to accept 6 numbers from the user in an array and count the odd numbers and display them.
Q9- WAP to accept "n" numbers in an array and count and display even(+ve), even(-ve) and odd(+ve),
odd(-ve) in separate lists.
Q10- WAP to accept individual run of a complete cricket team in a test series and display the final score
of the team ,after which display which player has scored century half century, or just display the score.
Q11- WAP to accept 10 numbers in array and copy it in another array and display the second array.
Q12- WAP to accept 10 numbers in array and copied in reverse order and display the second array.
Q13- WAP to accept value in two different arrays of size "n" and store their sum in a 3rd array index wise.
Q14- WAP to accept values in two different arrays of size "n" and store their product in a 3rd array index
wise.
Q15- WAP to accept values two different arrays in size m and n, and store it in one single array where the
first away would be copied followed by the 2nd array.
Q16- WAP to accept a number in an array and a number separately that needs to be checked whether it
is present in the array or not.
Q17- WAP to accept "n" numbers in an array and a number separately and check how many times it
is being repeated.
Q18-WAP to accept n numbers in an array and check and count how many of them are :
a)prime number b)palindrome number c)Armstrong number d)perfect number
Q19-WAP to accept n numbers in an array and arrange them in ascending order(using bubble sort).
Q20-Wap to accept n numbers in an array and arrange them in descending order(using bubble sort).