Welcome to CHOOLS JAVA ASSESSMENT (YOU HAVE ONLY 30 MINUTES TO COMPLETE THIS PART [20 Questions]) **** Wishing You All The Best **** Instructions : To start the quiz, please provide your name, email id and phone number. All questions are mandatory* Answering each question is required before going on to the next page of questions. Your response is subject to change at any time. After completed the quiz click the submit button. If, once the time is up, it will be automatically submitted. The report will be mailed to your email address after the quiz is finished. 1. Wrapper class in java is ___. Used to encapsulate primitive data types Declare new classes called wrapper Create a new instance of the class None of these2. Which of the following is the correct syntax to create a variable in Java? var name; int name; var name int; All of these3. Which of the following can be declared as final in java? Class Method Variable All of these4. 'this' keyword in java is ___. Used to hold the reference of the current object Holds object value Used to create a new instance All of these5. The super() method is used to ___. Call constructor of friend class Is a declared method Call constructor of the parent class Call constructor6. Which keyword in java is used for exception handling? exep excepHand throw All of these7. Method used to take a string as input in Java? next() nextLine() Both A. and B. None of these8. Is string mutable in Java? Yes No9. What is garbage collection in java? Method to manage memory in java Create new garbage values Delete all values All of these10. Which of these is the correct method to create an array in java? int[] arr = {1, 3, 5}; int[] arr; arr = new int[] {3, 1, 8}; int arr[] = {1, 4, 6}; All of these11. Which is the correct absolute path of a file in Java? C:\Program Files\Java\jdk1.8.0_131\bin\file_name.txt C:\Program Files\Java\file_name.txt C:\Program Files\Java\jdk1.8.0_131\file_name.txt C:\Program Files\Java\jdk1.8.0_131\bin\File Handling\file_name.txt12. Abstract class is ___. Created using abstract keyword Contains only abstract method Needs to be inherited to be used All of these13. What is type casting in Java? It is converting type of a variable from one type to another Casting variable to the class Creating a new variable All of these14. What will be the output of following Java code?public class Main {public static void main(String arg[]) {int i;for (i = 1; i <= 12; i += 2) {if (i == 8) {System.out.println(i);break;}}}} 1 No output 8 135791115. What are the types of memory allocated in memory in java? Heap memory Stack memory Both A and B None of these16. Finally block is attached to? Try-catch block Class block Method block All of these17. Which method is used to add a new line to file in Java? file.addLine() file.nextLine() file.write() file.line()18. Static variables in java are declared as ___. final variables new variables Constants All of these19. Which class in Java is used to take input from the user? Scanner Input Applier None of these20. JRE stands for ___. Java run ecosystem JDK runtime Environment Java Runtime Environment None of these5 out of 4