def selection_sort(arr):Output of the following python program isfor i in range(len(arr) - 1):min_index = ifor j in range(i + 1, len(arr)):if arr[j] arr[min_index]:min_index = jarr[i], arr[min_index] = arr[min_index], arr[i]return arrarr = [5, 6, 4, 7, 3, 8, 2, 9, 1, 0]print("Sorted array is:", selection_sort(arr))
int Integer = 24;char String = 'I';System.out.print(Integer);System.out.print(String);
public class Sookshmas{void m1(){System.out.println("m1 method");}class B{static int i=10; //Compilation fails at line 9static final int j=20; //Compilation fails at line 10void m2(){System.out.println("m2 method");System.out.println(j);//Compilation fails at line 14}}}class Test{public static void main(String[] args){Sookshmas a=new Sookshmas();a.m1();a.m2();//Compilation fails at line 24Sookshmas.B ab=new Sookshmas().new B();ab.m2();}}