Welcome to CHOOLS GRAPHQL 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 union type in GraphQL? To represent a field that can have multiple types To perform set operations on queries To define a one-to-many relationship between types To create a subset of the schema2. How does GraphQL handle batched mutations? By executing mutations sequentially By parallelizing the execution of mutations By limiting the number of mutations in a single request Batched mutations are not supported in GraphQL3. How does GraphQL handle versioning of APIs? It automatically updates the schema based on client requests It relies on the use of custom directives for versioning It uses a fixed schema with backward-compatible changes It does not support versioning4. Which keyword is used to alias fields in a GraphQL query? as alias with rename5. In GraphQL, what is the purpose of directives? To define custom scalar types To conditionally include or skip fields To create mutations To specify the schema version6. Which of the following is NOT a scalar type in GraphQL? String Int List Boolean7. What is the purpose of the @deprecated directive in GraphQL? To mark a field or enum value as deprecated To enable caching for a specific query To define default values for fields To specify the data type of a field8. How can you secure a GraphQL API? By using HTTPS for communication By implementing authentication and authorization By limiting the depth and complexity of queries All of the above9. Which HTTP method is commonly used with GraphQL? GET POST PUT DELETE10. Which of the following is a valid GraphQL subscription operation? subscribe { newMessages } mutation { subscribe(newMessages) } query { subscribe(newMessages) } subscription { onNewMessage }11. How does GraphQL handle errors in a response? By ignoring errors and returning partial data By automatically fixing errors in the query By returning a well-defined error format By terminating the entire request on the first error12. What is a mutation in GraphQL? A query that fetches data A query that modifies data A type of subscription A way to create new schemas13. What does GraphQL stand for? Graph Query Language General Query Language Graphical Query Language Global Query Language14. Which type of operation in GraphQL is used for real-time data updates? Query Mutation Subscription Directive15. What is the purpose of the fragment keyword in GraphQL? To define a reusable piece of a query To group multiple queries together To define a new scalar type To include comments in a query16. Which of the following is a valid way to provide variables in a GraphQL query? { variable: "value" } $variable: "value" variable = "value" variable: "value"17. Which of the following is a valid scalar type in GraphQL? Date Object Function Promise18. What is the purpose of the schema stitching in GraphQL? To merge multiple GraphQL schemas into a single schema To split a large schema into smaller schemas To create a schema dynamically at runtime To validate the schema against a predefined standard19. What is the purpose of the relay package in GraphQL? To handle pagination and connections in a standardized way To provide authentication for GraphQL queries To optimize query performance To enable offline support for GraphQL queries20. What does the term "N+1 problem" refer to in the context of GraphQL? A query with multiple nested fields Inefficient loading of related data in a batch A security vulnerability Lack of proper documentation5 out of 4Time is Up!