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 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 query2. 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 documentation3. Which of the following is a valid way to provide variables in a GraphQL query? { variable: "value" } $variable: "value" variable = "value" variable: "value"4. What does GraphQL stand for? Graph Query Language General Query Language Graphical Query Language Global Query Language5. How can you perform batching of queries in GraphQL? By using the @batch directive By wrapping multiple queries in a single request By specifying a batch size in the schema Batching is not supported in GraphQL6. Which type of operation in GraphQL is used for real-time data updates? Query Mutation Subscription Directive7. Which of the following is a valid GraphQL query syntax? { name: "John" } query { name: "John" } query { user(name: "John") } { query: { name: "John" } }8. 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 version9. 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 schema10. Which of the following is a valid GraphQL subscription operation? subscribe { newMessages } mutation { subscribe(newMessages) } query { subscribe(newMessages) } subscription { onNewMessage }11. What is the role of the subscriptions field in a GraphQL schema? To define the types of subscriptions supported by the API To specify the default values for subscription parameters To control access permissions for subscriptions To indicate the version of the GraphQL schema12. How can you document a GraphQL schema? Using comments in the schema definition By creating a separate documentation file By using the @doc directive Documentation is not supported in GraphQL13. What is the default query type in GraphQL? Search Query Get Retrieve14. 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 versioning15. Which HTTP method is commonly used with GraphQL? GET POST PUT DELETE16. What is the purpose of the on keyword in a GraphQL fragment? To filter data based on a condition To specify the type on which the fragment can be used To join multiple fragments together To create an alias for a field17. GraphQL, how are arguments passed to a field? Using parentheses () Using square brackets [] Using curly braces {} Using angle brackets <>18. What is a resolver in GraphQL? A function that defines how to retrieve data for a field A type of query A security measure A data validation rule19. What is the purpose of the @client directive in GraphQL? To indicate that the field should be resolved on the client side To specify the data type of a field To mark a field as deprecated To include comments in a query20. Which of the following is a reserved keyword in GraphQL? select query fetch retrieve5 out of 4Time is Up!