JAVA TEST JAVA TEST PAPERS 0% Time Limit 20 minutes Maximum Allowed Time Is over Your Paper Successfully Sent. coding Java test Login Form to take test NameEmailPhone Number 1 / 24 Number of primitive data types in Java are? 6 8 4 2 / 24 String str = “abcde”; System.out.println(str.substring(1, 3)); abc bc ab 3 / 24 What is the output of the following programme? int Integer = 24; char String = ‘I’; System.out.print(Integer); System.out.print(String); Error 24 I 24 I 4 / 24 Identify the infinite loop both for(i = 1; i < 6; i++) for(i = 1; i < 6; i--) 5 / 24 if(1 + 1 + 1 + 1 + 1 == 5){ System.out.print(“TRUE”); } else{ System.out.print(“FALSE”); } 1 Error 6 / 24 Select the valid statement to declare and initialize an array. int[]A={} int[]A={1,2,3} int[]A =(1,2,3) 7 / 24 Identify the output of the following program. String str = “Hellow”; System.out.println(str.indexOf(‘H)); error 1 8 / 24 Identify the modifier which cannot be used for constructor. private static public 9 / 24 What is the full form of OOPs object original programming Original object programming Object oriented programming 10 / 24 Identify the return type of a method that does not return any value. Void double none 11 / 24 Int i = 0; do{ i++; System.out.println(i); } while(i < 10); upto which number i will be printed 10 9 12 / 24 int ++a = 100; System.out.println(++a); what is the output of the following programme? Compiler error 101 100 13 / 24 int a = 100; System.out.println(++a); what is the output of the following programme? 100 101 error 14 / 24 if(FALSE){ System.out.print(“TRUE”); } else{ System.out.print(“FALSE”); } 1 error 15 / 24 Exception created by try block is caught in which block none catch throw 16 / 24 public class Solution{ public static void main(String[] args){ int x = 127; x++; x++; System.out.print(x); } } 127 129 17 / 24 Public class Solution{ Public static void main(String args[]){ Int i; for(i = 1; i < 6; i++){ if(i > 3) continue; } System.out.println(i); } } 4 3 6 18 / 24 Int i = 0; do{ System.out.println(i); i++; } while(i < 10); upto which number i will be printed 10 9 19 / 24 Public class Solution{ Public static void main(String args[]){ Int i; for(i = 1; i < 6; i++){ if(i > 3) break; } System.out.println(i); } } 4 3 6 20 / 24 what range of index value you will specify to print the complete name : java coding (1,11) (1,10) (0,11) 21 / 24 Identify the output of the following program. String str = “Hellow”; System.out.println(str.indexOf(‘t)); error -1 22 / 24 int a = 100; System.out.println(a); int a =++a; what is the output of the following programme? 101 102 100 23 / 24 public class Solution{ public static void main(String[] args){ int x = 10; x = x * 5; System.out.print(x); } } what is the output of the programme? 5 50 10 24 / 24 Public class Test{ Public static void main(String argos[]){ String str1 = “one”; String str2 = “two”; System.out.println(str1.concat(str2)); } } onetwo one two Your score is LinkedIn Facebook Twitter VKontakte 0% Exit you can rate the paper on 1 to 5 scale 1 is least liked and 5 is most liked Send feedback