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 is the process of creating a new class by extending an existing class called? Polymorphism Inheritance Abstraction Encapsulation2. Which tag is used to create an ordered list in HTML?3. 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.4. 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 entity5. Which JSTL tag is used to iterate over a collection in JSP?6. Which of the following methods of the ResultSet interface is used to move the cursor to the next row? next() moveToNext() moveNext() nextRow()7. Which CSS property is used to set the background color of an element? bg-color background-color color bg8. Which method is used to create a new file in Java? createNewFile() newFile() makeFile() addFile()9. How do you round the number 7.25 to the nearest integer in JavaScript? Math.round(7.25) round(7.25) Math.rnd(7.25) rnd(7.25)10. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany11. 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");12. Which Java EE technology is used for asynchronous messaging? JMS JPA EJB JDBC13. 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 strategy14. Which CSS property is used to control the visibility of an element? show visible display visibility15. 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 above16. Which CSS property is used to set the opacity of an element? transparency opacity visible alpha17. 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 error18. 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.19. Which JSP directive is used to specify the error page for an entire application?20. What is the purpose of Hibernate's @Temporal annotation? To define the data type of a temporal field To specify the mapping of a temporal field To define the fetch type of a temporal field To define the cascade type of a temporal field21. 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 connections22. Which tag is used to create a horizontal rule in HTML?23. Which Java EE technology is used for managing database connections and executing SQL queries? JPA JMS JDBC EJB24. Which attribute is used to specify the background color of an element in HTML? bgcolor color background style25. Which JSP action is used to forward the request from one JSP page to another?26. Which CSS property is used to set the background position of an element? position background-position bg-position image-position27. 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 above28. 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.29. What is the purpose of 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 above30. Which CSS property is used to create a transition effect for an element? transition animate effect transform31. 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.32. Which method is used to check if a file exists in Java? fileExists() exists() isFileExists() fileIsPresent()33. How do you call a function named "myFunction"? call myFunction() call function myFunction() myFunction() function myFunction()34. Which CSS property is used to scale an element? scale transform resize zoom35. 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.36. How do you write a for loop in JavaScript? for (i = 0; i <= 5) for (i = 0; i <= 5; i++) for i = 1 to 5 for (i <= 5; i++)37. 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.38. Which implicit object represents the request object in a JSP page? request response session application39. 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 above40. Which event occurs when the user clicks on an HTML element? onclick onmouseover onmouseclick onmouseclick41. 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 schema42. Which of the following is NOT a valid Hibernate mapping type? @ManyToOne @OneToOne @ManyToMany @OneToManyToOne43. 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.44. 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.45. In JSP, which tag is used to declare a custom tag?46. 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 above47. What is the purpose of the "protected" access modifier in Java? It allows access only within the same package. It allows access only within the same class. It allows access within the same package and subclasses. It allows access from anywhere in the program.48. Which of the following is not a valid Java identifier? _variableName 123variable $variableName variableName12349. 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.50. Which Java EE technology is used for developing web applications? EJB JSP JMS JPA