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 NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE2. Which of the following is true about the BufferedWriter class in Java? It is used to read from a file. It is used to write to a file. It is used to buffer input from a file. It is used to buffer output to a file.3. Which of the following is not a valid Java identifier? _variableName 123variable $variableName variableName1234. Which Java EE technology is used for managing database connections and executing SQL queries? JPA JMS JDBC EJB5. Which of the following is not a primitive data type in Java? int float string char6. Which JSP action is used to include the content of another resource in a JSP page?7. Which tag is used to define the footer of a document or section in HTML?8. 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.9. 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.10. Which tag is used to create a hyperlink in HTML?11. How do you call a function named "myFunction"? call myFunction() call function myFunction() myFunction() function myFunction()12. Which attribute is used to specify the type of input field in HTML? type input field mode13. Which Java EE technology is used for managing and invoking remote objects in a distributed application? JDBC RMI JPA JMS14. Which tag is used to create a radio button in HTML?15. Which tag is used to define a table in HTML?16. 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 relationship17. 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.18. What is the superclass of all exception classes in Java? Throwable Exception Error RuntimeException19. Which of the following is true about the wait() method in Java? It is used to wait for a specific amount of time. It is used to release the lock on an object's monitor. It is used to wait indefinitely until another thread notifies it. It is used to terminate the current thread.20. Which Hibernate feature is used to improve performance by reducing the number of SQL queries executed? Batch processing Lazy loading Fetching strategies Caching21. Which tag is used to create a button in HTML?22. Which of the following is NOT a valid collection mapping type in Hibernate? @OneToMany @ManyToMany @ManyToOne @ElementCollection23. 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);}} 3 7 2 Compilation error24. How do you write a while loop in JavaScript? while i = 1 to 5 while (i <= 5) while (i = 1; i <= 5) while (i++)25. How do you write a function called "myFunction" in JavaScript? function myFunction() function = myFunction() myFunction{} function:myFunction()26. 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 127. Which CSS property is used to set the background position of an element? position background-position bg-position image-position28. Which method of the PreparedStatement interface is used to set a parameter value? setParameter() set() setValue() setXXX()29. 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.30. 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.31. Which of the following blocks is used to handle exceptions in Java? try catch finally All of the above32. How do you find the number with the highest value of x and y in JavaScript? Math.max(x, y) Math.ceil(x, y) Math.floor(x, y) Math.highest(x, y)33. What is the purpose of Hibernate's @Transient annotation? To mark a property as transient, which means it will not be persisted To specify the fetch type of a property To define a custom fetch strategy for a property To specify the cascade type for a property34. What is the primary benefit of using multithreading in Java? Improved memory management Better utilization of CPU resources Simplified code structure Easier debugging35. 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.36. Which tag is used to create a hyperlink that opens in a new window or tab in HTML?37. Which method of the Statement interface is used to execute a SQL query? executeQuery() executeUpdate() execute() executeBatch()38. 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.39. Which of the following is NOT a valid scope for a Spring bean? singleton prototype request global40. Which of the following is not a principle of Object-Oriented Programming (OOP)? Encapsulation Inheritance Abstraction Recursion41. Which CSS property is used to control the floating of an element? float align position flow42. Which tag is used to create a dropdown list in HTML?43. What is the correct syntax for referring to an external script called "script.js" in HTML?44. Which method of the CallableStatement interface is used to register OUT parameters for a stored procedure? registerParameter() registerOutParameter() setOutParameter() setParameter()45. 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 pattern46. What is the output of the following code snippet?int x = 5;System.out.println(x++); 5 6 Compilation Error Runtime Error47. Which of the following is true about the "super" keyword in Java? It is used to call the superclass constructor. It is used to access the superclass's methods and fields. It is used to prevent a class from being inherited. It is used to create an instance of a class.48. 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.substring(7));}} Hello World World! Compilation error49. 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.50. Which of the following methods is used to read data from a file in Java? read() readLine() readAllLines() All of the above