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)
แท็กไหนที่ใช้เพื่อจัดการกับข้อผิดพลาดใน template?
(1)
`<#try>`
(2)
`<#error>`
(3)
`<#exception>`
(4)
`<@catch>`
Question 2 (1 Points)
หากต้องการเข้าถึงข้อมูลจาก Java object ใน Freemarker, วิธีไหนที่เหมาะสมที่สุด?**
(1)
ประกาศตัวแปรใน Java แล้วเรียกใช้ใน Freemarker โดยตรง
(2)
ใช้ reflection ใน Java แล้วส่งผลลัพธ์ไปยัง Freemarker
(3)
สร้าง DataModel แล้วส่งไปยัง Freemarker
(4)
เขียน code Java ภายใน Freemarker template
Question 3 (1 Points)
ข้อใดคือภาษาที่ Freemarker ใช้เป็นหลักในการทำงาน?
(1)
PHP
(2)
Java
(3)
Python
(4)
Ruby
Question 4 (1 Points)
ในการสร้าง custom directive, คลาสไหนใน Java ที่ควรถูก implement?**
(1)
Directive
(2)
TemplateDirective
(3)
TemplateDirectiveModel
(4)
CustomDirective
Question 5 (1 Points)
วิธีการรวม template อื่นใน Freemarker คือ?**
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#add>`
(4)
`<#append>`
Question 6 (1 Points)
หากต้องการจัดการข้อผิดพลาดและแสดงข้อความ "An error occurred", directive ใดที่ควรใช้?**
(1)
`<#error>`
(2)
`<#fail>`
(3)
`<#catch>`
(4)
`<#attempt>`
Question 7 (1 Points)
สำหรับการจัดการข้อผิดพลาด, directive ใดที่ใช้บ่อยใน Freemarker?
(1)
<#fail>
(2)
<#error>
(3)
<#break>
(4)
<#attempt>
Question 8 (1 Points)
ใน Freemarker, ตัวแปรสามารถประกาศได้โดยใช้สัญลักษณ์ใด?**
(1)
$(variable)
(2)
@@variable@@
(3)
${variable}
(4)
&&variable&&
Question 9 (1 Points)
ในการเริ่มต้นการใช้งาน Freemarker, ขั้นตอนแรกที่ควรทำคือ?**
(1)
ประกาศตัวแปร
(2)
ติดตั้ง Freemarker
(3)
สร้าง loop
(4)
ใช้ conditions
Question 10 (1 Points)
การทำ loop สามารถใช้ directive ใด?
(1)
<#loop>
(2)
<#iterate>
(3)
<#foreach>
(4)
<#list>
You got
/ 10
Viewers : 5,309
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs