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)
วิธีการเขียน loop เพื่อวนซ้ำผ่านรายการของข้อมูลคืออะไร?
(1)
<#loop item in items>
(2)
<#each items as item>
(3)
<#list items as item>
(4)
<#foreach items as item>
Question 2 (1 Points)
การใส่ comment ใน Freemarker template ที่จะไม่แสดงในผลลัพธ์สุดท้าย ควรใช้ syntax ใด?
(1)
(2)
// Comment
(3)
-- Comment --
(4)
<#-- Comment -->
Question 3 (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 4 (1 Points)
ตัว directive ไหนใช้สำหรับการกำหนดเงื่อนไข?**
(1)
<#switch>
(2)
<#case>
(3)
<#if>
(4)
<#condition>
Question 5 (1 Points)
ในการสร้าง custom directive, คลาสไหนใน Java ที่ควรถูก implement?**
(1)
Directive
(2)
TemplateDirective
(3)
TemplateDirectiveModel
(4)
CustomDirective
Question 6 (1 Points)
การสร้าง macro ใน Freemarker ใช้ directive ไหน?
(1)
`<#define>`
(2)
`<#macro>`
(3)
`<#function>`
(4)
`<#template>`
Question 7 (1 Points)
วิธีการแสดงตัวแปร `name` คือ ...
(1)
[name]
(2)
${name}
(3)
(name)
(4)
name{}
Question 8 (1 Points)
Freemarker เป็น ...
(1)
Framework สำหรับ Web Development
(2)
ฐานข้อมูล SQL
(3)
Template Engine
(4)
Programming Language
Question 9 (1 Points)
สำหรับการสร้าง custom directive ใน Freemarker, คุณควรใช้ keyword ใด?
(1)
<#directive>
(2)
<@directive>
(3)
<#transform>
(4)
<@transform>
Question 10 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
You got
/ 10
Viewers : 5,307
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs