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 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.2. How do you write a function called "myFunction" in JavaScript? function myFunction() function = myFunction() myFunction{} function:myFunction()3. Which of the following is NOT a valid Hibernate mapping type? @ManyToOne @OneToOne @ManyToMany @OneToManyToOne4. What does JDBC stand for? Java Database Connection Java Database Connectivity Java Database Control Java Database Command5. 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.6. How do you write a conditional statement in JavaScript? if i = 5 then if (i == 5) if i == 5 if i = 57. 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 Compilation error8. Which method of the Statement interface is used to execute a SQL query? executeQuery() executeUpdate() execute() executeBatch()9. Which of the following is a valid mapping type in Hibernate? @MappedSuperclass @MappedEntity @PersistentClass @EntityMapping10. Which Hibernate annotation is used to define a many-to-many relationship? @ManyToMany @ManyToOne @OneToOne @OneToMany11. 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 above12. Which JSP directive is used to import a Java class into a JSP page?13. 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 114. Which of the following is NOT a valid cascade type in Hibernate? ALL PERSIST DETACH REMOVE15. Which annotation is used to mark a class as a Spring bean? @Bean @Component @Service @Repository16. 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.17. Which of the following is NOT a valid inheritance mapping strategy in Hibernate? TABLE_PER_CLASS JOINED SINGLE_TABLE MULTI_TABLE18. What is the primary benefit of using multithreading in Java? Improved memory management Better utilization of CPU resources Simplified code structure Easier debugging19. Which CSS property is used to set the background repeat behavior of an element? bg-repeat background-repeat repeat image-repeat20. Which CSS property is used to change the font weight of an element? font-weight weight bold font-style21. Which tag is used to create a textarea in HTML?22. What is the return type of the main method in Java? void int String main method does not have a return type23. Which of the following is true about the default value of instance variables in Java? They are initialized to 0. They are initialized to null. They are not initialized by default. It depends on the data type of the variable.24. 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 above25. Which attribute is used to specify the type of input field in HTML? type input field mode26. 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.27. Which of the following is a valid association mapping type in Hibernate? @ManyToOne @OneToOneToOne @OneToManyToOne @ManyToManyToMany28. 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 Overriding29. What happens if an exception is not caught in Java? It is silently ignored. It causes a compilation error. It causes a runtime error. It causes a program to terminate abruptly.30. Which of the following is NOT a core module of the Spring Framework? Spring Core Container Spring AOP (Aspect-Oriented Programming) Spring MVC (Model-View-Controller) Spring Boot31. Which tag is used to define a form in HTML?32. Which of the following blocks is used to handle exceptions in Java? try catch finally All of the above33. Which CSS property is used to add space between the border and content of an element? margin padding space border-space34. What is the process of creating a new class by extending an existing class called? Polymorphism Inheritance Abstraction Encapsulation35. 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.36. Which CSS property is used to change the display behavior of an element? display visible show appearance37. What does JSTL stand for? Java Server Tag Library Java Server Tools Library Java Server Pages Tag Library JavaServer Pages Standard Tag Library38. Which tag is used to create a heading in HTML?39. Which tag is used to create a numbered list in HTML?40. What is the correct JavaScript syntax to change the content of the HTML element with id="demo"? document.getElement("demo").innerHTML = "Hello World!"; document.getElementById("demo").innerHTML = "Hello World!"; document.getElementByName("demo").innerHTML = "Hello World!"; #demo.innerHTML = "Hello World!";41. 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.42. Which of the following is true about 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 above43. 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.44. 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.45. Which keyword is used to handle exceptions in Java? try catch throw All of the above46. Which of the following is true about JSP (JavaServer Pages)? JSP pages are precompiled into servlets before being executed. JSP pages are executed directly by the web server without any intermediate steps. JSP pages are used only for client-side scripting. JSP pages are not suitable for creating dynamic web content.47. What is the correct JavaScript syntax to change the content of the HTML element below?<p id="demo">This is a demonstration.</p> document.getElementByName("p").innerHTML = "Hello World!"; document.getElementById("demo").innerHTML = "Hello World!"; document.getElement("p").innerHTML = "Hello World!"; document.getElement("demo").innerHTML = "Hello World!";48. 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.49. 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 above50. Which of the following methods of the ResultSetMetaData interface is used to get the number of columns in a ResultSet? getColumnCount() getNumColumns() getColumnNumber() getColumns()