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 not a valid Java identifier? _variableName 123variable $variableName variableName1232. 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 error3. Which tag is used to define the header of a table in HTML?4. Which CSS property is used to create a shadow effect around an element? shadow text-shadow box-shadow element-shadow5. 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.6. 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.7. Which of the following is not a primitive data type in Java? int float string char8. Which tag is used to define a table in HTML?9. Which JSTL tag is used to iterate over a collection in JSP?10. Which Java EE component is responsible for managing transactions in a distributed environment? EJB (Enterprise JavaBeans) Servlet JSP (JavaServer Pages) JMS (Java Message Service)11. What does JDBC stand for? Java Database Connection Java Database Connectivity Java Database Control Java Database Command12. 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.13. Which CSS property is used to set the height of an element? height size length height-size14. Which method of the CallableStatement interface is used to register OUT parameters for a stored procedure? registerParameter() registerOutParameter() setOutParameter() setParameter()15. Which of the following methods is used to commit a transaction in JDBC? commit() execute() update() setAutoCommit()16. How do you add a comment in JavaScript? //This is a comment /This is a comment/ 'This is a comment'17. Which tag is used to define the footer of a document or section in HTML?18. Which of the following is NOT a valid Hibernate mapping type? @ManyToOne @OneToOne @ManyToMany @OneToManyToOne19. Which CSS property is used to change the background color of an element? background-color bg-color color-background background20. 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 above21. Which of the following best describes inheritance in Java? It is a mechanism where a new class can acquire the properties and behaviors of an existing class. It is a way to achieve data hiding. It is a way to define multiple methods with the same name but different parameters. It is a way to create objects based on a template.22. 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 classes23. Which Hibernate annotation is used to define a one-to-many relationship? @OneToMany @ManyToOne @OneToOne @ManyToMany24. Which of the following is true about 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.25. Which attribute is used to specify the alignment of content in a table cell in HTML? align position center valign26. What is the result of the following expression: 5 + "5"? 10 "55" 55 Syntax Error27. 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 database28. Which of the following is NOT a valid Hibernate query language? HQL (Hibernate Query Language) SQL (Structured Query Language) Criteria API QBE (Query By Example)29. Which tag is used to create a radio button in HTML?30. 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)31. Which CSS property is used to set the text alignment of an element? text-align align text-position position32. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE33. What is the purpose of the sleep() method in Java? It pauses the current thread for a specified amount of time. It terminates the current thread. It waits for another thread to finish. It restarts the current thread.34. Which CSS property is used to set the width of an element? width size length width-size35. Which method of the DriverManager class is used to establish a connection to a database? getConnection() openConnection() connect() createConnection()36. What is the return type of the main method in Java? void int String main method does not have a return type37. 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.38. What is the correct JavaScript syntax for an if statement? if i = 5 then if (i == 5) if i == 5 if i = 539. What is the purpose of the super keyword 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.40. Which of the following is true about Java EE (Enterprise Edition)? It is a programming language used for developing web applications. It is a set of specifications, APIs, and runtime environments that extend the Java SE platform for large-scale applications. It is primarily used for developing standalone desktop applications. It is a version of Java designed for mobile application development.41. What is the purpose of the DatabaseMetaData interface in JDBC? It is used to retrieve metadata about a database It is used to retrieve metadata about a ResultSet object It is used to retrieve metadata about a Statement object None of the above42. What is the output of the following code snippet?String str1 = "Hello";String str2 = "Hello";System.out.println(str1 == str2); true false Compilation Error Runtime Error43. Which tag is used to create a hyperlink with a specific target in HTML? All of the above44. Which of the following is NOT a valid collection mapping type in Hibernate? @OneToMany @ManyToMany @ManyToOne @ElementCollection45. What is the correct JavaScript syntax to write "Hello World" in an alert box? msgBox("Hello World"); alertBox("Hello World"); alert("Hello World"); msg("Hello World");46. How do you call a function named "myFunction"? myFunction() call function myFunction() call myFunction() function myFunction()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. Which of the following is a valid association mapping type in Hibernate? @ManyToOne @OneToOneToOne @OneToManyToOne @ManyToManyToMany49. Which of the following is a valid identifier in Java? 123identifier _identifier $identifier All of the above50. 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 6