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. 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)2. 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 strategy3. Which CSS property is used to set the text alignment of an element? text-align align text-position position4. Which tag is used to create a radio button in HTML?5. Which CSS property is used to add space between the border and content of an element? margin padding space border-space6. Which of the following is NOT a core interface in Hibernate? Session Transaction Criteria Entity Manager7. What is the purpose of 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 above8. Which method is used to wait for a thread to finish its execution in Java? join() wait() sleep() yield()9. Which tag is used to create a hyperlink in HTML?10. 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.11. 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 above12. Which keyword is used to define a constant in Java? const final static Constant is not a keyword in Java13. Which tag is used to define a form in HTML?14. 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!";15. Which of the following is true about static methods in Java? They can access non-static members of the class. They can be overridden in the subclass They belong to the class rather than the object of the class. They cannot be called without creating an instance of the class.16. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany17. Which CSS property is used to change the font size of an element? font-size size text-size font-style18. Which Java EE technology is used for managing persistence in enterprise applications? JMS JPA JDBC JSP19. Which JSP element is used to declare a custom tag library?20. What is the output of the following code snippet? true false Compilation Error Runtime Error21. What is the purpose of Hibernate's Session interface? To represent a connection to the database To manage transactions To execute queries To represent a unit of work with the database22. Which of the following methods is used to commit a transaction in JDBC? commit() execute() update() setAutoCommit()23. What is the correct JavaScript syntax for creating a function called "myFunction"? function = myFunction() function myFunction() function:myFunction() function myFunction{}24. 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 entity25. What is the output of the following code snippet? 20 30 10 Compilation Error26. 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 field27. 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.28. Which tag is used to define the title of a document in HTML?29. Which of the following is NOT a valid Java EE component type? EJB JSP Servlet JPA30. What is the purpose of the FileReader 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.31. What is the difference between a process and a thread in Java? A process is a lightweight unit of execution, while a thread is a heavyweight unit of execution. A process has its own memory space, while threads share the same memory space. A process can run on multiple CPUs, while a thread can only run on a single CPU. A process is managed by the operating system, while threads are managed by the Java Virtual Machine (JVM).32. Which of the following is true about JSP (JavaServer Pages)? JSP pages are precompiled into servlets before being executed. JSP pages are executed directly by the web server without any intermediate steps. JSP pages are used only for client-side scripting. JSP pages are not suitable for creating dynamic web content.33. Which tag is used to create a checkbox in HTML?34. 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.35. 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 above36. Which method of the DriverManager class is used to establish a connection to a database? getConnection() openConnection() connect() createConnection()37. Which CSS property is used to control the spacing between lines of text? line-height text-spacing line-spacing spacing38. 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 Overriding39. Which JSP action is used to include the content of another resource in a JSP page?40. Which of the following is NOT a valid inheritance mapping strategy in Hibernate? TABLE_PER_CLASS JOINED SINGLE_TABLE MULTI_TABLE41. 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.42. Which tag is used to create a dropdown list in HTML?43. Which of the following methods is used to read data from a file in Java? read() readLine() readAllLines() All of the above44. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {int x = 5;x += 3;System.out.println(x);}} 5 8 3 Compilation error45. 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.46. Which CSS property is used to control the visibility of an element? show visible display visibility47. 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.48. 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 above49. Which CSS property is used to control the floating of an element? float align position flow50. What does JSTL stand for? Java Server Tag Library Java Server Tools Library Java Server Pages Tag Library JavaServer Pages Standard Tag Library