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. 2. What is the correct JavaScript syntax to change the content of the HTML element below?<p id="demo">This is a demonstration.</p> document.getElementByName("p").innerHTML = "Hello World!"; document.getElementById("demo").innerHTML = "Hello World!"; document.getElement("p").innerHTML = "Hello World!"; document.getElement("demo").innerHTML = "Hello World!";3. 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 above4. In JSP, which method is used to send data to the server without reloading the entire page? GET POST PUT AJAX5. What is the purpose of the FileWriter 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.6. Which attribute is used to specify the width of an image in HTML? width w size style7. Which tag is used to create an ordered list in HTML?8. What is the purpose of Hibernate's @Temporal annotation? To define the data type of a temporal field To specify the mapping of a temporal field To define the fetch type of a temporal field To define the cascade type of a temporal field9. Which Java EE component is used for processing requests in a web application? Servlet EJB JSP JMS10. 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 relationship11. 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 CSS property is used to change the display behavior of an element? display visible show appearance13. 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 Error14. 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 above.15. How do you write "Hello World" in an alert box using JavaScript? alertBox("Hello World"); msg("Hello World"); alert("Hello World"); msgBox("Hello World");16. Which CSS property is used to set the background repeat behavior of an element? bg-repeat background-repeat repeat image-repeat17. What is the primary role of the Spring Core Container module? Handling web requests and responses Managing application context and dependency injection Providing support for aspect-oriented programming Implementing the MVC design pattern18. Which keyword is used to prevent a method from being overridden in a subclass? final static abstract private19. 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 classes20. 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");21. Which of the following is NOT a core interface in Hibernate? Session Transaction Criteria Entity Manager22. 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.indexOf("World"));}} -1 0 7 623. 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.24. Which JSP element is used to declare a custom tag library?25. Which tag is used to create a textarea in HTML?26. Which method of the ResultSet interface is used to retrieve data from a specific column? getData() retrieveData() getObject() getColumn()27. 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.28. Which CSS property is used to control the stacking order of elements? stack-order z-index order stack29. Which of the following is NOT a valid mapping association in Hibernate? Many-to-many One-to-many One-to-one One-to-all30. 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.31. What is the output of the following code snippet? 5 6 Compilation Error Runtime Error32. 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.33. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany34. What is the purpose of the PreparedStatement interface in JDBC? It is used to execute parameterized SQL queries It is used to retrieve data from a database It is used to update data in a database None of the above35. 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 associations36. Which tag is used to define a form in HTML?37. What does JSTL stand for? Java Server Tag Library Java Server Tools Library Java Server Pages Tag Library JavaServer Pages Standard Tag Library38. What is the correct syntax for including a JSP page inside another JSP page?39. Which attribute is used to specify the source of an image in HTML? src source image file40. What is the correct JavaScript syntax to create a cookie? document.cookie = "username=John Doe"; createCookie("username", "John Doe"); setCookie("username", "John Doe"); cookie("username", "John Doe");41. How do you write a function called "myFunction" in JavaScript? function myFunction() function = myFunction() myFunction{} function:myFunction()42. 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.43. 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.44. Which CSS property is used to change the background color of an element? background-color bg-color color-background background45. What is the purpose of Hibernate's Criteria API? To execute native SQL queries provide a type-safe way to construct queries To manage database transactions To define the database schema46. What is the correct JavaScript syntax for creating a function called "myFunction"? function = myFunction() function myFunction() function:myFunction() function myFunction{}47. 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.48. Which tag is used to define the footer of a document or section in HTML?49. 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 error50. 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 strategy