
Chương 4
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Chung Quan
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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
22 questions
FED311 400 Level
Quiz
•
University
18 questions
Standard Deviation
Quiz
•
University
18 questions
C1 VERB+PREP 01
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Other
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
