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)
สำหรับการสร้าง macro ใน Freemarker directive ใดที่ถูกใช้?
(1)
<#function>
(2)
<#macro>
(3)
<#procedure>
(4)
<#method>
Question 2 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 3 (1 Points)
อะไรที่ถูกพิจารณาว่าเป็น template engine สำหรับ Java platform?
(1)
Handlebars
(2)
EJS
(3)
Pug
(4)
Freemarker
Question 4 (1 Points)
ตัวแปรสามารถใช้งานได้ผ่าน...
(1)
$(variableName)
(2)
${variableName}
(3)
@(variableName)
(4)
&[variableName]
Question 5 (1 Points)
ตัวไหนไม่ใช่ built-in ของ Freemarker?
(1)
.size
(2)
.length
(3)
.cap_first
(4)
.upper_case
Question 6 (1 Points)
ถ้าต้องการทำ loop ผ่านรายการของ users, คำสั่งใดที่ถูกต้อง?
(1)
<#loop user in users> ...
(2)
<#foreach user in users> ...
(3)
<#for user : users> ...
(4)
<#list users as user> ... #list>
Question 7 (1 Points)
การทำ loop สามารถใช้ directive ใด?
(1)
<#loop>
(2)
<#iterate>
(3)
<#foreach>
(4)
<#list>
Question 8 (1 Points)
เมื่อต้องการเข้าถึง key ของ map ใน Freemarker, ควรใช้ syntax ใด?
(1)
map.key
(2)
map->key
(3)
map[key]
(4)
map:{key}
Question 9 (1 Points)
วิธีการแสดงค่าเริ่มต้นของตัวแปร name หากไม่มีค่าคือ "Guest" คือ ...
(1)
${name?default("Guest")}
(2)
${name || "Guest"}
(3)
${name!Guest}
(4)
${name ?? "Guest"}
Question 10 (1 Points)
หากต้องการแปลงค่าตัวแปรเป็นข้อความเพื่อแสดง, ใช้ function อะไร?
(1)
`.toString()`
(2)
`.asText()`
(3)
`.stringify()`
(4)
`.textify()`
You got
/ 10
Viewers : 7,698
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs