NEW
Font size
Worksheets.NET with NextJS
Total questions: 30
Worksheet time: 15mins
การระบุเส้นทางใน Web API นั้นใช้ Attribute อะไร?
[Controller]
[Route]
[Action]
[Model]
รูปแบบการระบุเส้นทางแบบใดที่ ไม่ถูกต้อง?
api/[controller]/[action]
api/[controller}/{id}
api/{id}/[controller]
api/[controller]/[action}/{id}
เราสามารถใช้ Attribute อะไรเพื่อระบุค่าเริ่มต้นสำหรับ parameter ในเส้นทาง?
[Route]
[Default]
[Required]
[FromBody]
Controller ใน Web API นั้นสืบทอดมาจาก Class อะไร?
Controller
ApiController
ControllerBase
ObjectController
Attribute อะไรที่ใช้เพื่อระบุ Class ว่าเป็น Controller?
[Route]
[Controller]
[Action]
[Model]
Method ใดใน Controller ที่ถูกเรียกเมื่อมีการร้องขอ HTTP GET?
Get()
Post()
Put()
Delete()
Middleware คืออะไร?
โครงสร้างพื้นฐานสำหรับสร้าง Web API
ส่วนประกอบสำหรับจัดการการ routing
โค้ดที่แทรกกลางระหว่าง HTTP request และ response
ไลบรารีสำหรับการตรวจสอบสิทธิ์
Middleware ตัวใดที่ใช้สำหรับบันทึก log?
LoggingMiddleware
AuthenticationMiddleware
AuthorizationMiddleware
ExceptionHandlingMiddleware
เราสามารถใช้ Middleware เพื่อทำอะไรได้บ้าง?
บันทึก log
ตรวจสอบสิทธิ์
จัดการ caching
ทั้งหมดข้างต้น
Model Binding คืออะไร?
กระบวนการแปลงข้อมูล JSON เป็น object
กระบวนการแปลง object เป็น JSON
กระบวนการตรวจสอบความถูกต้องของข้อมูล
กระบวนการจัดการ routing
เราสามารถใช้ Attribute อะไรเพื่อระบุ source ของข้อมูลสำหรับ Model Binding?
[Route]
[FromBody]
[FromQuery]
[FromHeader]
รูปแบบการเขียน Model Binding แบบใดที่ ไม่ถูกต้อง?
public ActionResult Get([FromBody] MyModel model)
public ActionResult Get(int id)
public ActionResult Get([FromQuery] string name)
public ActionResult Get([FromHeader] string token)
Authentication คืออะไร?
กระบวนการตรวจสอบสิทธิ์
กระบวนการจัดการ caching
กระบวนการแปลงข้อมูล JSON
กระบวนการจัดการ routing
รูปแบบการ Authentication ที่นิยมใช้ใน Web API นั้นมีอะไรบ้าง?
JWT
OAuth
Basic Authentication
ทั้งหมดข้างต้น
เราสามารถใช้ Middleware ตัวใดสำหรับการ Authentication?
LoggingMiddleware
AuthenticationMiddleware
AuthorizationMiddleware
ExceptionHandlingMiddleware
รูปแบบการ Error Handling ที่นิยมใช้ใน Web API นั้นมีอะไรบ้าง?
Exception Handling
Global Error Handler
Middleware
ทั้งหมดข้างต้น
เราสามารถใช้ Attribute อะไรเพื่อระบุ response code สำหรับ error?
[Route]
[Produces]
[ProducesResponseType]
[FromBody]
เราสามารถใช้ Middleware ตัวใดสำหรับ Error Handling?
LoggingMiddleware
AuthenticationMiddleware
AuthorizationMiddleware
ExceptionHandlingMiddleware
รูปแบบการเขียน Global Error Handler นั้นเป็นอย่างไร?
public class GlobalExceptionHandler : IExceptionHandler
public class GlobalExceptionHandler : IExceptionFilter
public class GlobalExceptionHandler : IResultFilter
public class GlobalExceptionHandler : IActionFilter
เราสามารถใช้ Middleware ตัวใดสำหรับ logging?
LoggingMiddleware
AuthenticationMiddleware
AuthorizationMiddleware
ExceptionHandlingMiddleware
คุณสมบัติใหม่ใน Next.JS 14 อะไรที่ช่วยเพิ่มประสิทธิภาพการทำงาน?
Automatic Static Optimization
Server-side Components
Client-side Rendering
Streaming
Next.JS 14 รองรับการใช้งาน TypeScript โดยไม่ต้องติดตั้งอะไรเพิ่มเติม?
ใช่
ไม่
Next.JS 14 ทำงานอย่างไรกับ React 18?
รองรับ React 18 โดยสมบูรณ์
รองรับบางส่วน
ไม่รองรับ
จำเป็นต้องติดตั้ง plugin เพิ่มเติม
Next.JS 14 มาพร้อมกับ Image Optimization ใหม่ อะไรคือข้อดี?
เพิ่มความเร็วในการโหลดภาพ
รองรับรูปแบบไฟล์ภาพใหม่
ปรับขนาดภาพอัตโนมัติ
ทั้งหมดข้างต้น
Next.JS 14 รองรับการใช้งาน Web Components โดยไม่ต้องติดตั้งอะไรเพิ่มเติม?
ใช่
ไม่
รองรับบางส่วน
จำเป็นต้องติดตั้ง plugin เพิ่มเติม
Next.JS 14 รองรับการใช้งาน Emotion โดยไม่ต้องติดตั้งอะไรเพิ่มเติม?
ไม่
ใช่
รองรับบางส่วน
ต้องมี plugin ช่วย
Next.JS 14 รองรับการใช้งาน Tailwind CSS โดยไม่ต้องติดตั้งอะไรเพิ่มเติม?
ไม่ใช่
ใช่
รองรับแค่บางส่วน
ต้อง config tailwind เพิ่ม
Next.JS 14 รองรับการใช้งาน Intl API โดยไม่ต้องติดตั้งอะไรเพิ่มเติม?
ใช่
ไม่ใช่
รองรับบางส่วน
มีส่วนเสริมช่วย
Next.JS 14 รองรับการใช้งาน Rust โดยไม่ต้องติดตั้งอะไรเพิ่มเติม?
ใช่
ไม่ใช่
รองรับบางจุด
มี plugin ช่วย
App Directory ใหม่ใน Next.JS 14 มีไว้สำหรับอะไร?
เก็บไฟล์ Javascript
เก็บไฟล์ CSS
เก็บไฟล์รูปภาพ
เก็บ component ของ Next.JS
