หน้าแรก
(current)
บทเรียน
บทความ
โปรแกรมออนไลน์
โปรแกรมออนไลน์
->
โปรแกรมมิ่ง
->
โปรแกรมมิ่ง
แบบทดสอบ Freemarker Template
10 คำถาม
15 คำถาม
20 คำถาม
30 คำถาม
คำถามข้อที่ 1 (1 คะแนน)
วิธีไหนที่ใช้เพื่อกำหนดค่า default หากตัวแปรไม่มีค่า?
(1)
${variable ?? `default`}
(2)
${variable | `default`}
(3)
${variable ?: `default`}
(4)
${variable! `default`}
คำถามข้อที่ 2 (1 คะแนน)
เมื่อต้องการแปลง string เป็นเลข, ฟังก์ชันไหนที่เราควรใช้?**
(1)
`toNumber()`
(2)
`parseInt()`
(3)
`stringToNum()`
(4)
`convertToInt()`
คำถามข้อที่ 3 (1 คะแนน)
ตัว directive ไหนใช้สำหรับการกำหนดเงื่อนไข?**
(1)
<#switch>
(2)
<#case>
(3)
<#if>
(4)
<#condition>
คำถามข้อที่ 4 (1 คะแนน)
เมื่อต้องการสร้าง macro, ควรใช้ directive ใด?**
(1)
<#func>
(2)
<#macro>
(3)
<#define>
(4)
<#method>
คำถามข้อที่ 5 (1 คะแนน)
เมื่อใช้ Freemarker กับ Spring Framework, คลาสไหนที่ใช้สำหรับการตั้งค่า Freemarker?**
(1)
`FreeMarkerConfigurer`
(2)
`FreeMarkerInitializer`
(3)
`FreeMarkerSettings`
(4)
`TemplateConfig`
คำถามข้อที่ 6 (1 คะแนน)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
คำถามข้อที่ 7 (2 คะแนน)
การแทรกค่าแบบ escaped ใน HTML (เพื่อป้องกัน injection) ควรใช้รูปแบบใด?
(1)
${variable!}
(2)
${variable?html}
(3)
${variable?escape}
คำถามข้อที่ 8 (1 คะแนน)
การทำ Nested Templates ใน Freemarker หมายถึง...
(1)
การสร้าง template ภายใน template
(2)
การสร้าง macro ที่มี macro ภายใน
(3)
การนำเข้าและใช้งานหลาย template ใน template เดียว
(4)
การสร้าง template ที่สามารถประมวลผลแบบ dynamic ได้
คำถามข้อที่ 9 (1 คะแนน)
หากต้องการแปลงค่าตัวแปรเป็นข้อความเพื่อแสดง, ใช้ function อะไร?
(1)
`.toString()`
(2)
`.asText()`
(3)
`.stringify()`
(4)
`.textify()`
คำถามข้อที่ 10 (1 คะแนน)
สำหรับการสร้าง macro ใน Freemarker directive ใดที่ถูกใช้?
(1)
<#function>
(2)
<#macro>
(3)
<#procedure>
(4)
<#method>
คุณได้
/ 11
จำนวนคนดู : 4,801
โปรแกรมอื่นๆ
แบบทดสอบ Freemarker Template
บทเรียน
บทความ
โปรแกรมออนไลน์