0% found this document useful (0 votes)
5 views1 page

+1 Array Computer Science

The document outlines exercises related to arrays in C++ for a Plus One Computer Science course. It includes tasks such as declaring and initializing an array, predicting output from a given C++ program, implementing Bubble Sort, and explaining various array types and search/sort algorithms. Additionally, it requests programs for matrix operations and comparisons between sorting and searching methods.

Uploaded by

Athira S
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)
5 views1 page

+1 Array Computer Science

The document outlines exercises related to arrays in C++ for a Plus One Computer Science course. It includes tasks such as declaring and initializing an array, predicting output from a given C++ program, implementing Bubble Sort, and explaining various array types and search/sort algorithms. Additionally, it requests programs for matrix operations and comparisons between sorting and searching methods.

Uploaded by

Athira S
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

Sree Syamaprabha Tuition Centre

Plus One Computer Science

Chapter 8 :Array

1. Declare an array of size 5 and intitialize it with the numbers 8, 7, 2, 4 and 6


2. Predict the output of the following C++ program.
#include <iostream.h>
int main()
{
int array[] = {1, 2, 4, 6,7,5};
for (int n =1; n<=5; n++)
array [n] = array [n – 1 ];
for (n = 0; n <= 5; n++)
cout<< array [n];
return 0;
}

3. Write C++ program for sorting a list of numbers using Bubble Sort Method.
(2)
4. Write the different passes of sorting the following numbers using Bubble
Sort.
32, 21, 9, 17, 5
5. Explain different types of arrays.
6. Differentiate linear search and binary search
7. Differentiate bubble sort and selection sort
8. Write a program to perform matrix addition, multiplication, subtraction

You might also like