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 is an unchecked exception in Java? IOException ClassNotFoundException NullPointerException FileNotFoundException2. Which method of the DriverManager class is used to establish a connection to a database? getConnection() openConnection() connect() createConnection()3. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE4. What is the superclass of all exception classes in Java? Throwable Exception Error RuntimeException5. Which CSS property is used to control the visibility of an element? show visible display visibility6. What is the output of the following code?var x = 10;var y = 5;var z = x + y;console.log(z); 15 "15" "10 + 5" Syntax Error7. 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.8. What is the process of providing a single interface to represent the properties and behaviors of unrelated classes called? Polymorphism Inheritance Encapsulation9. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany10. Which of the following methods of the ResultSet interface is used to move the cursor to the next row? next() moveToNext() moveNext() nextRow()11. What is the output of the following code snippet?int x = 5;System.out.println(x++); 5 6 Compilation Error Runtime Error12. Which annotation is used to mark a class as a Spring bean? @Bean @Component @Service @Repository13. 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.14. 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 pattern15. Which CSS property is used to set the text alignment of an element? text-align align text-position position16. Which of the following is not a primitive data type in Java? int float string char17. What is the correct syntax for referring to an external script called "script.js" in HTML?18. What will the following code output?var x = 10;var y = "5";var z = x + y;console.log(z); 15 "105" "10" "5"19. Which of the following statements is true about the File class in Java? It is part of the java.io package. It is used to read and write text files. It is a final class and cannot be extended. It is used to represent a file or directory path name.20. Which tag is used to create a button in HTML?21. How do you add a comment in JavaScript? //This is a comment /This is a comment/ 'This is a comment'22. What is the result of the following expression: 5 + "5"? 10 "55" 55 Syntax Error23. 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.24. Which method of the PreparedStatement interface is used to set a parameter value? setParameter() set() setValue() setXXX()25. Which of the following is NOT a valid mapping association in Hibernate? Many-to-many One-to-many One-to-one One-to-all26. What is the purpose of the CallableStatement interface in JDBC? It is used to execute stored procedures It is used to execute parameterized SQL queries It is used to retrieve data from a database None of the above27. Which CSS property is used to change the display behavior of an element? display visible show appearance28. Which interface is used to connect to a database using JDBC? Connection Statement ResultSet DriverManager29. What is the purpose of the ResultSet interface in JDBC? It is used to retrieve data from a database after executing a query It is used to update data in a database It is used to establish a connection to a database None of the above30. Which tag is used to create a radio button in HTML?31. Which JSP directive is used to import a Java class into a JSP page?32. What is the correct JavaScript syntax for creating a function called "myFunction"? function = myFunction() function myFunction() function:myFunction() function myFunction{}33. Which CSS property is used to change the background color of an element? background-color bg-color color-background background34. Which CSS property is used to set the width of an element? width size length width-size35. Which CSS property is used to control the stacking order of elements? stack-order z-index order stack36. 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 637. 38. 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 above39. 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 database40. 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 Overriding41. Which JSTL tag is used to iterate over a collection in JSP?42. How do you call a function named "myFunction"? call myFunction() call function myFunction() myFunction() function myFunction()43. Which of the following methods is used to read data from a file in Java? read() readLine() readAllLines() All of the above44. Which method of the Statement interface is used to execute a SQL query? executeQuery() executeUpdate() execute() executeBatch()45. Which CSS property is used to control the appearance of an element when it is being hovered over? hover mouse-hover hover-effect :hover46. Which JSP element is used to declare a custom tag library?47. Which JSP directive is used to specify the error page for an entire application?48. What is the return type of the main method in Java? void int String main method does not have a return type49. Which CSS property is used to change the text color of an element? text-color color font-color text-style50. Which of the following is not a valid Java identifier? _variableName 123variable $variableName variableName123