Home Page
(current)
Lessons
Articles
Online Programs
Online Programs
->
Programming
->
Programming
Freemarker Template Quiz
10 Questions
15 Questions
20 Questions
30 Questions
Question 1 (1 Points)
แท็กไหนที่ใช้เพื่อจัดการกับข้อผิดพลาดใน template?
(1)
`<#try>`
(2)
`<#error>`
(3)
`<#exception>`
(4)
`<@catch>`
Question 2 (1 Points)
วิธีการแสดงตัวแปร `name` คือ?**
(1)
`{name}`
(2)
`$(name)`
(3)
`${name}`
(4)
`[name]`
Question 3 (1 Points)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
(1)
<#raw>
(2)
<#noparse>
(3)
<#noeval>
(4)
<#plaintext>
Question 4 (2 Points)
การแทรกค่าแบบ escaped ใน HTML (เพื่อป้องกัน injection) ควรใช้รูปแบบใด?
(1)
${variable!}
(2)
${variable?html}
(3)
${variable?escape}
Question 5 (1 Points)
สำหรับการสร้าง macro ใน Freemarker directive ใดที่ถูกใช้?
(1)
<#function>
(2)
<#macro>
(3)
<#procedure>
(4)
<#method>
Question 6 (1 Points)
ในการรวม templates หรือการใช้ nested templates, directive ใดที่ควรใช้?
(1)
<#include>
(2)
<#import>
(3)
<#nest>
(4)
<#embed>
Question 7 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
Question 8 (1 Points)
ถ้าต้องการใช้คำสั่ง built-in สำหรับแปลง string เป็นตัวพิมพ์ใหญ่, ควรใช้คำสั่งใด?
(1)
upper()
(2)
toUpperCase()
(3)
caps()
(4)
?upper_case
Question 9 (1 Points)
หากต้องการทำ loop ใน Freemarker ควรใช้ directive ใด?
(1)
<#foreach>
(2)
<#iterate>
(3)
<#loop>
(4)
<#list>
Question 10 (1 Points)
การแสดงตัวแปรทำได้โดยใช้...
(1)
`${variable}`
(2)
`{{variable}}`
(3)
`<#variable>`
(4)
`$(variable)`
You got
/ 11
Viewers : 6,594
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs