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 correct syntax for referring to an external script called "script.js" in HTML?2. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany3. Which of the following is NOT a valid inheritance mapping strategy in Hibernate? TABLE_PER_CLASS JOINED SINGLE_TABLE MULTI_TABLE4. Which CSS property is used to set the position of an element? position place locate set-position5. Which tag is used to create a numbered list in HTML?6. 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.7. Which CSS property is used to set the opacity of an element? transparency opacity visible alpha8. Which of the following statements is true about the File class in Java? It is part of the java.io package. It is used to read and write text files. It is a final class and cannot be extended. It is used to represent a file or directory path name.9. 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 error10. 11. 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.12. Which attribute is used to specify the width of an image in HTML? width w size style13. 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. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {int[] arr = {1, 2, 3, 4, 5};System.out.println(arr[2]);}} 1 2 3 415. Which method is used to create a new file in Java? createNewFile() newFile() makeFile() addFile()16. Which of the following is NOT a valid cascade type in Hibernate? ALL PERSIST DETACH REMOVE17. 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.18. How do you call a function named "myFunction"? myFunction() call function myFunction() call myFunction() function myFunction()19. Which class in Java is used to represent a file or directory path name? File Path FilePath Directory20. 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 above.21. Which operator is used to assign a value to a variable in JavaScript? = == := =>22. 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 623. Which of the following is NOT a valid mapping association in Hibernate? Many-to-many One-to-many One-to-one One-to-all24. 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 field25. Which of the following is true about prepared statements in JDBC? They are used to execute parameterized SQL queries They are faster than regular statements They prevent SQL injection attacks All of the above26. Which module of the Spring Framework is used for transaction management? Spring Core Container Spring AOP Spring Data Spring Transaction27. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {String str1 = "Hello";String str2 = "World";System.out.println(str1 + str2);}} HelloWorld Hello World Hello+World Compilation error28. Which of the following is not a primitive data type in Java? int float string char29. What is the correct way to create 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");30. Which of the following is not a JavaScript data type? Number String Character Boolean31. Which tag is used to create a textarea in HTML?32. What is the primary benefit of using multithreading in Java? Improved memory management Better utilization of CPU resources Simplified code structure Easier debugging33. Which keyword is used to prevent a method from being overridden in a subclass? final static abstract private34. Which tag is used to define a table in HTML?35. What is the concept of binding a method call to the method body called? Polymorphism Inheritance Encapsulation Abstraction36. Which method is used to wait for a thread to finish its execution in Java? join() wait() sleep() yield()37. Which tag is used to create a hyperlink in HTML?38. Which of the following methods is used to commit a transaction in JDBC? commit() execute() update() setAutoCommit()39. Which tag is used to define the footer of a document or section in HTML?40. 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 entity41. 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 error42. 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!";43. What is the result of 10 % 3 in Java? 1 2 33.3 Compilation Error44. 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. 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!";46. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE47. Which CSS property is used to control the stacking order of elements? stack-order z-index order stack48. What is Hibernate? A programming language An open-source Java persistence framework A database management system An application server49. Which tag is used to define a paragraph in HTML?50. What is the correct syntax for including a JSP page inside another JSP page?