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)
วิธีการแสดงตัวแปร `name` คือ?**
(1)
`{name}`
(2)
`$(name)`
(3)
`${name}`
(4)
`[name]`
Question 2 (2 Points)
การแทรกค่าแบบ escaped ใน HTML (เพื่อป้องกัน injection) ควรใช้รูปแบบใด?
(1)
${variable!}
(2)
${variable?html}
(3)
${variable?escape}
Question 3 (1 Points)
ในการสร้าง macro แบบนี้ `<@myMacro/>`, directive ไหนที่ใช้ในการกำหนด macro?**
(1)
`<#macro>`
(2)
`<#def>`
(3)
`<#function>`
(4)
`<#create>`
Question 4 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการทำ include ของ template อื่น?
(1)
`<@include>`
(2)
`<#include>`
(3)
`<@import>`
(4)
`<#nest>`
Question 5 (1 Points)
Freemarker เป็นอะไร?
(1)
เครื่องมือสำหรับการประมวลผลภาษา Java
(2)
Template engine สำหรับ Java
(3)
Framework สำหรับการพัฒนาเว็บ
(4)
ฐานข้อมูลสำหรับเว็บ
Question 6 (1 Points)
เมื่อต้องการใช้ conditional statement ใน Freemarker ควรใช้ directive ใด?
(1)
<#if>
(2)
<#check>
(3)
<#condition>
(4)
<#verify>
Question 7 (1 Points)
Freemarker มีประเภทอย่างไร?
(1)
ภาษาโปรแกรม
(2)
ฐานข้อมูล
(3)
Template engine
(4)
บริการเว็บ
Question 8 (1 Points)
การทำ Nested Templates ใน Freemarker หมายถึง...
(1)
การสร้าง template ภายใน template
(2)
การสร้าง macro ที่มี macro ภายใน
(3)
การนำเข้าและใช้งานหลาย template ใน template เดียว
(4)
การสร้าง template ที่สามารถประมวลผลแบบ dynamic ได้
Question 9 (1 Points)
อะไรคือ syntax ที่ถูกต้องสำหรับการตรวจสอบเงื่อนไขใน Freemarker?
(1)
<#if condition>
(2)
<#check condition>
(3)
<#condition>
(4)
<#test condition>
Question 10 (1 Points)
เครื่องหมาย `!` ใน `${variable!}` มีวัตถุประสงค์เพื่ออะไร?
(1)
กำหนดค่า default ถ้าตัวแปรไม่มีค่า
(2)
แสดงค่าของตัวแปรเสมอ ไม่ว่าจะมีหรือไม่มี
(3)
แสดง error ถ้าตัวแปรไม่มีค่า
(4)
สร้าง loop
You got
/ 11
Viewers : 5,145
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs