← Phòng luyện tậpOnline Testing · 20 câu
C# dispatch, exception và quyền sở hữu bộ nhớ
20 câu về boxing, polymorphism, Lazy, event retention, pooled buffers, span, native handle và snapshot đồng thời.
Nội dung luyện tập
- understand boxed value copy
- understand reverse disposal order
- distinguish as from explicit reference cast
- distinguish memory view from owned storage
- resolve virtual and hidden member dispatch
- recognize runtime array element type check
- separate dictionary atomicity from factory execution
- understand lazy factory exception caching
- find retention through event subscriptions
- preserve original exception stack
- separate pooled capacity from valid payload
- hold borrowed memory until async consumer finishes
- reason about overlapping span copy
- preserve caller owned stream while disposing wrapper
- place eager validation outside iterator body
- understand exception filter before stack unwind
- diagnose retained live data before tuning gc
- design native handle ownership and cleanup
- measure large allocation pressure before optimization
- distinguish single location atomicity from consistent snapshot
Mỗi câu đúng 1 điểm. Mục tiêu 70%. Đáp án và giải thích mở sau khi nộp bài.