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)
ถ้าต้องการเรียงลำดับ elements ของ list, function ใดที่ Freemarker ใช้ได้?
(1)
sort()
(2)
order()
(3)
arrange()
(4)
sequence()
Question 2 (1 Points)
แท็กไหนที่ใช้สำหรับการแสดงค่า default ในกรณีที่ตัวแปรไม่มีค่า?**
(1)
${variable!default}
(2)
${variable?default}
(3)
${variable=default}
(4)
${default?variable}
Question 3 (1 Points)
การอ้างอิงตัวแปรทำได้โดยใช้เครื่องหมายใด?
(1)
@{}
(2)
$[]
(3)
${}
(4)
<()>
Question 4 (1 Points)
อะไรที่ถูกใช้เป็น directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?
(1)
<#if>
(2)
<#condition>
(3)
<#check>
(4)
<#verify>
Question 5 (1 Points)
ภายใน template, การเข้าถึง element ของ map ที่มี key เป็น "name" คือ ...
(1)
${map[name]}
(2)
${map.name}
(3)
map.get(name)
(4)
map->name
Question 6 (1 Points)
วิธีไหนที่ใช้เพื่อกำหนดค่า default หากตัวแปรไม่มีค่า?
(1)
${variable ?? `default`}
(2)
${variable | `default`}
(3)
${variable ?: `default`}
(4)
${variable! `default`}
Question 7 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 8 (1 Points)
เมื่อต้องการแสดงข้อความเฉพาะเมื่อตัวแปร `isEmpty` มีค่าเป็น `true`, ควรใช้ directive ใด?
(1)
<#if isEmpty>
(2)
<#elseif isEmpty>
(3)
<#else isEmpty>
(4)
<#unless isEmpty>
Question 9 (1 Points)
การสร้าง macro ใน Freemarker ใช้ directive ไหน?
(1)
`<#define>`
(2)
`<#macro>`
(3)
`<#function>`
(4)
`<#template>`
Question 10 (1 Points)
วิธีการแสดงค่าเริ่มต้นของตัวแปร name หากไม่มีค่าคือ "Guest" คือ ...
(1)
${name?default("Guest")}
(2)
${name || "Guest"}
(3)
${name!Guest}
(4)
${name ?? "Guest"}
You got
/ 10
Viewers : 4,802
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs