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. 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 GraphQL2. 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 query3. What is GraphQL? A database management system A programming language A query language for APIs An operating system4. GraphQL, how are arguments passed to a field? Using parentheses () Using square brackets [] Using curly braces {} Using angle brackets <>5. 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 query6. What is the purpose of the @skip and @include directives in GraphQL? To exclude or include fields based on a condition To define custom scalar types To perform mathematical calculations in queries To specify default values for query parameters7. Which of the following is a valid GraphQL query syntax? { name: "John" } query { name: "John" } query { user(name: "John") } { query: { name: "John" } }8. Which of the following is a valid scalar type in GraphQL? Date Object Function Promise9. 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 GraphQL10. 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 schema11. What does GraphQL stand for? Graph Query Language General Query Language Graphical Query Language Global Query Language12. What is the purpose of the relay package in GraphQL? To handle pagination and connections in a standardized way To provide authentication for GraphQL queries To optimize query performance To enable offline support for GraphQL queries13. 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 version14. 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 schemas15. In GraphQL, what is a schema? A type of database A query A way to structure data A programming language16. 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 rule17. Which of the following is a reserved keyword in GraphQL? select query fetch retrieve18. Who developed GraphQL? Facebook Google Microsoft Twitter19. 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. Which HTTP method is commonly used with GraphQL? GET POST PUT DELETE5 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