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 of the following statements is true about the "finally" block in Java? It is always executed, whether an exception is thrown or not. It is optional and may be omitted. It is used to catch exceptions. It is used to re-throw exceptions.2. What is the purpose of Hibernate's @GeneratedValue annotation? To generate primary key values automatically To specify the generation strategy for primary keys To define the mapping between Java classes and database tables To specify the fetch type for entity associations3. What is the correct JavaScript syntax for writing an if statement? if i = 5 then if i == 5 if (i == 5) if (i = 5)4. 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.5. Which tag is used to create an image in HTML?6. 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.7. Which keyword is used to prevent a method from being overridden in a subclass? final static abstract private8. What is the output of the following code snippet?String str = "Hello";str.concat(" World");System.out.println(str); Hello Hello World World Compilation Error9. 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 strategy10. 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");11. What is the correct JavaScript syntax for creating a function called "myFunction"? function = myFunction() function myFunction() function:myFunction() function myFunction{}12. How do you round the number 7.25 to the nearest integer in JavaScript? Math.round(7.25) round(7.25) Math.rnd(7.25) rnd(7.25)13. Which of the following is true about prepared statements in JDBC? They are used to execute parameterized SQL queries They are faster than regular statements They prevent SQL injection attacks All of the above14. Which of the following methods is used to commit a transaction in JDBC? commit() execute() update() setAutoCommit()15. What is the correct JavaScript syntax to change the content of the HTML element with id="demo"? document.getElement("demo").innerHTML = "Hello World!"; document.getElementById("demo").innerHTML = "Hello World!"; document.getElementByName("demo").innerHTML = "Hello World!"; #demo.innerHTML = "Hello World!";16. Which annotation is used to mark a class as a Spring bean? @Bean @Component @Service @Repository17. 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);}} 2.5 2 2.0 118. Which of the following is true about the default value of instance variables in Java? They are initialized to 0. They are initialized to null. They are not initialized by default. It depends on the data type of the variable.19. What is the output of the following code snippet?String str = "Hello";str = str + " World";System.out.println(str); Hello World Hello World Compilation Error20. Which tag is used to define an unordered list in HTML?21. 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.22. Which of the following methods of the ResultSet interface is used to move the cursor to the next row? next() moveToNext() moveNext() nextRow()23. Which tag is used to define the footer of a document or section in HTML?24. Which CSS property is used to control the stacking order of elements? stack-order z-index order stack25. Which JSP element is used to declare a custom tag library?26. What is the purpose of Hibernate's @JoinColumn annotation? To specify the name of the join column in a many-to-many relationship To specify the name of the join column in a one-to-many relationship To specify the name of the foreign key column in a one-to-many relationship To specify the name of the primary key column in a many-to-one relationship27. Which implicit object represents the request object in a JSP page? request response session application28. In Hibernate, what is the role of the SessionFactory? It manages Hibernate sessions It represents the database schema It is used to create database connections It defines the mapping between Java classes and database tables29. Which attribute is used to specify the width of a table in HTML? width size length style30. Which attribute is used to specify the type of input field in HTML? type input field mode31. Which JSP directive is used to specify the error page for an entire application?32. What is the correct JavaScript syntax for an if statement? if i = 5 then if (i == 5) if i == 5 if i = 533. What is the process of providing a single interface to represent the properties and behaviors of unrelated classes called? Polymorphism Inheritance Encapsulation34. What is the correct way to declare a variable of type double in Java? double x; Double x; double x = 0.0; None of the above35. Which CSS property is used to change the style of the cursor when hovering over an element? cursor-style mouse-cursor cursor pointer36. 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.37. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE38. Which Java EE technology is used for managing database connections and executing SQL queries? JPA JMS JDBC EJB39. Which CSS property is used to control the visibility of an element? show visible display visibility40. Which of the following is not a primitive data type in Java? int float string char41. Which JSTL tag is used to conditionally include content in JSP?42. What does the break statement do in Java? Exits the switch statement or loop Skips the current iteration of the loop Terminates the program None of the above43. 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.44. 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.45. 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.46. Which tag is used to create a hyperlink with a specific target in HTML? All of the above47. How do you write a conditional statement in JavaScript? if i = 5 then if (i == 5) if i == 5 if i = 548. Which of the following methods is used to read data from a file in Java? read() readLine() readAllLines() All of the above49. 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 Overriding50. 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 above