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)
ตัวไหนไม่ใช่ built-in ของ Freemarker?
(1)
.size
(2)
.length
(3)
.cap_first
(4)
.upper_case
Question 3 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการวนซ้ำใน Freemarker?
(1)
`<@iterate>`
(2)
`<#for>`
(3)
`<#list>`
(4)
`<#loop>`
Question 4 (1 Points)
สำหรับการเรียกใช้ macro ใน Freemarker ควรใช้รูปแบบใด?
(1)
<@macro_name>
(2)
<#macro_name>
(3)
<.macro_name>
(4)
<:macro_name>
Question 5 (1 Points)
ไฟล์ template สามารถประกอบไปด้วยอะไรบ้าง?
(1)
เฉพาะ HTML
(2)
เฉพาะ Java code
(3)
เฉพาะ directives และ expressions
(4)
Text, expressions, directives, comments และเนื้อหาอื่น ๆ
Question 6 (1 Points)
เมื่อต้องการแสดงค่าตัวแปรใน template ควรใช้สัญลักษณ์ใด?
(1)
${{variable}}
(2)
${variable}
(3)
{variable}
(4)
$(variable)
Question 7 (1 Points)
เมื่อต้องการสร้าง nested template ใน Freemarker, directive ใดที่สามารถใช้เพื่อนำเข้า template อื่น?
(1)
<#import>
(2)
<#include>
(3)
<#use>
(4)
<#load>
Question 8 (2 Points)
การแทรกค่าแบบ escaped ใน HTML (เพื่อป้องกัน injection) ควรใช้รูปแบบใด?
(1)
${variable!}
(2)
${variable?html}
(3)
${variable?escape}
Question 9 (1 Points)
Freemarker มีประเภทอย่างไร?
(1)
ภาษาโปรแกรม
(2)
ฐานข้อมูล
(3)
Template engine
(4)
บริการเว็บ
Question 10 (1 Points)
สำหรับการจัดการข้อผิดพลาด, directive ใดที่สามารถช่วยในการจัดการกับข้อผิดพลาด?
(1)
<#fail>
(2)
<#error>
(3)
<#catch>
(4)
<#attempt>
You got
/ 11
Viewers : 7,237
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs