The Modern JavaScript Bootcamp (2019) - Exploring Another API

The Modern JavaScript Bootcamp (2019) - Exploring Another API

Assessment

Interactive Video

•

Information Technology (IT), Architecture

•

University

•

Practice Problem

•

Hard

Created by

Wayground Content

FREE Resource

The video tutorial guides viewers through making an API request to retrieve country data, focusing on JSON data structure and key properties like A2 code and country name. It explains how to explore API documentation, implement the request, and parse the response. The tutorial concludes with coding a solution to fetch and display the data, emphasizing understanding asynchronous JavaScript.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data does the REST Countries API provide?

Country codes and currencies

Weather information

Historical events

Celebrity news

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which URL format is used to access all countries' data in the REST Countries API?

restcountries.edu/rest/Vtwo/all

restcountries.edu/rest/Vone/all

restcountries.edu/rest/Vthree/all

restcountries.edu/rest/Vfour/all

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the structure of the JSON data returned by the REST Countries API?

An array of strings

A nested array

A single object

An array of objects

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to find a country in the JSON data?

Country name

Time zone

A2 code

Currency symbol

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in making an HTTP request to the REST Countries API?

Check the response status

Parse the JSON data

Create a new XML HTTP request

Print the country name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you check if the HTTP request was successful?

By checking if the status is 404

By checking if the status is 302

By checking if the status is 200

By checking if the status is 500

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to parse the JSON response in JavaScript?

JSON.stringify

JSON.parse

JSON.convert

JSON.decode

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?