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)
ใน Freemarker, ตัวแปรสามารถประกาศได้โดยใช้สัญลักษณ์ใด?**
(1)
$(variable)
(2)
@@variable@@
(3)
${variable}
(4)
&&variable&&
Question 2 (1 Points)
การใช้ conditions ใน Freemarker ทำได้โดยใช้คำสั่งใด?
(1)
<#if ...> ...
(2)
<#condition ...> ...
(3)
<#cond ...> ...
(4)
<#switch ...> ...
Question 3 (1 Points)
หากต้องการแปลงค่าตัวแปรเป็นข้อความเพื่อแสดง, ใช้ function อะไร?
(1)
`.toString()`
(2)
`.asText()`
(3)
`.stringify()`
(4)
`.textify()`
Question 4 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
Question 5 (1 Points)
แท็กไหนที่ใช้สำหรับการแสดงค่า default ในกรณีที่ตัวแปรไม่มีค่า?**
(1)
${variable!default}
(2)
${variable?default}
(3)
${variable=default}
(4)
${default?variable}
Question 6 (1 Points)
เมื่อต้องการ include template อื่นภายใน template ปัจจุบัน, ควรใช้คำสั่งใด?
(1)
<@include ...>
(2)
<#import ...>
(3)
<#include ...>
(4)
<@import ...>
Question 7 (1 Points)
สำหรับการสร้าง macro ใน Freemarker directive ใดที่ถูกใช้?
(1)
<#function>
(2)
<#macro>
(3)
<#procedure>
(4)
<#method>
Question 8 (1 Points)
เมื่อต้องการเข้าถึง key ของ map ใน Freemarker, ควรใช้ syntax ใด?
(1)
map.key
(2)
map->key
(3)
map[key]
(4)
map:{key}
Question 9 (1 Points)
Freemarker มีประเภทอย่างไร?
(1)
ภาษาโปรแกรม
(2)
ฐานข้อมูล
(3)
Template engine
(4)
บริการเว็บ
Question 10 (1 Points)
ซึ่ง directive ใดที่ใช้สำหรับการจัดการ conditions ใน Freemarker?
(1)
<#cond>
(2)
<#if>
(3)
<#switch>
(4)
<#choice>
You got
/ 10
Viewers : 2,662
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs