GraphQL Nihileswaran No Comment 12Feb Share 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. Which of the following is a valid GraphQL subscription operation? subscribe { newMessages } mutation { subscribe(newMessages) } query { subscribe(newMessages) } subscription { onNewMessage }2. 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 measures3. 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 documentation4. Which of the following is a valid GraphQL query syntax? { name: "John" } query { name: "John" } query { user(name: "John") } { query: { name: "John" } }5. Who developed GraphQL? Facebook Google Microsoft Twitter6. Which of the following is a reserved keyword in GraphQL? select query fetch retrieve7. Which keyword is used to alias fields in a GraphQL query? as alias with rename8. In GraphQL, what is a schema? A type of database A query A way to structure data A programming language9. What does GraphQL stand for? Graph Query Language General Query Language Graphical Query Language Global Query Language10. 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 schema11. GraphQL, how are arguments passed to a field? Using parentheses () Using square brackets [] Using curly braces {} Using angle brackets <>12. 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 field13. Which of the following is NOT a scalar type in GraphQL? String Int List Boolean14. 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 GraphQL15. 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 GraphQL16. 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 above17. 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 rule18. Which of the following is a valid scalar type in GraphQL? Date Object Function Promise19. 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 response20. 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 error5 out of 4Time is Up! Previous R February 12, 2024 Next Laravel February 12, 2024 You Might Also Like Hello world CHOOLS No Comment How to Disable Avast Antivirus CHOOLS No Comment AVG Review — Is the Absolutely free Version As effective as the Premium Version? CHOOLS No Comment Understanding the Limitations of Models of Managing CHOOLS No Comment Careers Similar To Teaching CHOOLS No Comment