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)
สำหรับการจัดการข้อผิดพลาด, directive ใดที่สามารถช่วยในการจัดการกับข้อผิดพลาด?
(1)
<#fail>
(2)
<#error>
(3)
<#catch>
(4)
<#attempt>
Question 2 (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 3 (1 Points)
ในการประมวลผล template, คลาสใดใน Java ที่ถูกใช้บ่อยเพื่อใช้งานกับ Freemarker?
(1)
TemplateConfig
(2)
TemplateEngine
(3)
FreeMarkerConfigurer
(4)
TemplateMaker
Question 4 (1 Points)
ใน Freemarker, การอ้างถึงตัวแปรใช้เครื่องหมายใด?
(1)
{}
(2)
[]
(3)
()
(4)
${}
Question 5 (1 Points)
วิธีใดที่ใช้สำหรับการแสดงตัวแปร?
(1)
[${variable}]
(2)
@variable@
(3)
{{variable}}
(4)
${variable}
Question 6 (1 Points)
อะไรที่ถูกพิจารณาว่าเป็น template engine สำหรับ Java platform?
(1)
Handlebars
(2)
EJS
(3)
Pug
(4)
Freemarker
Question 7 (1 Points)
ในการสร้าง macro แบบนี้ `<@myMacro/>`, directive ไหนที่ใช้ในการกำหนด macro?**
(1)
`<#macro>`
(2)
`<#def>`
(3)
`<#function>`
(4)
`<#create>`
Question 8 (1 Points)
การใส่ comment ใน Freemarker template ที่จะไม่แสดงในผลลัพธ์สุดท้าย ควรใช้ syntax ใด?
(1)
(2)
// Comment
(3)
-- Comment --
(4)
<#-- Comment -->
Question 9 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 10 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการทำ include ของ template อื่น?
(1)
`<@include>`
(2)
`<#include>`
(3)
`<@import>`
(4)
`<#nest>`
You got
/ 10
Viewers : 6,822
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs