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 a valid mapping type in Hibernate for representing an entity's state? @State @Entity @Stateful @Stateless2. Which CSS property is used to set the background color of an element? bg-color background-color color bg3. 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.4. 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 schema5. What does JDBC stand for? Java Database Connection Java Database Connectivity Java Database Control Java Database Command6. Which of the following is NOT a core interface in Hibernate? Session Transaction Criteria Entity Manager7. Which attribute is used to specify the alternative text for an image in HTML? alt src title description8. Which of the following best describes a thread in Java? A lightweight process that shares the same memory space with other threads in the same process. A separate process that has its own memory space. A mechanism for asynchronous programming in Java. A way to handle exceptions in Java.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 CSS property is used to control the appearance of an element when it is being clicked? click mouse-click :active active11. In Hibernate, what is the role of the SessionFactory? It manages Hibernate sessions It represents the database schema It is used to create database connections It defines the mapping between Java classes and database tables12. Which CSS property is used to rotate an element? rotate transform rotation rotate-element13. Which of the following is NOT a valid scope for a Spring bean? singleton prototype request global14. Which tag is used to create a hyperlink that opens in a new window or tab in HTML?15. 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 database16. What is the result of the following expression: 5 + "5"? 10 "55" 55 Syntax Error17. Which of the following is true about constructors in Java? They can be inherited. They can be overloaded They can be overridden. They can be private.18. 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 associations19. What is the output of the following code snippet?int x = 5;System.out.println(x++); 5 6 Compilation Error Runtime Error20. Which tag is used to create a button in HTML?21. 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 Error22. How do you write a conditional statement in JavaScript? if i = 5 then if (i == 5) if i == 5 if i = 523. Which CSS property is used to create a shadow effect around an element? shadow text-shadow box-shadow element-shadow24. What is the purpose of Hibernate's Second Level Cache? To cache query results To cache entity instances To cache database schema To cache database connections25. Which CSS property is used to set the background image of an element? background-image image bg-image image-source26. In JSP, which method is used to send data to the server without reloading the entire page? GET POST PUT AJAX27. 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.28. Which of the following methods is used to commit a transaction in JDBC? commit() execute() update() setAutoCommit()29. Which Java EE technology is used for managing and invoking remote objects in a distributed application? JDBC RMI JPA JMS30. Which CSS property is used to set the height of an element? height size length height-size31. Which method of the CallableStatement interface is used to register OUT parameters for a stored procedure? registerParameter() registerOutParameter() setOutParameter() setParameter()32. 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.33. What is the process of hiding the internal implementation details of a class and only exposing the necessary features called? Inheritance Polymorphism Encapsulation Abstraction34. 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 schema35. 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 error36. Which CSS property is used to change the display behavior of an element? display visible show appearance37. 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 classes38. What is the primary benefit of using multithreading in Java? Improved memory management Better utilization of CPU resources Simplified code structure Easier debugging39. Which of the following blocks is used to handle exceptions in Java? try catch finally All of the above40. Which JSTL tag is used to import content from another resource in JSP?41. 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 error42. Which of the following methods of the ResultSet interface is used to move the cursor to the next row? next() moveToNext() moveNext() nextRow()43. Which of the following is NOT a valid Hibernate query language? HQL (Hibernate Query Language) SQL (Structured Query Language) Criteria API QBE (Query By Example)44. Which operator is used to assign a value to a variable in JavaScript? = == := =>45. Which CSS property is used to control the floating of an element? float align position flow46. 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)47. Which CSS property is used to control the stacking order of elements? stack-order z-index order stack48. 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.49. What is the process of providing a single interface to represent the properties and behaviors of unrelated classes called? Polymorphism Inheritance Encapsulation Abstraction50. Which of the following is true about 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.