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 does the super keyword refer to in Java? It refers to the current instance of the class. It refers to the parent class instance. It refers to the current method. It refers to the current class.2. Which CSS property is used to change the background color of an element? background-color bg-color color-background background3. 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 64. 5. 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.6. 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++)7. What is the output of the following code snippet? 20 30 10 Compilation Error8. 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.9. Which CSS property is used to change the display behavior of an element? display visible show appearance10. Which of the following steps is not required to establish a connection to a database using JDBC? Load the JDBC driver Register the JDBC driver Create a database instance Open a connection to the database11. Which tag is used to define a paragraph in HTML?12. Which of the following is not a principle of Object-Oriented Programming (OOP)? Encapsulation Inheritance Abstraction Recursion13. 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 Error14. Which attribute is used to specify the width of an image in HTML? width w size style15. Which CSS property is used to rotate an element? rotate transform rotation rotate-element16. Which method is used to create a new file in Java? createNewFile() newFile() makeFile() addFile()17. 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 classes18. Which JSTL tag is used to import content from another resource in JSP?19. What is the purpose of the FileReader 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.20. Which of the following is not a JavaScript data type? Number String Character Boolean21. 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.22. Which CSS property is used to set the background image of an element? background-image image bg-image image-source23. Which CSS property is used to control the spacing between lines of text? line-height text-spacing line-spacing spacing24. Which tag is used to create a heading in HTML?25. Which event occurs when the user clicks on an HTML element? onclick onmouseover onmouseclick onmouseclick26. 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 schema27. Which JSP action is used to forward the request from one JSP page to another?28. 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 above29. Which tag is used to create a button in HTML?30. Which tag is used to create a textarea in HTML?31. Which tag is used to create a numbered list in HTML?32. Which of the following is NOT a valid Hibernate mapping type? @ManyToOne @OneToOne @ManyToMany @OneToManyToOne33. Which tag is used to define the header of a table in HTML?34. 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.35. Which attribute is used to specify the width of a table in HTML? width size length style36. 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!";37. Which annotation is used to mark a class as a Spring bean? @Bean @Component @Service @Repository38. What is the result of 10 % 3 in Java? 1 2 33.3 Compilation Error39. What is the result of the following expression: 5 + "5"? 10 "55" 55 Syntax Error40. Which interface is used to connect to a database using JDBC? Connection Statement ResultSet DriverManager41. Which JSTL tag is used to conditionally include content in JSP?42. What is JavaScript? A server-side scripting language A client-side scripting language A programming language for creating databases A markup language43. Which keyword is used to prevent a method from being overridden in a subclass? final static abstract private44. Which of the following is not a valid Java identifier? _variableName 123variable $variableName variableName12345. How do you write a conditional statement in JavaScript? if i = 5 then if (i == 5) if i == 5 if i = 546. How do you declare a JavaScript function named "myFunction"? function = myFunction()function = myFunction() function myFunction() function:myFunction() function myFunction{}47. 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.48. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany49. Which CSS property is used to create a transition effect for an element? transition animate effect transform50. Which annotation is used to enable automatic component scanning in Spring? @ComponentScan @Autowired @Configuration @Component