×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Swagger MCQs

Swagger is a suite of tools for API developers from SmartBear Software and a former specification upon which the OpenAPI Specification is based.

Swagger MCQs: This section contains multiple-choice questions on Swagger. All MCQs have the correct answers and explanations. These MCQs will help students and professionals to test their skills and to enhance their knowledge of Swagger.

List of Swagger MCQs

1. What is the full form of API?

  1. Administration programming interface
  2. Application programming intersection
  3. Application programmatical interface
  4. Application programming interface

Answer: D) Application programming interface

Explanation:

API stands for an application programming interface.

Discuss this Question


2. Swagger specifically deals with the ____ API.

  1. GraphQL API
  2. Web API
  3. Amazon API

Answer: B) Web API

Explanation:

Swagger specifically deals with the Web API.

Discuss this Question


3. An ____ is a file that lists all the operations that may be performed on a file.

  1. API Definition File
  2. API Operation File
  3. API Definition

Answer: A) API Definition File

Explanation:

An API Definition File is a file that lists all the operations that may be performed on a file.

Discuss this Question


4. Which of the following things does an API definition file includes?

  1. It contains how authorization is handled in terms of security
  2. It contains Every resource that is accessible through that API
  3. All the different data that you can send in a request.
  4. All of the above

Answer: D) All of the above

Explanation:

The API Definition File includes the following information: how authorization is handled in terms of security, Every resource that is accessible through that API, and every type of requestable data.

Discuss this Question


5. We mainly specify the request body in ____ format for some methods such as PUT, POST, etc

  1. Plain Text
  2. CSV
  3. XLs
  4. JSON

Answer: D) JSON

Explanation:

We mainly specify the request body in JSON format for some methods such as PUT, POST, etc.

Discuss this Question


6. The response body in REST can be anything, although it is often expressed in which format?

  1. Plain Text
  2. CSV
  3. XLs
  4. JSON

Answer: D) JSON

Explanation:

The response body in REST can be anything, although it is often expressed in JSON format.

Discuss this Question


7. ____ is the process of confirming a user's identity using their login and password.

  1. Authentication
  2. Authorization

Answer: A) Authentication

Explanation:

Authentication is the process of confirming a user's identity using their login and password.

Discuss this Question


8. YAML stands for ____.

  1. Any markup language
  2. API markup language
  3. Ain't markup language
  4. A markup language

Answer: C) Ain't markup language

Explanation:

YAML stands for Ain't Markup Language.

Discuss this Question


9. YAML is used for the content, not for the data.

  1. True
  2. False

Answer: B) False

Explanation:

YAML is used for the data, not for the content.

Discuss this Question


10. Authorization means allowing the user to access the data?

  1. True
  2. False

Answer: A) True

Explanation:

Authorization means allowing the user to access the data.

Discuss this Question


11. The data in YAML is represented in which form?

  1. Graph
  2. Plain text
  3. List
  4. key/value pairs

Answer: D) key/value pairs

Explanation:

The data in YAML is represented in the form of key/value pairs.

Discuss this Question


12. Levels in YAML are indicated by ____.

  1. white space indenting,
  2. Curly brackets
  3. Parenthesis
  4. None

Answer: A) white space indenting,

Explanation:

Levels are indicated by white space indenting.

Discuss this Question


13. In YAML do we need Quotes around the strings?

  1. Yes
  2. No

Answer: B) No

Explanation:

With YAML, we don't require quotes around the strings since levels are represented by white space indenting. One exception is that quotations are necessary if anything is understood to be a number or a Boolean value.

Discuss this Question


14. In YAML, we need to use a ____ to indicate a list item.

  1. Bullets
  2. ~
  3. Dash
  4. Square brackets

Answer: C) Dash

Explanation:

In YAML, we need to use a ____ to indicate a list item.

Discuss this Question


15. What do you mean by OAS?

  1. Open API System
  2. Open API Serialization
  3. Open API Specification
  4. Open API Specialization

Answer: C) Open API Specification

Explanation:

OAS stands for Open API Specification.

Discuss this Question


16. Which of the following is a tool that enables real-time documentation preview and editing of Open API specifications in YAML within the browser?

  1. Swagger Editor
  2. Swagger Core
  3. Swagger Codegen
  4. Swagger Inspector

Answer: A) Swagger Editor

Explanation:

A Swagger Editor is a tool that enables real-time documentation preview and editing of Open API specifications in YAML within the browser.

Discuss this Question


