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)
สำหรับการสร้าง macro ใน Freemarker directive ใดที่ถูกใช้?
(1)
<#function>
(2)
<#macro>
(3)
<#procedure>
(4)
<#method>
Question 2 (1 Points)
เมื่อต้องการเข้าถึง key ของ map ใน Freemarker, ควรใช้ syntax ใด?
(1)
map.key
(2)
map->key
(3)
map[key]
(4)
map:{key}
Question 3 (1 Points)
หากต้องการจัดการข้อผิดพลาดและแสดงข้อความ "An error occurred", directive ใดที่ควรใช้?**
(1)
`<#error>`
(2)
`<#fail>`
(3)
`<#catch>`
(4)
`<#attempt>`
Question 4 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการวนซ้ำใน Freemarker?
(1)
`<@iterate>`
(2)
`<#for>`
(3)
`<#list>`
(4)
`<#loop>`
Question 5 (1 Points)
ฟังก์ชันที่ใช้สำหรับการแปลงเป็น string คืออะไร?
(1)
.string()
(2)
.toString()
(3)
.asString()
(4)
.to_string
Question 6 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการทำ include ของ template อื่น?
(1)
`<@include>`
(2)
`<#include>`
(3)
`<@import>`
(4)
`<#nest>`
Question 7 (1 Points)
แท็กไหนที่ใช้สำหรับการรวม templates อื่นเข้ามาใน template หลัก?**
(1)
<#insert>
(2)
<#include>
(3)
<#combine>
(4)
<#merge>
Question 8 (1 Points)
สำหรับการวนซ้ำใน list ชื่อ `items`, directive ไหนที่ถูกต้อง?**
(1)
`<#list items as item>`
(2)
`<#foreach items as item>`
(3)
`<#loop items as item>`
(4)
`<#iterate items as item>`
Question 9 (1 Points)
ตัวแปรสามารถใช้งานได้ผ่าน...
(1)
$(variableName)
(2)
${variableName}
(3)
@(variableName)
(4)
&[variableName]
Question 10 (1 Points)
เมื่อต้องการใช้ conditional statement ใน Freemarker ควรใช้ directive ใด?
(1)
<#if>
(2)
<#check>
(3)
<#condition>
(4)
<#verify>
You got
/ 10
Viewers : 5,088
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs