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 default query type in GraphQL? Search Query Get Retrieve2. 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 response3. 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. 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 GraphQL5. Which of the following is a valid GraphQL subscription operation? subscribe { newMessages } mutation { subscribe(newMessages) } query { subscribe(newMessages) } subscription { onNewMessage }6. What is the purpose of the enum type in GraphQL? To represent a field that can have multiple types To define a one-to-many relationship between types To create a subset of the schema To represent a set of predefined values7. GraphQL, how are arguments passed to a field? Using parentheses () Using square brackets [] Using curly braces {} Using angle brackets <>8. 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 permissions9. Who developed GraphQL? Facebook Google Microsoft Twitter10. Which of the following is NOT a scalar type in GraphQL? String Int List Boolean11. How does GraphQL handle circular references in a schema? By automatically resolving the circular references By throwing an error and preventing circular references By requiring the use of custom directives to handle circular references Circular references are not allowed in GraphQL12. 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 GraphQL13. Which HTTP method is commonly used with GraphQL? GET POST PUT DELETE14. Which of the following is a valid way to provide variables in a GraphQL query? { variable: "value" } $variable: "value" variable = "value" variable: "value"15. 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 measures16. 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 error17. 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 query18. Which of the following is a valid GraphQL query syntax? { name: "John" } query { name: "John" } query { user(name: "John") } { query: { name: "John" } }19. Which of the following is a valid scalar type in GraphQL? Date Object Function Promise20. Which type of operation in GraphQL is used for real-time data updates? Query Mutation Subscription Directive5 out of 4Time is Up!