PROJECT FILE-ARRAY (ONE DIMENSIONAL)
(2019-20)
(CLASS : XII)
ONE DIMENSIONAL ARRAY LIST | |||
S.No. | List of Programms | ||
Q1. | Write a C++ program to search an element in an array using linear search. | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q2. | Write a C++ program to search an element in an array using Binary Search | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q3. | Write a user defined function Reverse(int A[],int n) which accepts an integer array and its size as arguments(parameters) and reverse the array. Example : if the array is 10,20,30,40,50 then reversed array is 50,40,30,20,10 | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q4. | Write a function SWAP2BEST(int Arr[],int Size) in C++ to swap content of array which are multiple of 10 with very next position in the array.Ex:- If the content are: 90,56,45,20,34,54 output:- 56,90,45,34,20,54 |
||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q5. | Write a function AlterArray(int Arr[],int Size) in C++ to swap content of array in such a way that values of alternate location of the array are exchanged.Ex:- If the content are:8,7,24,9,4,6 output:-7,8,9,24,6,4 |
||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q6. | Write a function SWAPME(int Arr[],int Size) in C++ to swap content of array on the basis of example given below.Ex:- If the content are:1,3,4,5,7,8,9,10 output:-7,8,9,10,1,3,4,5 |
||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q7. | Write a function SWAPIT(int Arr[],int Size) in C++ to swap content of array on the basis of example given below.Ex:- If the content are:1,3,4,5,7,8,9,10 output:-7,8,9,10,5,4,3,1 |
||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q8. | Write the definition of function named Array_Swap() that will accept an integer array & its size as arguments and the function will interchange/swap elements in such a way that the first element is swapped with the last element, second element is swapped with the second last element and so on, only if anyone or both the elements are odd. E.g. if initially array of seven elements is: 5, 16, 4, 7, 19, 8, 2 After execution of the above function, the contents of the array will be: 2,16, 19, 7, 4, 8, 5 |
||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q9. | Write the definition of a function grace_score (int score [], int size) in C++, which should check all the elements of the array and give an increase of 5 to those scores which are less than 40. Example: if an array of seven integers is as follows: 45, 35, 85, 80, 33, 27, 90 After executing the function, the array content should be changed as follows: 45, 40, 85, 80, 38, 32, 90 |
||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q10. | Write C++ program to print all negative elements in an array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q11. | Write C++ program to find sum of all elements of an array which are even and positive. | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q12. | Write C++ program to count and display sum of even and odd elements in an array |
||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q13. | Write C++ Program to Find the Largest and second largest Numbers in a given Array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q14. | Write C++ program to put even and odd elements of array in two separate array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q15. | Write a C++ Program to accept numbers in an array and sort them using Selection Sort | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q16. | C++ Program accept the numbers in an array and sort them using Bubble Sort | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q17. | Write a C++ program to search an element in an array using Binary Search | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q18. | Write a C++ Program to Delete Element from Array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q19. | Write a function in C++ to combine the contents of two equi-sized arrays A and B by adding their corresponding elements as the formula A[i]+B[i]; where value i varies from 0 to N-1 and transfer the resultant content in the third same sized array C | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q20. | Write the definition of a function Change(int P[], int N) in C++, which should change all the multiples of 10 in the array to 10 and rest of the elements as 1Write the definition of a function Change(int P[], int N) in C++, which should change all the multiples of 10 in the array to 10 and rest of the elements as 1. | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q21. | Write the definition of a function FixSalary(float Salary[], int N) in C++, which should modify each element of the array Salary having N elements, as per the following rules | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q22. | Write a C++ program to insert an new element into an array. | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q23. | C++ Program Merge Two Arrays A and B into array C ,where A array numbers are in ascending ,B array numbers in descending order and merge both in array C in ascending order | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q24. | Write C program to Merge Two Arrays into third array. | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q25. | Write C program to print all negative elements in an array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q26. | Write C program to print all negative elements in an array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q27. | Write C program to print all negative elements in an array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q28. | Write C program to print all negative elements in an array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q29. | Write C program to print all negative elements in an array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |
Q30. | Write C program to print all negative elements in an array | ||
DOWNLOAD | PDF FILE | WORD FILE | C++FILE |