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 @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 query2. Which of the following is a valid GraphQL subscription operation? subscribe { newMessages } mutation { subscribe(newMessages) } query { subscribe(newMessages) } subscription { onNewMessage }3. What is the purpose of the __typename field in GraphQL? To specify the name of the query To indicate the type of the current object To define custom scalar types To exclude a field from the response4. 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 schemas5. 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 schema6. Which type of operation in GraphQL is used for real-time data updates? Query Mutation Subscription Directive7. What is the purpose of the introspection in GraphQL? To improve query performance To provide documentation about the schema To validate queries at runtime To enforce security measures8. 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 standard9. 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 version10. What is the purpose of the fragments keyword in a GraphQL query? To define a reusable piece of a query To group multiple queries together To include comments in a query To exclude certain fields from the response11. What is the role of the context in GraphQL resolvers? It defines the structure of the schema It provides a way to share information between resolvers It specifies the data types of fields It controls the access permissions12. GraphQL, how are arguments passed to a field? Using parentheses () Using square brackets [] Using curly braces {} Using angle brackets <>13. Which HTTP method is commonly used with GraphQL? GET POST PUT DELETE14. 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 field15. 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 versioning16. What does GraphQL stand for? Graph Query Language General Query Language Graphical Query Language Global Query Language17. 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 query18. Who developed GraphQL? Facebook Google Microsoft Twitter19. 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 rule20. Which of the following is NOT a scalar type in GraphQL? String Int List Boolean5 out of 4Time is Up!