Chuyển đến phần nội dung
Luyện Nghe Tiếng Anh Chất
Tiếng Anh Chuyên Ngành
Listening Quiz: Cách Xác Thực Với API Bằng Ba Ngôn Ngữ – Easy Level
Th2 12, 2024
—
bởi
Anna Phạm
trong
Tiếng Anh dành cho Chuyên viên viết tài liệu kỹ thuật (English for Technical Writer)
‹
1
2
3
4
5
›
1.
What is the main purpose of Linda’s conversation with John?
To teach John how to build a website
To discuss how to fix coding errors
To compare different programming languages
To explain how to authenticate with an API in three languages
Explanation:
Linda says she will show API authentication and then explains how to do it in Python, JavaScript, and Java.
2.
According to Linda, what should John do first when using Python?
Import the requests library
Set the Authorization header
Add the token in the headers dictionary
Use fetch with headers
Explanation:
Linda says, ‘First, import the requests library.’
3.
How does Linda say the token should be sent in Python?
In a cookie
In the body of the request
In the headers dictionary
In a query parameter
Explanation:
Linda explains that in Python, John should ‘Add the token in the headers dictionary.’
4.
What does Linda recommend using for JavaScript?
Authorization in a cookie
HttpURLConnection
requests library
fetch with headers for the token
Explanation:
Linda says, ‘Use fetch with headers for the token’ when John asks about JavaScript.
5.
What does Linda say to use in Java for authentication?
HttpURLConnection and the Authorization header
fetch with headers
requests library
headers dictionary
Explanation:
Linda says, ‘Use HttpURLConnection and set the Authorization header.’
Previous
Check
Next
Finish
Reset
Luyện tập thêm về bài học này:
Listening Lesson
Vocabulary Flashcards and Quiz
←
Trước đó:
Flashcards và Quiz Từ Vựng: Thiết Kế Chính Sách Auto-Scaling – Medium Level
Tiếp theo:
Tiếng Anh Du Lịch: Yêu Cầu Đặt Phòng Theo Nhóm – Advanced Level
→