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)
การใช้ conditions ใน Freemarker ทำได้โดยใช้คำสั่งใด?
(1)
<#if ...> ...
(2)
<#condition ...> ...
(3)
<#cond ...> ...
(4)
<#switch ...> ...
Question 2 (1 Points)
วิธีใดที่ใช้สำหรับการแสดงตัวแปร?
(1)
[${variable}]
(2)
@variable@
(3)
{{variable}}
(4)
${variable}
Question 3 (1 Points)
การใช้ function `upper_case` เพื่อแปลง string เป็นตัวพิมพ์ใหญ่ใน Freemarker ควรใช้รูปแบบใด?
(1)
${string?upper_case}
(2)
${string!upper_case}
(3)
${string?uppercase}
(4)
${string?capitalized}
Question 4 (1 Points)
เครื่องหมาย `!` ใน `${variable!}` มีวัตถุประสงค์เพื่ออะไร?
(1)
กำหนดค่า default ถ้าตัวแปรไม่มีค่า
(2)
แสดงค่าของตัวแปรเสมอ ไม่ว่าจะมีหรือไม่มี
(3)
แสดง error ถ้าตัวแปรไม่มีค่า
(4)
สร้าง loop
Question 5 (1 Points)
สำหรับการจัดการข้อผิดพลาด, directive ใดที่ใช้บ่อยใน Freemarker?
(1)
<#fail>
(2)
<#error>
(3)
<#break>
(4)
<#attempt>
Question 6 (1 Points)
Freemarker มีลักษณะเป็นอะไร?
(1)
Framework
(2)
Programming Language
(3)
Template Engine
(4)
Text Editor
Question 7 (1 Points)
ในการรวม templates หรือการใช้ nested templates, directive ใดที่ควรใช้?
(1)
<#include>
(2)
<#import>
(3)
<#nest>
(4)
<#embed>
Question 8 (1 Points)
`${...}` ใช้เพื่ออะไร?
(1)
แสดงค่าของตัวแปร
(2)
การวนซ้ำ
(3)
การสร้าง directive
(4)
การสร้าง comment
Question 9 (1 Points)
เมื่อใช้ Freemarker กับ Spring Framework, คลาสไหนที่ใช้สำหรับการตั้งค่า Freemarker?**
(1)
`FreeMarkerConfigurer`
(2)
`FreeMarkerInitializer`
(3)
`FreeMarkerSettings`
(4)
`TemplateConfig`
Question 10 (1 Points)
หากต้องการทำ loop ใน Freemarker ควรใช้ directive ใด?
(1)
<#foreach>
(2)
<#iterate>
(3)
<#loop>
(4)
<#list>
You got
/ 10
Viewers : 3,334
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs