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)
สำหรับการจัดการข้อผิดพลาด, directive ใดที่สามารถช่วยในการจัดการกับข้อผิดพลาด?
(1)
<#fail>
(2)
<#error>
(3)
<#catch>
(4)
<#attempt>
Question 3 (1 Points)
วิธีการรวม template อื่นใน Freemarker คือ?**
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#add>`
(4)
`<#append>`
Question 4 (1 Points)
ถ้าต้องการประกาศตัวแปรใหม่ใน template ควรใช้ directive ใด?
(1)
<#var>
(2)
<#declare>
(3)
<#set>
(4)
<#initialize>
Question 5 (1 Points)
เมื่อต้องการใส่ค่าเริ่มต้นให้กับตัวแปรที่อาจไม่มีใน model ควรใช้...
(1)
?default
(2)
?exists
(3)
?isset
(4)
?value
Question 6 (1 Points)
ในการสร้าง macro แบบนี้ `<@myMacro/>`, directive ไหนที่ใช้ในการกำหนด macro?**
(1)
`<#macro>`
(2)
`<#def>`
(3)
`<#function>`
(4)
`<#create>`
Question 7 (1 Points)
การทำเงื่อนไข if-else ใน Freemarker ใช้ directive อะไร?
(1)
`<#if>`
(2)
`<#condition>`
(3)
`<#choose>`
(4)
`<#select>`
Question 8 (1 Points)
ในการรวม templates หรือการใช้ nested templates, directive ใดที่ควรใช้?
(1)
<#include>
(2)
<#import>
(3)
<#nest>
(4)
<#embed>
Question 9 (1 Points)
ตัว directive ไหนใช้สำหรับการกำหนดเงื่อนไข?**
(1)
<#switch>
(2)
<#case>
(3)
<#if>
(4)
<#condition>
Question 10 (1 Points)
วิธีการแสดงตัวแปร `name` คือ ...
(1)
[name]
(2)
${name}
(3)
(name)
(4)
name{}
You got
/ 10
Viewers : 5,938
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs