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 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);}} 10 7 5 Compilation error2. 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.3. 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 above4. Which of the following is not a primitive data type in Java? int float string char5. Which keyword is used to prevent a method from being overridden in a subclass? final static abstract private6. Which CSS property is used to change the text color of an element? text-color color font-color text-style7. What is the purpose of the Java EE Security API? To provide encryption for data stored in databases. To secure communication between client and server in web applications. To manage user authentication and authorization in Java EE applications. To prevent SQL injection attacks in Java applications.8. 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 Error9. 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.10. Which tag is used to create a heading in HTML?11. 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");12. 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 Overriding13. 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.14. Which module of the Spring Framework is used for transaction management? Spring Core Container Spring AOP Spring Data Spring Transaction15. Which Hibernate annotation is used to define a many-to-many relationship? @ManyToMany @ManyToOne @OneToOne @OneToMany16. Which tag is used to define the title of a document in HTML?17. Which of the following methods of the ResultSetMetaData interface is used to get the number of columns in a ResultSet? getColumnCount() getNumColumns() getColumnNumber() getColumns()18. 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 Overriding19. 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.20. 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.21. What is the primary benefit of using multithreading in Java? Improved memory management Better utilization of CPU resources Simplified code structure Easier debugging22. Which Java EE technology is used for asynchronous messaging? JMS JPA EJB JDBC23. Which operator is used to assign a value to a variable in JavaScript? = == := =>24. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE25. What is the purpose of Hibernate's @GeneratedValue annotation? To generate primary key values automatically To specify the generation strategy for primary keys To define the mapping between Java classes and database tables To specify the fetch type for entity associations26. Which attribute is used to specify the width of a table in HTML? width size length style27. 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 error28. 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 129. Which CSS property is used to create a transition effect for an element? transition animate effect transform30. What is the output of the following code snippet?int x = 5;System.out.println(x++); 5 6 Compilation Error Runtime Error31. 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.32. In JSP, which tag is used to declare a custom tag?33. 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.34. Which method is used to create a new file in Java? createNewFile() newFile() makeFile() addFile()35. Which tag is used to create a hyperlink in HTML?36. 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.37. 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 relationship38. What is the purpose of Hibernate's @Version annotation? To define the version number of an entity To specify the fetch type of an entity To define a unique constraint on an entity To define the cascade type of an entity39. Which annotation is used to enable automatic component scanning in Spring? @ComponentScan @Autowired @Configuration @Component40. Which of the following is not a JavaScript data type? Number String Character Boolean41. 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 error42. Which of the following is true about the wait() method in Java? It is used to wait for a specific amount of time. It is used to release the lock on an object's monitor. It is used to wait indefinitely until another thread notifies it. It is used to terminate the current thread.43. Which CSS property is used to control the appearance of an element when it is being clicked? click mouse-click :active active44. Which of the following methods is used to commit a transaction in JDBC? commit() execute() update() setAutoCommit()45. 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.46. Which of the following is NOT a valid cascade type in Hibernate? ALL PERSIST DETACH REMOVE47. Which attribute is used to specify the background color of an element in HTML? bgcolor color background style48. How do you write a while loop in JavaScript? while i = 1 to 5 while (i <= 5) while (i = 1; i <= 5) while (i++)49. What is the return type of the main method in Java? void int String main method does not have a return type50. What is the result of 10 % 3 in Java? 1 2 33.3 Compilation Error