Arrays
Arrays
(A) abcde (B) 6566676869 (C) Compilation Error (D) Some Garbage Value
17) A Single Dimensional array contains N elements. What will be the last
subscript?
(A) N-1 (B) N (C) N+1 (D) None
10. Show the vales after each iteration if the following numbers are to be sorted
in ascending order using bubble sort. 3, 11, 2, 18, 5, 6
11. Show the vales after each iteration if the following numbers are to be sorted
in descending order using selection sort. 3,11,2,18,5.6
c) double d[]={3.2,0.5,7.6,8.3};
int p=1:
for( int i=0; i<=d.length-1;i++)
{
P*=(int)Math.floor( d([i]);
System.out.priatln(p);}
2. WAP to accept data in a 5x5 matrix and check if it is an identity matrix or not.
************