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)
หากต้องการเข้าถึงข้อมูลจาก Java object ใน Freemarker, วิธีไหนที่เหมาะสมที่สุด?**
(1)
ประกาศตัวแปรใน Java แล้วเรียกใช้ใน Freemarker โดยตรง
(2)
ใช้ reflection ใน Java แล้วส่งผลลัพธ์ไปยัง Freemarker
(3)
สร้าง DataModel แล้วส่งไปยัง Freemarker
(4)
เขียน code Java ภายใน Freemarker template
Question 2 (1 Points)
อะไรที่ถูกใช้เป็น directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?
(1)
<#if>
(2)
<#condition>
(3)
<#check>
(4)
<#verify>
Question 3 (1 Points)
ในการเริ่มต้นการใช้งาน Freemarker, ขั้นตอนแรกที่ควรทำคือ?**
(1)
ประกาศตัวแปร
(2)
ติดตั้ง Freemarker
(3)
สร้าง loop
(4)
ใช้ conditions
Question 4 (1 Points)
เมื่อต้องการใส่ค่าเริ่มต้นให้กับตัวแปรที่อาจไม่มีใน model ควรใช้...
(1)
?default
(2)
?exists
(3)
?isset
(4)
?value
Question 5 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 6 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
Question 7 (1 Points)
การนำเข้า template อื่นใช้ directive ไหน?
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#extend>`
(4)
`<#insert>`
Question 8 (1 Points)
Freemarker เป็น ...
(1)
Framework สำหรับ Web Development
(2)
ฐานข้อมูล SQL
(3)
Template Engine
(4)
Programming Language
Question 9 (1 Points)
อะไรที่ถูกพิจารณาว่าเป็น template engine สำหรับ Java platform?
(1)
Handlebars
(2)
EJS
(3)
Pug
(4)
Freemarker
Question 10 (1 Points)
วิธีใดที่ใช้สำหรับการแสดงตัวแปร?
(1)
[${variable}]
(2)
@variable@
(3)
{{variable}}
(4)
${variable}
You got
/ 10
Viewers : 5,290
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs