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 scale an element? scale transform resize zoom2. What is the result of the following expression: 5 + "5"? 10 "55" 55 Syntax Error3. 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 Error4. What will the following code output?var x = 10;var y = "5";var z = x + y;console.log(z); 15 "105" "10" "5"5. What is the primary benefit of using interfaces in Java? They allow for multiple inheritance They allow for code reuse. They allow for dynamic method dispatch. They allow for method overloading.6. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany7. Which of the following is a valid association mapping type in Hibernate? @ManyToOne @OneToOneToOne @OneToManyToOne @ManyToManyToMany8. What is the correct way to declare a method that does not return any value in Java? void methodName() methodName() : void int methodName() None of the above9. Which of the following best describes inheritance in Java? It is a mechanism where a new class can acquire the properties and behaviors of an existing class. It is a way to achieve data hiding. It is a way to define multiple methods with the same name but different parameters. It is a way to create objects based on a template.10. 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 Overriding11. Which Java EE component is responsible for managing transactions in a distributed environment? EJB (Enterprise JavaBeans) Servlet JSP (JavaServer Pages) JMS (Java Message Service)12. 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 error13. 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 associations14. 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.15. What is the correct JavaScript syntax for an if statement? if i = 5 then if (i == 5) if i == 5 if i = 516. Which CSS property is used to change the text color of an element? text-color color font-color text-style17. 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 above18. What is the process of hiding the internal implementation details of a class and only exposing the necessary features called? Inheritance Polymorphism Encapsulation Abstraction19. Which tag is used to create a horizontal rule in HTML?20. Which of the following blocks is used to handle exceptions in Java? try catch finally All of the above21. What is the process of providing a single interface to represent the properties and behaviors of unrelated classes called? Polymorphism Inheritance Encapsulation Abstraction22. 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.23. 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.24. 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 above25. 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 above26. Which tag is used to create a radio button in HTML?27. What is the primary benefit of using multithreading in Java? Improved memory management Better utilization of CPU resources Simplified code structure Easier debugging28. 29. 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 above30. 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.31. Which of the following is true about 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.32. 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. What is the purpose of the synchronized keyword in Java? It is used to define a method that cannot be overridden. It is used to prevent a method from being accessed by multiple threads simultaneously. It is used to define a method that can be accessed by multiple threads simultaneously. It is used to define a method that can only be accessed by a single thread.34. 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 635. 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 schema36. 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 pattern37. Which Java EE technology is used for managing and invoking remote objects in a distributed application? JDBC RMI JPA JMS38. Which tag is used to create a numbered list in HTML?39. 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.40. What is the return type of the main method in Java? void int String main method does not have a return type41. 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.42. 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 above43. Which event occurs when the user clicks on an HTML element? onclick onmouseover onmouseclick onmouseclick44. How do you write a while loop in JavaScript? while i = 1 to 5 while (i <= 5) while (i = 1; i <= 5) while (i++)45. Which of the following is true about deadlock in multithreading? It occurs when a thread is waiting indefinitely for a resource held by another thread. It occurs when two or more threads are waiting for each other to release resources, resulting in a deadlock. It can be avoided by using synchronization. All of the above46. Which of the following is not a JavaScript data type? Number String Character Boolean47. Which of the following statements is true about the "finally" block in Java? It is always executed, whether an exception is thrown or not. It is optional and may be omitted. It is used to catch exceptions. It is used to re-throw exceptions.48. 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 relationship49. 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 entity50. Which tag is used to create an ordered list in HTML?