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. 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 62. Which CSS property is used to set the text alignment of an element? text-align align text-position position3. Which CSS property is used to create a transition effect for an element? transition animate effect transform4. What is the correct JavaScript syntax for writing an if statement? if i = 5 then if i == 5 if (i == 5) if (i = 5)5. Which annotation is used to enable automatic component scanning in Spring? @ComponentScan @Autowired @Configuration @Component6. Which of the following is not a JavaScript data type? Number String Character Boolean7. Which tag is used to create a textarea in HTML?8. Which CSS property is used to control the spacing between lines of text? line-height text-spacing line-spacing spacing9. Which of the following is not a valid Java identifier? _variableName 123variable $variableName variableName12310. Which CSS property is used to skew an element? skew transform skewing tilt11. 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.12. Which of the following is not a primitive data type in Java? int float string char13. What is the process of providing a single interface to represent the properties and behaviors of unrelated classes called? Polymorphism Inheritance Encapsulation Abstraction14. 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 entity15. What is the concept of binding a method call to the method body called? Polymorphism Inheritance Encapsulation Abstraction16. Which JSP directive is used to import a Java class into a JSP page?17. Which interface is used to connect to a database using JDBC? Connection Statement ResultSet DriverManager18. How do you declare a JavaScript array? var colors = ["red", "green", "blue"]; var colors = "red, green, blue"; var colors = { "red", "green", "blue" }; var colors = new Array("red", "green", "blue");19. Which CSS property is used to control the stacking order of elements? stack-order z-index order stack20. Which of the following is NOT a valid scope for a Spring bean? singleton prototype request global21. 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 Overriding22. 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.23. Which tag is used to create a numbered list in HTML?24. Which JSP action is used to include the content of another resource in a JSP page?25. What is Hibernate? A programming language An open-source Java persistence framework A database management system An application server26. Which attribute is used to specify the alternative text for an image in HTML? alt src title description27. Which Java EE technology is used for managing persistence in enterprise applications? JMS JPA JDBC JSP28. What is JavaScript? A server-side scripting language A client-side scripting language A programming language for creating databases A markup language29. What is the superclass of all exception classes in Java? Throwable Exception Error RuntimeException30. 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 classes31. What is the correct JavaScript syntax to create a cookie? document.cookie = "username=John Doe"; createCookie("username", "John Doe"); setCookie("username", "John Doe"); cookie("username", "John Doe");32. Which CSS property is used to set the background color of an element? bg-color background-color color bg33. Which tag is used to create a heading in HTML?34. What is the purpose of Hibernate's @Embeddable annotation? To define a component class that can be embedded within an entity To define an embedded query To define a composite primary key To define a custom fetch strategy35. 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.36. Which CSS property is used to create a shadow effect around an element? shadow text-shadow box-shadow element-shadow37. Which method is used to start a new thread in Java? run() start() execute() begin()38. Which JSP element is used to declare a custom tag library?39. Which tag is used to create a line break in HTML?40. 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.41. How do you write "Hello World" in an alert box using JavaScript? alertBox("Hello World"); msg("Hello World"); alert("Hello World"); msgBox("Hello World");42. What is the purpose of the notify() method in Java? It wakes up all threads that are waiting on the object's monitor. It wakes up a single thread that is waiting on the object's monitor. It puts the current thread to sleep. It terminates the current thread.43. 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.44. 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 pattern45. 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.46. Which of the following is a valid identifier in Java? 123identifier _identifier $identifier All of the above47. Which class in Java is used to represent a file or directory path name? File Path FilePath Directory48. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany49. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE50. Which annotation is used to define the primary key in Hibernate? @Id @PrimaryKey @Key @Primary