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 tag is used to define a paragraph in HTML?2. Which annotation is used to mark a class as a Spring bean? @Bean @Component @Service @Repository3. Which method is used to start a new thread in Java? run() start() execute() begin()4. Which tag is used to create a button in HTML?5. Which tag is used to create a radio button in HTML?6. Which of the following is NOT a valid inheritance mapping strategy in Hibernate? TABLE_PER_CLASS JOINED SINGLE_TABLE MULTI_TABLE7. Which interface is used to connect to a database using JDBC? Connection Statement ResultSet DriverManager8. 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 above9. In JSP, which method is used to send data to the server without reloading the entire page? GET POST PUT AJAX10. Which of the following is true about the default value of instance 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.11. 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 above12. Which CSS property is used to control the stacking order of elements? stack-order z-index order stack13. Which JSTL tag is used to import content from another resource in JSP?14. Which tag is used to create a hyperlink with a specific target in HTML? All of the above15. Which of the following is true about deadlock in multithreading? It occurs when a thread is waiting indefinitely for a resource held by another thread. It occurs when two or more threads are waiting for each other to release resources, resulting in a deadlock. It can be avoided by using synchronization. All of the above16. What is the process of a subclass providing a specific implementation of a method that is already provided by one of its parent classes called? Encapsulation Abstraction Inheritance Method Overriding17. Which of the following is NOT a valid collection mapping type in Hibernate? @OneToMany @ManyToMany @ManyToOne @ElementCollection18. 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.19. 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.20. Which CSS property is used to set the background image of an element? background-image image bg-image image-source21. What is the process of a subclass providing a specific implementation of a method that is already provided by one of its parent classes called? Encapsulation Abstraction Inheritance Method Overriding22. What will be the output of the following Java code snippet?public class Main {public static void main(String[] args) {int x = 5;x += 3;System.out.println(x);}} 5 8 3 Compilation error23. 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.24. 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.25. 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 126. Which CSS property is used to control the appearance of an element when it is being selected? select selection :selected selected27. How do you declare a JavaScript function named "myFunction"? function = myFunction()function = myFunction() function myFunction() function:myFunction() function myFunction{}28. Which JSP action is used to include the content of another resource in a JSP page?29. What is the purpose of Hibernate's @Embeddable annotation? To define a component class that can be embedded within an entity To define an embedded query To define a composite primary key To define a custom fetch strategy30. What is the result of 10 / 3 in Java? 3.33 3 4 Compilation Error31. What is Hibernate? A programming language An open-source Java persistence framework A database management system An application server32. 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.33. 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.34. Which of the following is not a valid method signature in Java? void methodName(int x, String y) int methodName(float x) void methodName(int[] arr) int[] methodName(int x, int y)35. What is the output of the following code snippet? 5 6 Compilation Error Runtime Error36. 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.37. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE38. Which of the following methods is used to read data from a file in Java? read() readLine() readAllLines() All of the above39. 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.length());}} 12 13 11 Compilation error40. 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.41. What is the difference between a process and a thread in Java? A process is a lightweight unit of execution, while a thread is a heavyweight unit of execution. A process has its own memory space, while threads share the same memory space. A process can run on multiple CPUs, while a thread can only run on a single CPU. A process is managed by the operating system, while threads are managed by the Java Virtual Machine (JVM).42. Which tag is used to create an ordered list in HTML?43. What is the superclass of all exception classes in Java? Throwable Exception Error RuntimeException44. What is the purpose of the File.separator property in Java? It represents the file extension separator. It represents the path separator. It represents the directory separator. It represents the line separator.45. Which of the following methods of the ResultSetMetaData interface is used to get the number of columns in a ResultSet? getColumnCount() getNumColumns() getColumnNumber() getColumns()46. 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.47. What is the correct JavaScript syntax for an if statement? if i = 5 then if (i == 5) if i == 5 if i = 548. How do you declare a JavaScript variable? v carName; variable carName; var carName; car carName;49. Which of the following is an unchecked exception in Java? IOException ClassNotFoundException NullPointerException FileNotFoundException50. 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.