Data Structure and Algorithms using Java · Instructor: Prof. Debasis Samanta
Which of the following data structure(s) is (are) primarily used to store data in non-contagious memory location?
What is the output of the following code snippet? String str = "Hello"; System.out.println(str.length());
What is the output of the following code snippet? int[] arr = {1, 2, 3, 4, 5}; System.out.println(arr[3]); Which of the following is true?
What is the output of the following code snippet? int i = 0; while (i < 5) { System.out.print(i + " "); i++; } Which of the following is true?
Which of the following data type you should consider to store the number of stars in the galaxy?
Which of the following statement(s) is (are) not correct so far as the initialization of a string is concerned?
How many times the following loop will be executed? for(; ;){ } Which of the following is true?
What is the output of the following code snippet? String str1 = "Java"; String str2 = new String("Java"); System.out.println(str1 == str2); Which of the following is true?
What is the output of the following code snippet? int num = 10; System.out.println(num++); System.out.println(++num);
What is the output of the following code snippet? int x = 5; int y = 2; System.out.println(x / y);