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 annotation is used to define the primary key in Hibernate? @Id @PrimaryKey @Key @Primary2. Which of the following is not a primitive data type in Java? int float string char3. Which of the following is not a primitive data type in Java? int float string char4. Which attribute is used to specify the width of a table in HTML? width size length style5. 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 Error6. 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.7. 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 relationship8. What is the process of creating a new class by using the properties and behaviors of an existing class called? Polymorphism Inheritance Abstraction Encapsulation9. What is the correct JavaScript syntax for an if statement? if i = 5 then if (i == 5) if i == 5 if i = 510. Which method is used to start a new thread in Java? run() start() execute() begin()11. 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.12. Which CSS property is used to create a shadow effect around an element? shadow text-shadow box-shadow element-shadow13. What is the purpose of Hibernate's Session interface? To represent a connection to the database To manage transactions To execute queries To represent a unit of work with the database14. Which method of the PreparedStatement interface is used to set a parameter value? setParameter() set() setValue() setXXX()15. 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);}} 3 7 2 Compilation error16. What is Hibernate? A programming language An open-source Java persistence framework A database management system An application server17. 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.18. How do you write "Hello World" in an alert box using JavaScript? alertBox("Hello World"); msg("Hello World"); alert("Hello World"); msgBox("Hello World");19. 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.20. Which of the following methods of the ResultSet interface is used to move the cursor to the next row? next() moveToNext() moveNext() nextRow()21. Which of the following is not a valid Java identifier? _variableName 123variable $variableName variableName12322. Which CSS property is used to set the background position of an element? position background-position bg-position image-position23. What is the result of 10 % 3 in Java? 1 2 33.3 Compilation Error24. 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 625. How do you add a comment in JavaScript? //This is a comment /This is a comment/ 'This is a comment'26. Which of the following is NOT a valid fetch type in Hibernate? EAGER LAZY AUTO NONE27. Which of the following best describes a thread in Java? A lightweight process that shares the same memory space with other threads in the same process. A separate process that has its own memory space. A mechanism for asynchronous programming in Java. A way to handle exceptions in Java.28. What is the correct JavaScript syntax to change the content of the HTML element with id="demo"? document.getElement("demo").innerHTML = "Hello World!"; document.getElementById("demo").innerHTML = "Hello World!"; document.getElementByName("demo").innerHTML = "Hello World!"; #demo.innerHTML = "Hello World!";29. Which CSS property is used to scale an element? scale transform resize zoom30. Which of the following is NOT a valid cascade type in Hibernate? ALL PERSIST DETACH REMOVE31. Which method of the CallableStatement interface is used to register OUT parameters for a stored procedure? registerParameter() registerOutParameter() setOutParameter() setParameter()32. Which attribute is used to specify the width of an image in HTML? width w size style33. What is the purpose of Hibernate's Second Level Cache? To cache query results To cache entity instances To cache database schema To cache database connections34. 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.35. Which tag is used to define a paragraph in HTML?36. Which CSS property is used to control the floating of an element? float align position flow37. Which attribute is used to specify the background color of an element in HTML? bgcolor color background style38. 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 above39. Which CSS property is used to add space between the border and content of an element? margin padding space border-space40. Which of the following is a valid identifier in Java? 123identifier _identifier $identifier All of the above41. 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 above42. 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.43. 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.44. What is the purpose of Hibernate's Criteria API? To execute native SQL queries To provide a type-safe way to construct queries To manage database transactions To define the database schema45. What is the return type of the main method in Java? void int String main method does not have a return type46. What is the result of 10 / 3 in Java? 3.33 3 4 Compilation Error47. Which JSTL tag is used to import content from another resource in JSP?48. Which tag is used to define a table in HTML?49. Which Java EE technology is used for developing web applications? EJB JSP JMS JPA50. 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.