17. Which of the following is a tool that enables us to create attractive documentation dynamically? It is a collection of HTML, JavaScript, and CSS elements.

  1. Swagger Codegen
  2. Swagger Core
  3. Swagger UI
  4. Swagger Inspector

Answer: C) Swagger UI

Explanation:

Swagger UI is a tool that enables us to create attractive documentation dynamically. It is a collection of HTML, JavaScript, and CSS elements.

Discuss this Question


18. The object is identified as a reference to another structure in the YAML file by the special OAS key known as ____.

  1. –unique
  2. $ reference
  3. $ref
  4. $ key

Answer: C) $ref

Explanation:

The object is identified as a reference to another structure in the YAML file by the special OAS key known as $ref.

Discuss this Question


19. Which of the following is the advantage of API testing?

  1. Language Independent
  2. GUI Independent
  3. Improved Test Coverage –
  4. Faster Release
  5. All of the above

Answer: E) All of the above

Explanation:

The following are some advantages of API testing:Language Independent, Increased Test Coverage, GUI Independent, Quicker Release.

Discuss this Question


20. ____ is a testing tool for APIs that enables you to check your APIs and create OpenAPI specifications from an already-existing API.

  1. Swagger Inspector
  2. Swagger Tester
  3. Swagger Inspect

Answer: A) Swagger Inspector

Explanation:

Swagger Inspector is a testing tool for APIs that enables you to check your APIs and create OpenAPI specifications from an already-existing API.

Discuss this Question


21. Which of the following Protocols is used by API Testing?

  1. HTTP
  2. JMS
  3. UDDI
  4. All of the above

Answer: D) All of the above

Explanation:

Protocols used by API Testing are as follows:

  • HTTP
  • REST
  • SOAP
  • JMS
  • UDDI

Discuss this Question


22. Which of the following tool enables us to automatically produce the documentation, server stubs, and client libraries for the API?

  1. Swagger Codegen
  2. Swagger Core
  3. Swagger UI
  4. Swagger Inspector

Answer: A) Swagger Codegen

Explanation:

Swagger Codegen enables us to automatically produce the documentation, server stubs, and client libraries for the API.

Discuss this Question


23. Which of the following statement is TRUE?

  1. POSTMAN is a specification for APIs, whereas SWAGGER is an API client.
  2. SWAGGER is a specification for APIs, whereas POSTMAN is an API client.

Answer: B) SWAGGER is a specification for APIs, whereas POSTMAN is an API client.

Explanation:

Statement B is correct, SWAGGER is a specification for APIs, whereas POSTMAN is an API client.

Discuss this Question


24. The ____ is used to create, consume, and interact with API specifications, is a collection of java-related libraries.

  1. Swagger core
  2. Swagger Java
  3. Swagger Script

Answer: A) Swagger core

Explanation:

The Swagger core, which is used to create, consume, and interact with API specifications, is a collection of Java-related libraries.

Discuss this Question


25. Swagger is good for testing an API based on specifications?

  1. True
  2. False

Answer: B) False

Explanation:

Postman is good for testing an API based on specifications, whereas Swagger tools are excellent for API-first development.

Discuss this Question


26. Among SOAP and REST which of them is faster?

  1. SOAP
  2. REST

Answer: B) REST

Explanation:

SOAP is slower, and REST is faster.

Discuss this Question


27. The client state is not kept on the server due to the REST architecture's design. ____ is the term used to describe this.

  1. Statelessness
  2. State fullness

Answer: A) Statelessness

Explanation:

The client state is not kept on the server due to the REST architecture's design. Statelessness is the term used to describe this.

Discuss this Question


28. In REST, any HTTP Request has how many main components?

  1. 2
  2. 3
  3. 4
  4. 5

Answer: D) 5

Explanation:

In REST, any HTTP Request has 5 main components, they are:

  • Method/Verb
  • URI −
  • HTTP Version
  • Request Header
  • Request Body

Discuss this Question


29. HTTP Response has how many components?

  1. 2
  2. 3
  3. 4
  4. 5

Answer: C) 4

Explanation:

HTTP Response has 4 components:

  • Response Status Code
  • HTTP Version
  • Response Header
  • Response Body

Discuss this Question


30. Which of the following annotation is used for mapping requests to specific handler classes or methods?

  1. @RequestPath
  2. @RequestMethod
  3. @RequestDict
  4. @RequestMapping

Answer: D) @RequestMapping

Explanation:

@RequestMapping annotation is used for mapping requests to specific handler classes or methods.

Discuss this Question




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.