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)
เมื่อต้องการ include template อื่นภายใน template ปัจจุบัน, ควรใช้คำสั่งใด?
(1)
<@include ...>
(2)
<#import ...>
(3)
<#include ...>
(4)
<@import ...>
Question 2 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 3 (1 Points)
วิธีการแสดงตัวแปร `name` คือ?**
(1)
`{name}`
(2)
`$(name)`
(3)
`${name}`
(4)
`[name]`
Question 4 (1 Points)
แท็กไหนที่ใช้สำหรับการแสดงค่า default ในกรณีที่ตัวแปรไม่มีค่า?**
(1)
${variable!default}
(2)
${variable?default}
(3)
${variable=default}
(4)
${default?variable}
Question 5 (1 Points)
การทำเงื่อนไข if-else ใน Freemarker ใช้ directive อะไร?
(1)
`<#if>`
(2)
`<#condition>`
(3)
`<#choose>`
(4)
`<#select>`
Question 6 (1 Points)
หากต้องการเข้าถึงข้อมูลจาก Java object ใน Freemarker, วิธีไหนที่เหมาะสมที่สุด?**
(1)
ประกาศตัวแปรใน Java แล้วเรียกใช้ใน Freemarker โดยตรง
(2)
ใช้ reflection ใน Java แล้วส่งผลลัพธ์ไปยัง Freemarker
(3)
สร้าง DataModel แล้วส่งไปยัง Freemarker
(4)
เขียน code Java ภายใน Freemarker template
Question 7 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
Question 8 (1 Points)
เมื่อต้องการสร้าง macro, ควรใช้ directive ใด?**
(1)
<#func>
(2)
<#macro>
(3)
<#define>
(4)
<#method>
Question 9 (1 Points)
Freemarker เป็นอะไร?**
(1)
เป็นภาษาโปรแกรมมิ่ง
(2)
เป็น template engine
(3)
เป็น framework สำหรับเว็บ
(4)
เป็นระบบจัดการฐานข้อมูล
Question 10 (1 Points)
แท็กไหนที่ใช้สำหรับการรวม templates อื่นเข้ามาใน template หลัก?**
(1)
<#insert>
(2)
<#include>
(3)
<#combine>
(4)
<#merge>
You got
/ 10
Viewers : 3,477
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs