
Chương 4
Authored by Chung Quan
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1: Lập trình truyền thông với socket cho phép:
A: Quản lý bộ nhớ
B: Đọc và ghi file
C: Tối ưu hóa bộ nhớ
D: Truyền thông giữa các máy trong mạng
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2: Trong lập trình đa luồng với pthread, hàm nào được sử dụng để theo dõi trạng thái kết thúc của một luồng và thu hồi tài nguyên khi luồng đó kết thúc?
A: pthread_detach()
B: pthread_join()
C: pthread_create()
D: pthread_exit()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3: Hai phương thức SOCK_STREAM và SOCK_DGRAM lần lượt tương ứng với giao thức tầng vận chuyển nào?
A: IPv4 và IPv6
B: TCP và UDP
C: UDP và TCP
D: HTTP và FTP
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4: Trong lệnh tạo socket:
sockfd = socket(AF_INET, SOCK_STREAM, 0);
Tham số nào chỉ loại giao thức (protocol) khi tạo socket và giá trị của nó là gì?
A: Tham số SOCK_STREAM, giá trị là 1
B: Tham số 0, giá trị là Protocol mặc định
C: Tham số AF_INET, giá trị là IPv4
D: Tham số SOCK_STREAM, giá trị là 0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5: Từ khóa AF_UNIX trong lập trình socket được dùng làm gì?
A: Kết nối mạng LAN
B: Kết nối trong cùng hệ thống (local)
C: Kết nối trên mạng IPv6
D: Kết nối trên mạng IPv4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6: Trong lập trình đa luồng, hàm pthread_mutex_lock() được sử dụng để làm gì?
A: Hủy mutex sau khi hoàn thành công việc
B: Khóa mutex để ngăn các luồng khác truy cập vào tài nguyên dùng chung
C: Mở khóa mutex để cho phép các luồng khác truy cập tài nguyên
D: Khởi tạo một mutex để đồng bộ hóa luồng
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7: Trong lập trình socket, hàm listen() thường được sử dụng để làm gì?
A: Cho phép server lắng nghe các yêu cầu kết nối từ client
B: Cho phép client lắng nghe kết nối từ server
C: Đóng một socket đã tạo
D: Tạo kết nối tới server
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
22 questions
FED311 400 Level
Quiz
•
University
18 questions
Standard Deviation
Quiz
•
University
18 questions
C1 VERB+PREP 01
Quiz
•
University
20 questions
Quizz 2
Quiz
•
University
19 questions
UTEP Stats - Statistical Formulas
Quiz
•
University
20 questions
Mobile and Embedded Systems Quiz
Quiz
•
University
21 questions
Lokale Präpositionen
Quiz
•
6th Grade - Professio...
24 questions
Novellistisches Erzählen im Realismus
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University