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 result of the following code snippet?int x = 10;int y = (x == 10) ? 20 : 30;System.out.println(y); 20 30 10 Compilation Error2. Which JSP directive is used to import a Java class into a JSP page?3. What is the output of the following code?var x = 10;var y = 5;var z = x + y;console.log(z); 15 "15" "10 + 5" Syntax Error4. 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.5. 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 above6. 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.7. What is the correct way to declare a constant in Java? final int CONSTANT_VALUE = 10; const int CONSTANT_VALUE = 10; static final int CONSTANT_VALUE = 10; int CONSTANT_VALUE = 10;8. Which tag is used to create a heading in HTML?9. 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.10. What is the concept of binding a method call to the method body called? Polymorphism Inheritance Encapsulation Abstraction11. What is the correct JavaScript syntax for creating a function called "myFunction"? function = myFunction() function myFunction() function:myFunction() function myFunction{}12. 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. Which of the following is true about batch processing in JDBC? It allows multiple SQL statements to be executed as a batch It is faster than executing each SQL statement individually It reduces network overhead All of the above14. Which CSS property is used to create a shadow effect around an element? shadow text-shadow box-shadow element-shadow15. Which event occurs when the user clicks on an HTML element? onclick onmouseover onmouseclick onmouseclick16. 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.17. Which of the following statements is true about checked exceptions in Java? They are checked at compile time. They are checked at runtime. They are not required to be caught or declared. They are subclasses of RuntimeException.18. What is the default value of local 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.19. Which tag is used to create a horizontal rule in HTML?20. 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 above21. Which method of the Statement interface is used to execute a SQL query? executeQuery() executeUpdate() execute() executeBatch()22. Which of the following methods is used to read data from a file in Java? read() readLine() readAllLines() All of the above23. Which of the following is an unchecked exception in Java? IOException ClassNotFoundException NullPointerException FileNotFoundException24. Which tag is used to create an image in HTML?25. 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)26. Which tag is used to create a hyperlink with a specific target in HTML? All of the above27. What is the purpose of the notify() method in Java? It wakes up all threads that are waiting on the object's monitor. It wakes up a single thread that is waiting on the object's monitor. It puts the current thread to sleep. It terminates the current thread.28. Which Hibernate feature is used to improve performance by reducing the number of SQL queries executed? Batch processing Lazy loading Fetching strategies Caching29. How do you call a function named "myFunction"? myFunction() call function myFunction() call myFunction() function myFunction()30. Which tag is used to define the header of a table in HTML?31. Which JSTL tag is used to import content from another resource in JSP?32. Which of the following is true about the static keyword in Java? It is used to create instances of a class. It is used to define a constant. It is used to access class variables and methods. It is used to declare a method that cannot be overridden.33. What is the purpose of the BatchUpdateException class in JDBC? It is used to handle exceptions related to batch processing It is used to handle exceptions related to database connections It is used to handle exceptions related to SQL queries None of the above34. Which attribute is used to specify the type of input field in HTML? type input field mode35. Which CSS property is used to control the appearance of an element when it is being clicked? click mouse-click :active active36. 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.37. What is the purpose of the ResultSet interface in JDBC? It is used to retrieve data from a database after executing a query It is used to update data in a database It is used to establish a connection to a database None of the above38. 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.39. 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 above40. Which Java EE technology is used for asynchronous messaging? JMS JPA EJB JDBC41. What is the output of the following code snippet?int x = 5;System.out.println(x++); 5 6 Compilation Error Runtime Error42. How do you write a while loop in JavaScript? while i = 1 to 5 while (i <= 5) while (i = 1; i <= 5) while (i++)43. Which of the following is NOT a valid Java EE component type? EJB JSP Servlet JPA44. Which method is used to check if a file exists in Java? fileExists() exists() isFileExists() fileIsPresent()45. What is the purpose of Hibernate's @JoinColumn annotation? To specify the name of the join column in a many-to-many relationship To specify the name of the join column in a one-to-many relationship To specify the name of the foreign key column in a one-to-many relationship To specify the name of the primary key column in a many-to-one relationship46. What is the primary role of the Spring Core Container module? Handling web requests and responses Managing application context and dependency injection Providing support for aspect-oriented programming Implementing the MVC design pattern47. 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.48. Which tag is used to define an unordered list in HTML?49. 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!";50. Which tag is used to create a button in HTML?