Decision Makings and Branching November 27, 2020December 21, 2020wefru Decision Makings and Branching Quiz 3 Created on November 27, 2020 By wefru Decision Makings and Branching TEST YOUR SKILLS BRODLY 1 / 10 Q.131 What is the order of variables in Enum? Ascending order Descending order Random order Depends on the order() method 2 / 10 Q.132 Can we create an instance of Enum outside of Enum itself? true false 0 1 3 / 10 Q.133 What will be the output of the following Java code?enum Season{WINTER, SPRING, SUMMER, FALL};System.out.println(Season.WINTER.ordinal()); 0 1 2 4 4 / 10 Q.134 If we try to add Enum constants to a TreeSet, what sorting order will it use? Sorted in the order of declaration of Enums Sorted in alphabetical order of Enums Sorted based on order() method Sorted in descending order of names of Enums 5 / 10 Q.135 What will be the output of the following Java code snippet?class A{}enum Enums extends A{ABC, BCD, CDE, DEF;} Compilation Error 0 AB ABC 6 / 10 Q.136 What will be the output of the following Java code snippet?enum Levels{private TOP,public MEDIUM,protected BOTTOM;} Compilation Error Run correctly 00 21 7 / 10 Q.137What will be the output of the following Java code snippet?enum Enums{A, B, C;private Enums(){System.out.println(10);}}public class MainClass{public static void main(String[] args){Enum en = Enums.B;}} 10 10 10 10 10 1012 10 10 10232 10 10 10569 8 / 10 Q.138 Which method returns the elements of Enum class? getEnums() getEnumConstants() getEnumList() getEnum() 9 / 10 Q.139 Which class does all the Enums extend? Object Enums Enum EnumClass 10 / 10 Q.140 Are enums are type-safe? True False 0 1 Your score is The average score is 50% LinkedIn Facebook Twitter VKontakte 0% Restart quiz