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)
แท็กไหนที่ใช้สำหรับการรวม templates อื่นเข้ามาใน template หลัก?**
(1)
<#insert>
(2)
<#include>
(3)
<#combine>
(4)
<#merge>
Question 2 (1 Points)
เมื่อต้องการเข้าถึง key ของ map ใน Freemarker, ควรใช้ syntax ใด?
(1)
map.key
(2)
map->key
(3)
map[key]
(4)
map:{key}
Question 3 (1 Points)
การใส่ comment ใน Freemarker template ที่จะไม่แสดงในผลลัพธ์สุดท้าย ควรใช้ syntax ใด?
(1)
(2)
// Comment
(3)
-- Comment --
(4)
<#-- Comment -->
Question 4 (1 Points)
หากต้องการจัดการข้อผิดพลาดและแสดงข้อความ "An error occurred", directive ใดที่ควรใช้?**
(1)
`<#error>`
(2)
`<#fail>`
(3)
`<#catch>`
(4)
`<#attempt>`
Question 5 (1 Points)
Freemarker เป็นอะไร?**
(1)
เป็นภาษาโปรแกรมมิ่ง
(2)
เป็น template engine
(3)
เป็น framework สำหรับเว็บ
(4)
เป็นระบบจัดการฐานข้อมูล
Question 6 (1 Points)
สำหรับการสร้าง custom directive ใน Freemarker, คุณควรใช้ keyword ใด?
(1)
<#directive>
(2)
<@directive>
(3)
<#transform>
(4)
<@transform>
Question 7 (1 Points)
การทำ Nested Templates ใน Freemarker หมายถึง...
(1)
การสร้าง template ภายใน template
(2)
การสร้าง macro ที่มี macro ภายใน
(3)
การนำเข้าและใช้งานหลาย template ใน template เดียว
(4)
การสร้าง template ที่สามารถประมวลผลแบบ dynamic ได้
Question 8 (1 Points)
การทำ loop สามารถใช้ directive ใด?
(1)
<#loop>
(2)
<#iterate>
(3)
<#foreach>
(4)
<#list>
Question 9 (1 Points)
วิธีการเขียน loop เพื่อวนซ้ำผ่านรายการของข้อมูลคืออะไร?
(1)
<#loop item in items>
(2)
<#each items as item>
(3)
<#list items as item>
(4)
<#foreach items as item>
Question 10 (1 Points)
ซึ่ง directive ใดใช้สำหรับการสร้าง macro ใน Freemarker?
(1)
<#func>
(2)
<#define>
(3)
<#macro>
(4)
<#method>
You got
/ 10
Viewers : 6,584
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs