0% found this document useful (0 votes)
21 views

Fumigation Array Questions

Uploaded by

afinafnafnafin70
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)
21 views

Fumigation Array Questions

Uploaded by

afinafnafnafin70
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/ 7

Fumigation Array Questions

1. Write a program in C to read n number of values in an array and display the


array after deleting two values next to the multiples of 5.

2. Write a program to remove all the prime numbers and even numbers replace by
1 in an array

3. 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.

4. Find the sum of unique prime numbers in an array.

5. Find the sum of unique multiples of 3 in an array

6. In an array, replace all the prime numbers with ‘ * ‘ & remove all the even
numbers.
7. Write the code to reverse the array and remove all the multiples of ‘3’ from it

8. Sort the array in ascending order and remove the next two array elements after
the occurrence of a prime number

9. Reverse the array elements and if the sum of array elements is greater than 100,
then remove the largest element from it

10. In an array remove all the prime numbers > 50 and remove all the non-prime
numbers < 50.

11. In an array replace all the multiples of three by ‘0’ and multiples of five by ‘1’

12. Write a program to delete two elements after the occurrence of multiples of five
13. In an array replace all the prime numbers by ‘1’ & non-prime numbers by ‘0’.

14. In an array, replace all the prime numbers with ‘ * ‘ & remove all the even
numbers.

15. Find the sum of unique multiples of 3 in an array

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

17. Sort the array and replace elements in an odd position with * and remove prime
numbers

18. Write a C program to sort an array and print the count of unique elements in the
array.

19. 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.
20. Write a program in C to read n number of values in an array and Replace all the
multiples of five by 10 and remove even numbers.

21. Write a C program to reverse the elements of an array and remove multiple of 3.

22. Write a program in C to read n number of values in an array & display the array after
deleting two values next to an even number.

23. In an array, replace all the prime numbers with ‘ * ‘ & remove all the even numbers

24. Write a program to find the sum of all the prime numbers in an array

25. Write a program to delete two elements after the occurrence of an even number
26. Write a program to find the sum of all even numbers in an array and let it be ‘n

27. Write a program to delete two elements after the occurrence of a prime number and
replace all even numbers by 0.

28. Write a C program to replace all even numbers by 0 & odd numbers by 1

29. Write a C program to sort an array and print the count of ‘1’ in the array.

30. Write a program in C to read n number of values in an array and display the
array after deleting two values next to the multiples of 5.

31. Write a program to delete all the multiples of 5 in an array.


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

33. Write a C program to sort an array and print the count of unique elements in the
array.

34. Write a C program to read an array and count even and odd numbers in an
array.

35. Write a program in C to read n number of values in an array and Replace all the
multiples of 3 by 9 and remove even numbers.

36. Write a program to find the sum of all the odd numbers in an array

37. In an array remove all the odd numbers > 50 and remove all the even < 50.
38. In an array, replace all the odd numbers with ‘ * ‘ & remove all the even
numbers.

39. Write a program in C to read n number of values in an array and display the
array after deleting two values next to the multiples of 3.

40. Sort the array and replace elements in an odd position with * and remove prime
numbers

You might also like