stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Groovy & API Basics - Part 1 Flashcards | StudBud
Explore
/
Groovy & API Basics - Part 1
Groovy & API Basics - Part 1
20 terms
·
StudBud Administration
·
17 plays
Imported from external platform
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
What is rate limiting in the context of APIs?
Controlling the amount of data transmitted over an API.
Restricting the number of users who can access an API.
Preventing API endpoints from being accessed by unauthorized users.
Limiting the number of API requests a client can make within a given time.
2
What does API stand for?
Automated Program Interface
Advanced Programming Integration
Application Programming Interface
Application Process Initialization
3
Which type of API commonly uses XML for communication?
RESTful API
JSON-RPC API
SOAP API
GraphQL API
4
Groovy code runs on the Java Virtual Machine (JVM).
True
False
5
SOAP APIs are considered more lightweight and flexible compared to RESTful APIs
False
True
6
Which of the following is used to define a closure in Groovy?
function
=>
closure
def
7
What is the difference between public, private, and partner APIs?
Their rate limiting policies.
Their authentication methods.
Their intended audience and accessibility.
Their supported programming languages.
8
What role does authentication play in API usage?
It determines the programming language used for API development.
It specifies the URL structure of API endpoints.
It ensures that only authorized users or applications can access the API.
It defines the data format for API responses.
9
Which keyword is used to define a class in Groovy?
struct
interface
type
class
10
What is Groovy primarily known as?
A database management language
A low-level programming language
A scripting language for the Java platform
A markup language
11
Which of the following is a correct way to create a list in Groovy?
List myList = new List( )
List myList = [ ]
List myList = new ArrayList( )
List myList = { }
12
API errors are typically handled by returning appropriate HTTP status codes with error messages in the response body.
True
False
13
JSON is a commonly used data format for transmitting information between a client and a server via APIs
False
True
14
What is an endpoint in the context of APIs?
A specific URL or URI that represents a resource.
The authentication method for accessing an API.
The programming language used to develop APIs.
The starting point of API documentation.
15
Which type of API commonly uses HTTP protocols and URLs for communication?
GraphQL API
XML-RPC API
RESTful API
SOAP API
16
What is the purpose of the each method in Groovy?
To define a closure
To generate random numbers
To execute a block of code repeatedly
To iterate over elements in a collection
17
Groovy does not support object-oriented programming concepts like classes and objects.
True
False
18
HTTP methods commonly used in API requests include GET, POST, PUT, and DELETE.
True
False
19
Which of the following best describes the function of an API?
It helps to design website layouts.
It provides a graphical user interface (GUI) for users.
It facilitates the creation of databases.
It allows different software systems to communicate with each other.
20
APIs can only transmit data in text-based formats such as JSON and XML.
True
False