Welcome to CHOOLS FULL STACK 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. Which keyword is used to prevent a method from being overridden in a subclass? final static abstract private2. Which of the following blocks is used to handle exceptions in Java? try catch finally All of the above3. What is the purpose of the BatchUpdateException class in JDBC? It is used to handle exceptions related to batch processing It is used to handle exceptions related to database connections It is used to handle exceptions related to SQL queries None of the above4. Which of the following is a valid association mapping type in Hibernate? @ManyToOne @OneToOneToOne @OneToManyToOne @ManyToManyToMany5. Which of the following best describes inheritance in Java? It is a mechanism where a new class can acquire the properties and behaviors of an existing class. It is a way to achieve data hiding. It is a way to define multiple methods with the same name but different parameters. It is a way to create objects based on a template.6. Which CSS property is used to set the position of an element? position place locate set-position7. What is the correct way to declare a method that does not return any value in Java? void methodName() methodName() : void int methodName() None of the above8. How do you declare a JavaScript array? var colors = ["red", "green", "blue"]; var colors = "red, green, blue"; var colors = { "red", "green", "blue" }; var colors = new Array("red", "green", "blue");9. Which of the following is true about the final keyword in Java? It is used to define a constant. It is used to prevent inheritance. It is used to prevent method overriding. All of the above10. Which CSS property is used to change the display behavior of an element? display visible show appearance11. Which CSS property is used to set the text alignment of an element? text-align align text-position position12. Which method is used to create a new file in Java? createNewFile() newFile() makeFile() addFile()13. Which tag is used to define the title of a document in HTML?14. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {int[] arr = {1, 2, 3, 4, 5};System.out.println(arr[2]);}} 1 2 3 415. Which tag is used to define a form in HTML?16. Which tag is used to create a hyperlink that opens in a new window or tab in HTML?17. Which of the following is true about the wait() method in Java? It is used to wait for a specific amount of time. It is used to release the lock on an object's monitor. It is used to wait indefinitely until another thread notifies it. It is used to terminate the current thread.18. Which method is used to check if a file exists in Java? fileExists() exists() isFileExists() fileIsPresent()19. Which of the following steps is not required to establish a connection to a database using JDBC? Load the JDBC driver Register the JDBC driver Create a database instance Open a connection to the database20. What is the purpose of Hibernate's @MappedSuperclass annotation? To mark a class as a mapped superclass, which means it will not be persisted To specify the fetch type of a superclass To define a custom fetch strategy for a superclass To define a common mapping for multiple entity classes21. What is the purpose of the super keyword in Java? It refers to the current instance of the class. It refers to the parent class instance. It refers to the current method. It refers to the current class.22. Which tag is used to define the footer of a document or section in HTML?23. What is the purpose of the "throw" keyword in Java? It is used to declare that a method may throw an exception. It is used to handle exceptions in a method. It is used to create custom exceptions. It is used to explicitly throw an exception.24. What is the purpose of the File.separator property in Java? It represents the file extension separator. It represents the path separator. It represents the directory separator. It represents the line separator.25. Which tag is used to create a hyperlink with a specific target in HTML? All of the above26. Which of the following is true about abstract classes in Java? They cannot have any abstract methods They can be instantiated. They can have both abstract and concrete methods. They are used to create objects directly.27. What is the purpose of the this keyword in Java? It refers to the current class instance. It refers to the current method. It refers to the current object. It refers to the current variable.28. How do you write "Hello World" in an alert box using JavaScript? alertBox("Hello World"); msg("Hello World"); alert("Hello World"); msgBox("Hello World");29. Which Java EE technology is used for managing and invoking remote objects in a distributed application? JDBC RMI JPA JMS30. What is the return type of the main method in Java? void int String main method does not have a return type31. What is the correct JavaScript syntax to write "Hello World" in an alert box? msgBox("Hello World"); alertBox("Hello World"); alert("Hello World"); msg("Hello World");32. What is the purpose of Hibernate's @Embeddable annotation? To define a component class that can be embedded within an entity To define an embedded query To define a composite primary key To define a custom fetch strategy33. What is the purpose of Hibernate's @Version annotation? To define the version number of an entity To specify the fetch type of an entity To define a unique constraint on an entity To define the cascade type of an entity34. Which of the following is true about the StringBuilder class in Java? It is immutable It is synchronized. It is not thread-safe. It is part of the java.lang package.35. What is the correct way to declare a constant in Java? final int CONSTANT_VALUE = 10; const int CONSTANT_VALUE = 10; static final int CONSTANT_VALUE = 10; int CONSTANT_VALUE = 10;36. Which tag is used to create a line break in HTML?37. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE38. What is the output of the following code snippet?int x = 5;System.out.println(x++); 5 6 Compilation Error Runtime Error39. What does the super keyword refer to in Java? It refers to the current instance of the class. It refers to the parent class instance. It refers to the current method. It refers to the current class.40. Which of the following is a checked exception in Java? NullPointerException ArrayIndexOutOfBoundsException IOException ArithmeticException41. What is the purpose of the FileOutputStream class in Java? It is used to read from a file. It is used to write to a file. It is used to create a new file. It is used to delete a file.42. Which CSS property is used to control the floating of an element? float align position flow43. Which tag is used to create a hyperlink in HTML?44. Which tag is used to create a textarea in HTML?45. Which of the following is true about the StringBuilder class in Java? It is immutable. It is synchronized. It is not thread-safe. It is part of the java.lang package.46. Which of the following is an unchecked exception in Java? IOException ClassNotFoundException NullPointerException FileNotFoundException47. What does JSTL stand for? Java Server Tag Library Java Server Tools Library Java Server Pages Tag Library JavaServer Pages Standard Tag Library48. Which attribute is used to specify the width of an image in HTML? width w size style49. What is the purpose of the instanceof operator in Java? It is used to compare two objects. It is used to check if an object is of a particular class type. It is used to create a new instance of a class. It is used to access the instance variables of an object.50. Which of the following is true about the "instanceof" operator in Java? It is used to compare two objects. It is used to check if an object is of a particular class type. It is used to create a new instance of a class. It is used to access the instance variables of an object.