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. 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 entity2. 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.3. Which CSS property is used to set the width of an element? width size length width-size4. What is the output of the following code snippet?String str1 = "Hello";String str2 = "Hello";System.out.println(str1 == str2); true false Compilation Error Runtime Error5. How do you write a conditional statement in JavaScript? if i = 5 then if (i == 5) if i == 5 if i = 56. Which method is used to start a new thread in Java? run() start() execute() begin()7. Which CSS property is used to control the visibility of an element? show visible display visibility8. Which keyword is used to prevent a method from being overridden in a subclass? final static abstract private9. What is the primary benefit of using interfaces in Java? They allow for multiple inheritance They allow for code reuse. They allow for dynamic method dispatch. They allow for method overloading.10. Which of the following is true about the static keyword in Java? It is used to create instances of a class. It is used to define a constant. It is used to access class variables and methods. It is used to declare a method that cannot be overridden.11. Which of the following is true about the default constructor in Java? It is automatically provided by the compiler if no constructor is defined in the class. It is used to create a new instance of a class. It is always a parameterized constructor. It cannot be overridden in a subclass.12. Which tag is used to define the header of a table in HTML?13. Which tag is used to create a radio button in HTML?14. Which annotation is used to enable automatic component scanning in Spring? @ComponentScan @Autowired @Configuration @Component15. Which of the following is true about batch processing in JDBC? It allows multiple SQL statements to be executed as a batch It is faster than executing each SQL statement individually It reduces network overhead All of the above16. Which of the following is true about method overloading in Java? It allows a subclass to provide a specific implementation of a method that is already provided by one of its parent classes. It allows a class to have multiple methods with the same name but different parameters. It is a way to achieve runtime polymorphism. It is used to hide the internal implementation details of a class.17. 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.18. Which JSP directive is used to import a Java class into a JSP page?19. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {int x = 5;int y = 2;System.out.println(x - y);}} 3 7 2 Compilation error20. What is the purpose of the ResultSetMetaData interface in JDBC? It is used to retrieve metadata about a ResultSet object It is used to retrieve metadata about a database It is used to retrieve metadata about a Statement object None of the above21. What is the primary benefit of using interfaces in Java? They allow for multiple inheritance. They allow for code reuse. They allow for dynamic method dispatch. They allow for method overloading.22. 23. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {String str1 = "Hello";String str2 = "World";System.out.println(str1 + str2);}} HelloWorld Hello World Hello+World Compilation error24. What is the purpose of Hibernate's Second Level Cache? To cache query results To cache entity instances To cache database schema To cache database connections25. Which attribute is used to specify the source of an image in HTML? src source image file26. What is the correct way to create 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");27. Which of the following is a valid mapping type in Hibernate? @MappedSuperclass @MappedEntity @PersistentClass @EntityMapping28. Which CSS property is used to set the position of an element? position place locate set-position29. Which method of the PreparedStatement interface is used to set a parameter value? setParameter() set() setValue() setXXX()30. What is the process of a subclass providing a specific implementation of a method that is already provided by one of its parent classes called? Encapsulation Abstraction Inheritance Method Overriding31. Which CSS property is used to skew an element? skew transform skewing tilt32. Which of the following is true about the BufferedWriter class in Java? It is used to read from a file. It is used to write to a file. It is used to buffer input from a file. It is used to buffer output to a file.33. Which CSS property is used to create a shadow effect around an element? shadow text-shadow box-shadow element-shadow34. Which attribute is used to specify the type of input field in HTML? type input field mode35. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {String str = "Hello, World!";System.out.println(str.length());}} 12 13 11 Compilation error36. Which of the following is not a principle of Object-Oriented Programming (OOP)? Encapsulation Inheritance Abstraction Recursion37. What is the purpose of the DatabaseMetaData interface in JDBC? It is used to retrieve metadata about a database It is used to retrieve metadata about a ResultSet object It is used to retrieve metadata about a Statement object None of the above38. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany39. Which CSS property is used to rotate an element? rotate transform rotation rotate-element40. Which operator is used to assign a value to a variable in JavaScript? = == := =>41. What is the process of creating a new class by extending an existing class called? Polymorphism Inheritance Abstraction Encapsulation42. Which CSS property is used to set the background color of an element? bg-color background-color color bg43. Which of the following is true about constructors in Java? They can be inherited. They can be overloaded They can be overridden. They can be private.44. How do you write a while loop in JavaScript? while i = 1 to 5 while (i <= 5) while (i = 1; i <= 5) while (i++)45. Which tag is used to create a hyperlink that links to an email address in HTML? Email me a href="mailto:example@example.com">Click here to email me46. Which tag is used to create a button in HTML?47. Which method is used to wait for a thread to finish its execution in Java? join() wait() sleep() yield()48. What is the process of hiding the internal implementation details of a class and only exposing the necessary features called? Inheritance Polymorphism Encapsulation Abstraction49. 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.50. Which JSTL tag is used to iterate over a collection in JSP?