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 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 above2. Which attribute is used to specify the width of a table in HTML? width size length style3. Which method is used to create a new file in Java? createNewFile() newFile() makeFile() addFile()4. Which method of the CallableStatement interface is used to register OUT parameters for a stored procedure? registerParameter() registerOutParameter() setOutParameter() setParameter()5. Which of the following methods of the ResultSetMetaData interface is used to get the number of columns in a ResultSet? getColumnCount() getNumColumns() getColumnNumber() getColumns()6. What is the process of creating a new class by extending an existing class called? Polymorphism Inheritance Abstraction Encapsulation7. Which method is used to wait for a thread to finish its execution in Java? join() wait() sleep() yield()8. Which CSS property is used to rotate an element? rotate transform rotation rotate-element9. Which CSS property is used to change the text color of an element? text-color color font-color text-style10. Which attribute is used to specify the background color of an element in HTML? bgcolor color background style11. Which module of the Spring Framework is used for transaction management? Spring Core Container Spring AOP Spring Data Spring Transaction12. 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.13. What is the correct JavaScript syntax for an if statement? if i = 5 then if (i == 5) if i == 5 if i = 514. Which JSTL tag is used to conditionally include content in JSP?15. Which of the following statements is true about the "finally" block in Java? It is always executed, whether an exception is thrown or not. It is optional and may be omitted. It is used to catch exceptions. It is used to re-throw exceptions.16. What does JDBC stand for? Java Database Connection Java Database Connectivity Java Database Control Java Database Command17. Which Java EE technology is used for asynchronous messaging? JMS JPA EJB JDBC18. Which CSS property is used to scale an element? scale transform resize zoom19. What is the purpose of the PreparedStatement interface in JDBC? It is used to execute parameterized SQL queries It is used to retrieve data from a database It is used to update data in a database None of the above20. Which tag is used to create a numbered list in HTML?21. Which JSP directive is used to import a Java class into a JSP page?22. 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.23. Which of the following is a valid association mapping type in Hibernate? @ManyToOne @OneToOneToOne @OneToManyToOne @ManyToManyToMany24. 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 above25. How do you call a function named "myFunction"? myFunction() call function myFunction() call myFunction() function myFunction()26. 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 427. Which of the following is NOT a core interface in Hibernate? Session Transaction Criteria Entity Manager28. Which attribute is used to specify the alignment of content in a table cell in HTML? align position center valign29. 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)30. Which of the following is NOT a valid cascade type in Hibernate? ALL PERSIST DETACH REMOVE31. Which tag is used to create a radio button in HTML?32. How do you find the number with the highest value of x and y in JavaScript? Math.max(x, y) Math.ceil(x, y) Math.floor(x, y) Math.highest(x, y)33. How do you write a function called "myFunction" in JavaScript? function myFunction() function = myFunction() myFunction{} function:myFunction()34. Which tag is used to create a dropdown list in HTML?35. 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.36. Which of the following is a valid mapping type in Hibernate? @MappedSuperclass @MappedEntity @PersistentClass @EntityMapping37. What is the purpose of the "throws" keyword in Java? It is used to declare that a method may throw an exception. It is used to handle exceptions in a method. It is used to create custom exceptions. It is used to define exception classes.38. 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.39. 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.40. Which CSS property is used to set the background repeat behavior of an element? bg-repeat background-repeat repeat image-repeat41. Which of the following is a checked exception in Java? NullPointerException ArrayIndexOutOfBoundsException IOException ArithmeticException42. Which tag is used to create a checkbox in HTML?43. What is the purpose of the "throw" keyword in Java? It is used to declare that a method may throw an exception. It is used to handle exceptions in a method. It is used to create custom exceptions. It is used to explicitly throw an exception.44. Which attribute is used to specify the type of input field in HTML? type input field mode45. 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");46. Which tag is used to create an image in HTML?47. 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 error48. 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 Error49. Which CSS property is used to change the font size of an element? font-size size text-size font-style50. 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.