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)
`${...}` ใช้เพื่ออะไร?
(1)
แสดงค่าของตัวแปร
(2)
การวนซ้ำ
(3)
การสร้าง directive
(4)
การสร้าง comment
Question 2 (1 Points)
ถ้าต้องการจัดการข้อผิดพลาดที่เกิดขึ้นจากการไม่พบตัวแปร ควรใช้คำสั่งใด?
(1)
<#error>
(2)
<#missing>
(3)
<#try>
(4)
<#fail>
Question 3 (1 Points)
วิธีการเขียน loop เพื่อวนซ้ำผ่านรายการของข้อมูลคืออะไร?
(1)
<#loop item in items>
(2)
<#each items as item>
(3)
<#list items as item>
(4)
<#foreach items as item>
Question 4 (1 Points)
ถ้าต้องการประกาศตัวแปรใหม่ใน template ควรใช้ directive ใด?
(1)
<#var>
(2)
<#declare>
(3)
<#set>
(4)
<#initialize>
Question 5 (1 Points)
ใน Freemarker, ตัวแปรสามารถประกาศได้โดยใช้สัญลักษณ์ใด?**
(1)
$(variable)
(2)
@@variable@@
(3)
${variable}
(4)
&&variable&&
Question 6 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
Question 7 (1 Points)
Freemarker มีลักษณะเป็นอะไร?
(1)
Framework
(2)
Programming Language
(3)
Template Engine
(4)
Text Editor
Question 8 (1 Points)
หากต้องการเข้าถึงข้อมูลจาก Java object ใน Freemarker, วิธีไหนที่เหมาะสมที่สุด?**
(1)
ประกาศตัวแปรใน Java แล้วเรียกใช้ใน Freemarker โดยตรง
(2)
ใช้ reflection ใน Java แล้วส่งผลลัพธ์ไปยัง Freemarker
(3)
สร้าง DataModel แล้วส่งไปยัง Freemarker
(4)
เขียน code Java ภายใน Freemarker template
Question 9 (1 Points)
การใช้ conditions ใน Freemarker ทำได้โดยใช้คำสั่งใด?
(1)
<#if ...> ...
(2)
<#condition ...> ...
(3)
<#cond ...> ...
(4)
<#switch ...> ...
Question 10 (1 Points)
อะไรที่ถูกพิจารณาว่าเป็น template engine สำหรับ Java platform?
(1)
Handlebars
(2)
EJS
(3)
Pug
(4)
Freemarker
You got
/ 10
Viewers : 5,778
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs