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)
เมื่อต้องการแปลง string เป็นเลข, ฟังก์ชันไหนที่เราควรใช้?**
(1)
`toNumber()`
(2)
`parseInt()`
(3)
`stringToNum()`
(4)
`convertToInt()`
Question 2 (1 Points)
เมื่อต้องการ include template อื่นภายใน template ปัจจุบัน, ควรใช้คำสั่งใด?
(1)
<@include ...>
(2)
<#import ...>
(3)
<#include ...>
(4)
<@import ...>
Question 3 (1 Points)
Freemarker เป็นอะไร?**
(1)
เป็นภาษาโปรแกรมมิ่ง
(2)
เป็น template engine
(3)
เป็น framework สำหรับเว็บ
(4)
เป็นระบบจัดการฐานข้อมูล
Question 4 (1 Points)
ถ้าต้องการประกาศตัวแปรใหม่ใน template ควรใช้ directive ใด?
(1)
<#var>
(2)
<#declare>
(3)
<#set>
(4)
<#initialize>
Question 5 (1 Points)
เมื่อต้องการใส่ค่าเริ่มต้นให้กับตัวแปรที่อาจไม่มีใน model ควรใช้...
(1)
?default
(2)
?exists
(3)
?isset
(4)
?value
Question 6 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
Question 7 (1 Points)
ถ้าต้องการเรียงลำดับ elements ของ list, function ใดที่ Freemarker ใช้ได้?
(1)
sort()
(2)
order()
(3)
arrange()
(4)
sequence()
Question 8 (1 Points)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
(1)
<#raw>
(2)
<#noparse>
(3)
<#noeval>
(4)
<#plaintext>
Question 9 (1 Points)
การกำหนด macro ทำได้โดยใช้คำสั่งใด?
(1)
<@define ...>
(2)
<#macro ...>
(3)
<@macro ...>
(4)
<#define ...>
Question 10 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการทำ include ของ template อื่น?
(1)
`<@include>`
(2)
`<#include>`
(3)
`<@import>`
(4)
`<#nest>`
You got
/ 10
Viewers : 6,942
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs