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)
วิธีการแสดงตัวแปร `name` คือ?**
(1)
`{name}`
(2)
`$(name)`
(3)
`${name}`
(4)
`[name]`
Question 2 (1 Points)
สำหรับการเรียกใช้ macro ใน Freemarker ควรใช้รูปแบบใด?
(1)
<@macro_name>
(2)
<#macro_name>
(3)
<.macro_name>
(4)
<:macro_name>
Question 3 (1 Points)
อะไรคือ directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?**
(1)
`<#if>`
(2)
`<#check>`
(3)
`<#condition>`
(4)
`<#verify>`
Question 4 (1 Points)
เมื่อต้องการสร้าง macro, ควรใช้ directive ใด?**
(1)
<#func>
(2)
<#macro>
(3)
<#define>
(4)
<#method>
Question 5 (1 Points)
เมื่อต้องการแปลง string เป็นเลข, ฟังก์ชันไหนที่เราควรใช้?**
(1)
`toNumber()`
(2)
`parseInt()`
(3)
`stringToNum()`
(4)
`convertToInt()`
Question 6 (1 Points)
แท็กไหนที่ใช้สำหรับการรวม templates อื่นเข้ามาใน template หลัก?**
(1)
<#insert>
(2)
<#include>
(3)
<#combine>
(4)
<#merge>
Question 7 (1 Points)
`${...}` ใช้เพื่ออะไร?
(1)
แสดงค่าของตัวแปร
(2)
การวนซ้ำ
(3)
การสร้าง directive
(4)
การสร้าง comment
Question 8 (1 Points)
หากต้องการจัดการข้อผิดพลาดและแสดงข้อความ "An error occurred", directive ใดที่ควรใช้?**
(1)
`<#error>`
(2)
`<#fail>`
(3)
`<#catch>`
(4)
`<#attempt>`
Question 9 (1 Points)
ซึ่ง directive ใดใช้สำหรับการสร้าง macro ใน Freemarker?
(1)
<#func>
(2)
<#define>
(3)
<#macro>
(4)
<#method>
Question 10 (1 Points)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
(1)
<#raw>
(2)
<#noparse>
(3)
<#noeval>
(4)
<#plaintext>
You got
/ 10
Viewers : 4,804
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs