หน้าแรก
(current)
บทเรียน
บทความ
โปรแกรมออนไลน์
โปรแกรมออนไลน์
->
โปรแกรมมิ่ง
->
โปรแกรมมิ่ง
แบบทดสอบ Freemarker Template
10 คำถาม
15 คำถาม
20 คำถาม
30 คำถาม
คำถามข้อที่ 1 (1 คะแนน)
หากต้องการเข้าถึงข้อมูลจาก Java object ใน Freemarker, วิธีไหนที่เหมาะสมที่สุด?**
(1)
ประกาศตัวแปรใน Java แล้วเรียกใช้ใน Freemarker โดยตรง
(2)
ใช้ reflection ใน Java แล้วส่งผลลัพธ์ไปยัง Freemarker
(3)
สร้าง DataModel แล้วส่งไปยัง Freemarker
(4)
เขียน code Java ภายใน Freemarker template
คำถามข้อที่ 2 (2 คะแนน)
การแทรกค่าแบบ escaped ใน HTML (เพื่อป้องกัน injection) ควรใช้รูปแบบใด?
(1)
${variable!}
(2)
${variable?html}
(3)
${variable?escape}
คำถามข้อที่ 3 (1 คะแนน)
ซึ่ง directive ใดที่ใช้สำหรับการจัดการ conditions ใน Freemarker?
(1)
<#cond>
(2)
<#if>
(3)
<#switch>
(4)
<#choice>
คำถามข้อที่ 4 (1 คะแนน)
ในการรวม templates หรือการใช้ nested templates, directive ใดที่ควรใช้?
(1)
<#include>
(2)
<#import>
(3)
<#nest>
(4)
<#embed>
คำถามข้อที่ 5 (1 คะแนน)
ในการสร้าง macro แบบนี้ `<@myMacro/>`, directive ไหนที่ใช้ในการกำหนด macro?**
(1)
`<#macro>`
(2)
`<#def>`
(3)
`<#function>`
(4)
`<#create>`
คำถามข้อที่ 6 (1 คะแนน)
แท็กไหนที่ใช้สำหรับการรวม templates อื่นเข้ามาใน template หลัก?**
(1)
<#insert>
(2)
<#include>
(3)
<#combine>
(4)
<#merge>
คำถามข้อที่ 7 (1 คะแนน)
สำหรับการเรียกใช้ macro ใน Freemarker ควรใช้รูปแบบใด?
(1)
<@macro_name>
(2)
<#macro_name>
(3)
<.macro_name>
(4)
<:macro_name>
คำถามข้อที่ 8 (1 คะแนน)
เมื่อต้องการทำ nested template directive ใดที่ถูกใช้ใน Freemarker?
(1)
<#include>
(2)
<#nested>
(3)
<#embed>
(4)
<#insert>
คำถามข้อที่ 9 (1 คะแนน)
Freemarker มีลักษณะเป็นอะไร?
(1)
Framework
(2)
Programming Language
(3)
Template Engine
(4)
Text Editor
คำถามข้อที่ 10 (1 คะแนน)
หากต้องการแปลงค่าตัวแปรเป็นข้อความเพื่อแสดง, ใช้ function อะไร?
(1)
`.toString()`
(2)
`.asText()`
(3)
`.stringify()`
(4)
`.textify()`
คุณได้
/ 11
จำนวนคนดู : 6,365
โปรแกรมอื่นๆ
แบบทดสอบ Freemarker Template
บทเรียน
บทความ
โปรแกรมออนไลน์