
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
20 questions
LỚP CHUYÊN VIÊN
Quiz
•
University
20 questions
Quiz day 3
Quiz
•
University
21 questions
HỘ KINH DOANH - NĐ 01/2021/NĐ-CP
Quiz
•
University
20 questions
[HÀNH TRÌNH ĐỎ THỦ ĐÔ] - TEST ĐÁNH GIÁ KIẾN THỨC
Quiz
•
KG - University
20 questions
Tri thức Hành chính 2025
Quiz
•
University
20 questions
Pengantar Sistem Basis Data
Quiz
•
University
20 questions
UEH Women Day 2023
Quiz
•
University
20 questions
Ideen 2 Partizip II
Quiz
•
4th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University