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)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
Question 3 (1 Points)
ในการเริ่มต้นการใช้งาน Freemarker, ขั้นตอนแรกที่ควรทำคือ?**
(1)
ประกาศตัวแปร
(2)
ติดตั้ง Freemarker
(3)
สร้าง loop
(4)
ใช้ conditions
Question 4 (2 Points)
การแทรกค่าแบบ escaped ใน HTML (เพื่อป้องกัน injection) ควรใช้รูปแบบใด?
(1)
${variable!}
(2)
${variable?html}
(3)
${variable?escape}
Question 5 (1 Points)
วิธีการแสดงตัวแปร `name` คือ ...
(1)
[name]
(2)
${name}
(3)
(name)
(4)
name{}
Question 6 (1 Points)
เมื่อต้องการใช้ conditional statement ใน Freemarker ควรใช้ directive ใด?
(1)
<#if>
(2)
<#check>
(3)
<#condition>
(4)
<#verify>
Question 7 (1 Points)
ตัวแปรสามารถใช้งานได้ผ่าน...
(1)
$(variableName)
(2)
${variableName}
(3)
@(variableName)
(4)
&[variableName]
Question 8 (1 Points)
ภายใน template, การเข้าถึง element ของ map ที่มี key เป็น "name" คือ ...
(1)
${map[name]}
(2)
${map.name}
(3)
map.get(name)
(4)
map->name
Question 9 (1 Points)
หากต้องการจัดการข้อผิดพลาดและแสดงข้อความ "An error occurred", directive ใดที่ควรใช้?**
(1)
`<#error>`
(2)
`<#fail>`
(3)
`<#catch>`
(4)
`<#attempt>`
Question 10 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการทำ include ของ template อื่น?
(1)
`<@include>`
(2)
`<#include>`
(3)
`<@import>`
(4)
`<#nest>`
You got
/ 11
Viewers : 6,357
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs