Page 388 - ComputerScience_Class_11
P. 388
The output of the program is as follows:
BlueJ: Terminal Window - Java
Options
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
Let’s Revisit
♦ Arrays can be defined as a set of variables which contains values of same data types having same variable name but different
subscripts required to separate the values.
♦ Two or more elements arranged row-wise containing separate subscript values indicating the position of the element is known
as single dimensional array or 1D array.
♦ The total number of elements an array holds is the length of the array.
♦ Searching is used to determine whether an element is present in the array or not.
♦ Sorting is the process of arranging the elements either in the ascending or the descending order.
♦ Insertion is the process of adding an element at any desired position in the array.
♦ Deletion is the process of deleting or removing an element from the array from the given position.
♦ Merging is the process of combining two or more than two arrays.
MIND DRILL
Solved Questions
A. Tick ( ) the correct option.
1. To deal with multiple data together, we use the concept of ………………… .
a. Loops b. Arrays
c. Strings d. Functions
2. When two or more elements, arranged row-wise, contain separate subscript values indicating the position of each element, then
it is known as ………………… .
a. Single-dimensional Array b. Double-dimensional array
c. String d. Linked list
3. What is the default value of an integer array element in Java?
a. 0 b. 1
c. null d. -1
386 Touchpad Computer Science (Ver. 3.0)-XI

