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 CSS property is used to control the appearance of an element when it is being hovered over? hover mouse-hover hover-effect :hover2. What is the result of the following code snippet?int x = 10;int y = (x == 10) ? 20 : 30;System.out.println(y); 20 30 10 Compilation Error3. 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.4. 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.5. Which of the following is not a JavaScript data type? Number String Character Boolean6. What is Hibernate? A programming language An open-source Java persistence framework A database management system An application server7. 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.8. 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.9. What is the purpose of the "throws" 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 define exception classes.10. Which of the following is an unchecked exception in Java? IOException ClassNotFoundException NullPointerException FileNotFoundException11. Which class in Java is used to represent a file or directory path name? File Path FilePath Directory12. Which of the following is not a valid Java identifier? _variableName 123variable $variableName variableName12313. Which of the following is NOT a valid collection mapping type in Hibernate? @OneToMany @ManyToMany @ManyToOne @ElementCollection14. How do you write a while loop in JavaScript? while i = 1 to 5 while (i <= 5) while (i = 1; i <= 5) while (i++)15. Which CSS property is used to add space between the border and content of an element? margin padding space border-space16. Which JSP action is used to include the content of another resource in a JSP page?17. Which tag is used to create a hyperlink in HTML?18. 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 classes19. Which annotation is used to mark a class as a Spring bean? @Bean @Component @Service @Repository20. What is the purpose of the Java EE Security API? To provide encryption for data stored in databases. To secure communication between client and server in web applications. To manage user authentication and authorization in Java EE applications. To prevent SQL injection attacks in Java applications.21. Which of the following is not a valid method signature in Java? void methodName(int x, String y) int methodName(float x) void methodName(int[] arr) int[] methodName(int x, int y)22. 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.23. Which of the following blocks is used to handle exceptions in Java? try catch finally All of the above24. Which tag is used to define the title of a document in HTML?25. 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 Overriding26. Which tag is used to create a dropdown list in HTML?27. In JSP, which method is used to send data to the server without reloading the entire page? GET POST PUT AJAX28. Which of the following is true about 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 above29. Which attribute is used to specify the width of a table in HTML? width size length style30. Which CSS property is used to set the position of an element? position place locate set-position31. What is the process of hiding the internal implementation details of a class and only exposing the necessary features called? Inheritance Polymorphism Encapsulation Abstraction32. 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.33. Which keyword is used to define a constant in Java? const final static Constant is not a keyword in Java34. What is the purpose of the Statement interface in JDBC? It is used to execute SQL queries It is used to retrieve data from the database It is used to update data in the database All of the above35. Which of the following is NOT a valid Hibernate mapping type? @ManyToOne @OneToOne @ManyToMany @OneToManyToOne36. Which of the following is NOT a valid inheritance mapping strategy in Hibernate? TABLE_PER_CLASS JOINED SINGLE_TABLE MULTI_TABLE37. 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.38. Which method is used to check if a file exists in Java? fileExists() exists() isFileExists() fileIsPresent()39. Which of the following methods of the ResultSetMetaData interface is used to get the number of columns in a ResultSet? getColumnCount() getNumColumns() getColumnNumber() getColumns()40. 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 above41. Which tag is used to create a horizontal rule in HTML?42. 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 643. Which CSS property is used to change the background color of an element? background-color bg-color color-background background44. Which of the following is NOT a valid mapping association in Hibernate? Many-to-many One-to-many One-to-one One-to-all45. 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 above46. What is the purpose of Hibernate's Criteria API? To execute native SQL queries To provide a type-safe way to construct queries To manage database transactions To define the database schema47. Which method is used to create a new file in Java? createNewFile() newFile() makeFile() addFile()48. What does JDBC stand for? Java Database Connection Java Database Connectivity Java Database Control Java Database Command49. Which method of the PreparedStatement interface is used to set a parameter value? setParameter() set() setValue() setXXX()50. Which tag is used to create a textarea in HTML?