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)
สำหรับการจัดการข้อผิดพลาด, ถ้าต้องการที่จะเรียกใช้ block อื่นเมื่อเกิดข้อผิดพลาด ควรใช้ ...
(1)
<#else>
(2)
<#catch>
(3)
<#recover>
(4)
<#fallback>
Question 3 (1 Points)
หากต้องการแปลงค่าตัวแปรเป็นข้อความเพื่อแสดง, ใช้ function อะไร?
(1)
`.toString()`
(2)
`.asText()`
(3)
`.stringify()`
(4)
`.textify()`
Question 4 (1 Points)
การสร้าง macro ใน Freemarker ใช้ directive ไหน?
(1)
`<#define>`
(2)
`<#macro>`
(3)
`<#function>`
(4)
`<#template>`
Question 5 (1 Points)
เมื่อต้องการใช้ template ซ้อนกัน (nested templates) คำสั่งใดที่ใช้?
(1)
<#include>
(2)
<#insert>
(3)
<#embed>
(4)
<#nest>
Question 6 (1 Points)
แท็กไหนที่ใช้สำหรับการแสดงค่า default ในกรณีที่ตัวแปรไม่มีค่า?**
(1)
${variable!default}
(2)
${variable?default}
(3)
${variable=default}
(4)
${default?variable}
Question 7 (1 Points)
ถ้าต้องการประกาศตัวแปรใหม่ใน template ควรใช้ directive ใด?
(1)
<#var>
(2)
<#declare>
(3)
<#set>
(4)
<#initialize>
Question 8 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการตรวจสอบเงื่อนไขใน Freemarker?
(1)
`<#if>`
(2)
`<@if>`
(3)
`<#check>`
(4)
`<@condition>`
Question 9 (1 Points)
Freemarker เป็นอะไร?**
(1)
เป็นภาษาโปรแกรมมิ่ง
(2)
เป็น template engine
(3)
เป็น framework สำหรับเว็บ
(4)
เป็นระบบจัดการฐานข้อมูล
Question 10 (1 Points)
วิธีการรวม template อื่นใน Freemarker คือ?**
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#add>`
(4)
`<#append>`
You got
/ 10
Viewers : 7,673
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs