New Simple Array Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 50

Name : Score :

Start Time :

End Time :

➢ Write a program in C to read n number of values in an array and display the array
after skipping two values next to the multiples of 5.
Name : Score :

Start Time :

End Time :

➢ Write a C program to sort an array and print the count of unique elements in the
array.
Name : Score :

Start Time :

End Time :

➢ Write a C program to delete duplicate elements from an array.


Name : Score :

Start Time :

End Time :

➢ Write a program to remove all the prime numbers in an array


Name : Score :

Start Time :

End Time :

➢ Write a program in C to find numbers that occur in exact two times in an array.
Name : Score :

Start Time :

End Time :

➢ Write a C program to replace all prime numbers by 0 & even numbers by 1 in an


array.
Name : Score :

Start Time :

End Time :

➢ Write a program in C to get an array from users and remove odd numbers from the
array and find the sum of the existing values in the array.
Name : Score :

Start Time :

End Time :

➢ Write a program in C to find the prime numbers in an array and replace it with 0.
Name : Score :

Start Time :

End Time :

➢ Write a program in C to skip two elements after the occurrence of a non prime number in
an array.
Name : Score :

Start Time :

End Time :

➢ Write a program to replace all odd numbers with ‘*’ in an array & find the sum of
even numbers
Name : Score :

Start Time :

End Time :

➢ Write the code to reverse the array and remove all the multiples of ‘3’ from it
Name : Score :

Start Time :

End Time :

➢ Write a code to replace all the multiples of five by 10


Name : Score :

Start Time :

End Time :

➢ In an array replace all the multiples of three by ‘0’ and multiples of five by ‘1’
Name : Score :

Start Time :

End Time :

➢ Write a program to find the average of all unique array elements


Name : Score :

Start Time :

End Time :

➢ Write a program to find largest number in an unsorted array


Name : Score :

Start Time :

End Time :

➢ Write a program to find smallest number in an unsorted array


Name : Score :

Start Time :

End Time :

➢ Write a program to find the average of all unique array elements


Name : Score :

Start Time :

End Time :

➢ Write a C program to delete an element from an array at specified position.


Name : Score :

Start Time :

End Time :

➢ Write a program in C to merge two arrays of same size sorted in descending order
Name : Score :

Start Time :

End Time :

➢ Write a program to find factorial of largest number in an array


Name : Score :

Start Time :

End Time :

➢ Write a program to delete unique elements in an array


Name : Score :

Start Time :

End Time :

➢ Write a program in C to read n number of values in an array and display the array after
deleting two values next to an odd number.
Name : Score :

Start Time :

End Time :

➢ Write a program in C to count even numbers and count prime numbers


Name : Score :

Start Time :

End Time :

➢ Write a program in C to delete multiples of 5


Name : Score :

Start Time :

End Time :

➢ Write a program in C to find the sum, sum is greater than 100 delete odd, sum isless
than 100 delete even numbers
Name : Score :

Start Time :

End Time :

➢ Write a program to delete lowest element in an array


Name : Score :

Start Time :

End Time :

➢ Write a program to put even and odd elements of an array in two separate arrays.
Name : Score :

Start Time :

End Time :

➢ Write a program in C to insert New value in the array


Name : Score :

Start Time :

End Time :

➢ Write a program in C to print all unique elements in an array


Name : Score :

Start Time :

End Time :

➢ Write a program to delete repeating element


Name : Score :

Start Time :

End Time :

➢ Write a program to get an array from users, remove even numbers from the array and find the
average of the existing values in the array.
Name : Score :

Start Time :

End Time :

➢ Write a program to find the average of all the prime numbers in an array
Name : Score :

Start Time :

End Time :

➢ Write a program to reverse an array and print the count of odd numbers in the array.
Name : Score :

Start Time :

End Time :

➢ Sort the array and replace elements in an even position with ‘0’.
Name : Score :

Start Time :

End Time :

➢ Write a program to find the frequencies of array elements


Name :

Start Time :

End Time :

➢ Write a program in C to insert a element in a specified position.


Name :

Start Time :

End Time :

➢ Write a program in C to Reverse the array and delete even numbers in the array
Name :

Start Time :

End Time :

➢ Write a program in C to read n number of values in an array and display the array after
deleting two values next to an odd number.
Name :

Start Time :

End Time :

➢ Write a C program to find the largest element of an array without sorting


Name :

Start Time :

End Time :

➢ Write a program in C to count prime numbers


Name :

Start Time :

End Time :

➢ Write a program in C to delete unique numbers in the array


Name :

Start Time :

End Time :

➢ Write a program in C to find the sum, sum is greater than 100 delete even, sum is less
than 100 delete odd numbers
Name :

Start Time :

End Time :

➢ Write a program in C to read n number of values in an array and display it in reverse order
Name :

Start Time :

End Time :

➢ Write a program in C to find smallest element in the array without sorting


Name :

Start Time :

End Time :

➢ Write a program to count the total number of unique elements in an array


Name :

Start Time :

End Time :

➢ Write a program to print all repeating elements in an array.


Name :

Start Time :

End Time :

➢ Write a program to print all prime numbers in an array


Name :

Start Time :

End Time :

➢ Write a program to find the majority element in the array (The majority element is the
element that appears more than ⌊n / 2⌋ times).
Name :

Start Time :

End Time :

➢ Write a program to count the frequency of each element of an array.


Name :

Start Time :

End Time :

➢ Write a C program to sort an array and print the count of prime numbers in the array.

You might also like