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 ควรใช้รูปแบบใด?
(1)
<@macro_name>
(2)
<#macro_name>
(3)
<.macro_name>
(4)
<:macro_name>
Question 2 (1 Points)
การทำ loop สามารถใช้ directive ใด?
(1)
<#loop>
(2)
<#iterate>
(3)
<#foreach>
(4)
<#list>
Question 3 (1 Points)
อะไรที่ถูกพิจารณาว่าเป็น template engine สำหรับ Java platform?
(1)
Handlebars
(2)
EJS
(3)
Pug
(4)
Freemarker
Question 4 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
Question 5 (1 Points)
เมื่อใช้ Freemarker กับ Spring Framework, คลาสไหนที่ใช้สำหรับการตั้งค่า Freemarker?**
(1)
`FreeMarkerConfigurer`
(2)
`FreeMarkerInitializer`
(3)
`FreeMarkerSettings`
(4)
`TemplateConfig`
Question 6 (1 Points)
การทำ Nested Templates ใน Freemarker หมายถึง...
(1)
การสร้าง template ภายใน template
(2)
การสร้าง macro ที่มี macro ภายใน
(3)
การนำเข้าและใช้งานหลาย template ใน template เดียว
(4)
การสร้าง template ที่สามารถประมวลผลแบบ dynamic ได้
Question 7 (1 Points)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
(1)
<#raw>
(2)
<#noparse>
(3)
<#noeval>
(4)
<#plaintext>
Question 8 (1 Points)
การทำเงื่อนไข if-else ใน Freemarker ใช้ directive อะไร?
(1)
`<#if>`
(2)
`<#condition>`
(3)
`<#choose>`
(4)
`<#select>`
Question 9 (1 Points)
เมื่อมีตัวแปร map ชื่อ `userInfo` และต้องการเข้าถึงค่าจาก key ชื่อ "username", คำสั่งไหนที่ถูกต้อง?**
(1)
`${userInfo.username}`
(2)
`${userInfo('username')}`
(3)
`${userInfo[username]}`
(4)
`${userInfo["username"]}`
Question 10 (1 Points)
จากตัวเลือกต่อไปนี้ อันไหนไม่ใช่ built-in ของ Freemarker?
(1)
upper_case
(2)
length
(3)
size
(4)
split
You got
/ 10
Viewers : 5,922
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs