gs gs122 Sorting - Timsort - Quiz No.2
gs gs122 Data Communication and Computer Network Quiz
This quiz belongs to book/course code gs gs122 Data Communication and Computer Network of gs organization. We have 268 quizzes available related to the book/course Data Communication and Computer Network. This quiz has a total of 6 multiple choice questions (MCQs) to prepare and belongs to topic Sorting. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
import java.util.Arrays; public class SortExample { public static void main(String[] args) { // Our arr contains 8 elements int[] arr = {10,7,9,5,8,4}; Arrays.sort(arr); System.out.printf(Arrays.toString(arr)); } }
import java.util.Arrays; public class SortExample { public static void main(String[] args) { int[] arr = {10,7,9,5,8,4}; Arrays.sort(arr, 1, 3); System.out.printf(Arrays.toString(arr)); } }