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)
ซึ่ง directive ใดที่ใช้สำหรับการจัดการ conditions ใน Freemarker?
(1)
<#cond>
(2)
<#if>
(3)
<#switch>
(4)
<#choice>
Question 2 (1 Points)
ไฟล์ template สามารถประกอบไปด้วยอะไรบ้าง?
(1)
เฉพาะ HTML
(2)
เฉพาะ Java code
(3)
เฉพาะ directives และ expressions
(4)
Text, expressions, directives, comments และเนื้อหาอื่น ๆ
Question 3 (1 Points)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
(1)
<#raw>
(2)
<#noparse>
(3)
<#noeval>
(4)
<#plaintext>
Question 4 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
Question 5 (1 Points)
เมื่อต้องการแสดงค่าตัวแปรใน template ควรใช้สัญลักษณ์ใด?
(1)
${{variable}}
(2)
${variable}
(3)
{variable}
(4)
$(variable)
Question 6 (1 Points)
หากต้องการทำ loop ใน Freemarker ควรใช้ directive ใด?
(1)
<#foreach>
(2)
<#iterate>
(3)
<#loop>
(4)
<#list>
Question 7 (1 Points)
การนำเข้า template อื่นใช้ directive ไหน?
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#extend>`
(4)
`<#insert>`
Question 8 (1 Points)
สำหรับการสร้าง custom directive ใน Freemarker, คุณควรใช้ keyword ใด?
(1)
<#directive>
(2)
<@directive>
(3)
<#transform>
(4)
<@transform>
Question 9 (1 Points)
หากต้องการใช้ macro, directive ใดที่ควรใช้?
(1)
<#def>
(2)
<#function>
(3)
<#macro>
(4)
<#method>
Question 10 (1 Points)
การใส่ comment ใน Freemarker template ที่จะไม่แสดงในผลลัพธ์สุดท้าย ควรใช้ syntax ใด?
(1)
(2)
// Comment
(3)
-- Comment --
(4)
<#-- Comment -->
You got
/ 10
Viewers : 6,356
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs