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)
เครื่องหมาย `!` ใน `${variable!}` มีวัตถุประสงค์เพื่ออะไร?
(1)
กำหนดค่า default ถ้าตัวแปรไม่มีค่า
(2)
แสดงค่าของตัวแปรเสมอ ไม่ว่าจะมีหรือไม่มี
(3)
แสดง error ถ้าตัวแปรไม่มีค่า
(4)
สร้าง loop
Question 2 (1 Points)
ถ้าต้องการใช้คำสั่ง built-in สำหรับแปลง string เป็นตัวพิมพ์ใหญ่, ควรใช้คำสั่งใด?
(1)
upper()
(2)
toUpperCase()
(3)
caps()
(4)
?upper_case
Question 3 (1 Points)
วิธีไหนที่ถูกต้องสำหรับการเข้าถึง value ของ key `name` ใน map `user`?
(1)
user.name
(2)
user{name}
(3)
user[name]
(4)
user-name
Question 4 (1 Points)
ถ้าต้องการประกาศตัวแปรใหม่ใน template ควรใช้ directive ใด?
(1)
<#var>
(2)
<#declare>
(3)
<#set>
(4)
<#initialize>
Question 5 (1 Points)
วิธีการแสดงตัวแปร `name` คือ?**
(1)
`{name}`
(2)
`$(name)`
(3)
`${name}`
(4)
`[name]`
Question 6 (1 Points)
การนำเข้า template อื่นใช้ directive ไหน?
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#extend>`
(4)
`<#insert>`
Question 7 (1 Points)
สำหรับการสร้าง macro ใน Freemarker directive ใดที่ถูกใช้?
(1)
<#function>
(2)
<#macro>
(3)
<#procedure>
(4)
<#method>
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)
เมื่อต้องการใช้ conditional statement ใน Freemarker ควรใช้ directive ใด?
(1)
<#if>
(2)
<#check>
(3)
<#condition>
(4)
<#verify>
Question 10 (1 Points)
ในการเริ่มต้นการใช้งาน Freemarker, ขั้นตอนแรกที่ควรทำคือ?**
(1)
ประกาศตัวแปร
(2)
ติดตั้ง Freemarker
(3)
สร้าง loop
(4)
ใช้ conditions
You got
/ 10
Viewers : 5,442
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs