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)
วิธีไหนที่ถูกต้องสำหรับการเข้าถึง value ของ key `name` ใน map `user`?
(1)
user.name
(2)
user{name}
(3)
user[name]
(4)
user-name
Question 2 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 3 (1 Points)
สำหรับการเรียกใช้ macro ใน Freemarker ควรใช้รูปแบบใด?
(1)
<@macro_name>
(2)
<#macro_name>
(3)
<.macro_name>
(4)
<:macro_name>
Question 4 (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 5 (1 Points)
เมื่อใช้ Freemarker กับ Spring Framework, คลาสไหนที่ใช้สำหรับการตั้งค่า Freemarker?**
(1)
`FreeMarkerConfigurer`
(2)
`FreeMarkerInitializer`
(3)
`FreeMarkerSettings`
(4)
`TemplateConfig`
Question 6 (1 Points)
สำหรับการจัดการข้อผิดพลาด, directive ใดที่ใช้บ่อยใน Freemarker?
(1)
<#fail>
(2)
<#error>
(3)
<#break>
(4)
<#attempt>
Question 7 (1 Points)
ข้อใดคือภาษาที่ Freemarker ใช้เป็นหลักในการทำงาน?
(1)
PHP
(2)
Java
(3)
Python
(4)
Ruby
Question 8 (1 Points)
สำหรับการสร้าง custom directive ใน Freemarker, คุณควรใช้ keyword ใด?
(1)
<#directive>
(2)
<@directive>
(3)
<#transform>
(4)
<@transform>
Question 9 (1 Points)
Macro ใน Freemarker ทำหน้าที่คล้ายกับอะไรในภาษาโปรแกรมอื่นๆ?
(1)
Variables
(2)
Directives
(3)
Functions
(4)
Conditions
Question 10 (1 Points)
การกำหนด macro ทำได้โดยใช้คำสั่งใด?
(1)
<@define ...>
(2)
<#macro ...>
(3)
<@macro ...>
(4)
<#define ...>
You got
/ 10
Viewers : 6,362
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs