Search Header Logo

Hackharbor 3.0 : Day 5 API and JSON Quiz

Authored by Vivek N

Engineering

University

Used 8+ times

Hackharbor 3.0 : Day 5 API and JSON Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of an API in software communication?

It compiles frontend code

It directly connects databases

It acts as a messenger between software components

It generates UI elements

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which real-world analogy best represents an API?

Chef cooking food

Menu in a restaurant

Waiter taking your order

Receipt after payment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a benefit of APIs?

Promotes modularity

Improves reusability

Increases memory usage

Adds a security layer

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You exposed your API key on GitHub. What happens next?

Congratulations! Free server hosting.

The API retires

Hackers thank you

Nothing, everything is secure (just kidding)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the URL https://api.openweathermap.org/data/2.5/weather?q=Delhi&appid=API_KEY represent?

An email request

A database insertion

A weather API GET request

A file download from a server

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT a valid status code?

204 No Content

301 Moved Permanently

777 Lucky Response

403 Forbidden

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTTP method is used to retrieve data from a resource?

PUT

POST

GET

DELETE

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?