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. 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 GraphQL2. Which of the following is a valid GraphQL subscription operation? subscribe { newMessages } mutation { subscribe(newMessages) } query { subscribe(newMessages) } subscription { onNewMessage }3. What does GraphQL stand for? Graph Query Language General Query Language Graphical Query Language Global Query Language4. Who developed GraphQL? Facebook Google Microsoft Twitter5. Which keyword is used to alias fields in a GraphQL query? as alias with rename6. GraphQL, how are arguments passed to a field? Using parentheses () Using square brackets [] Using curly braces {} Using angle brackets <>7. 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 values8. Which of the following is a valid way to provide variables in a GraphQL query? { variable: "value" } $variable: "value" variable = "value" variable: "value"9. Which of the following is a reserved keyword in GraphQL? select query fetch retrieve10. 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 rule11. Which HTTP method is commonly used with GraphQL? GET POST PUT DELETE12. 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 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 permissions14. 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 measures15. 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 documentation16. 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 schema17. 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 version18. 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 GraphQL19. 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 above20. In GraphQL, what is a schema? A type of database A query A way to structure data A programming language5 out of 4Time is Up!