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)
<#error>
(2)
<#missing>
(3)
<#try>
(4)
<#fail>
Question 2 (1 Points)
การใส่ comment ใน Freemarker template ที่จะไม่แสดงในผลลัพธ์สุดท้าย ควรใช้ syntax ใด?
(1)
(2)
// Comment
(3)
-- Comment --
(4)
<#-- Comment -->
Question 3 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 4 (1 Points)
ไฟล์ template สามารถประกอบไปด้วยอะไรบ้าง?
(1)
เฉพาะ HTML
(2)
เฉพาะ Java code
(3)
เฉพาะ directives และ expressions
(4)
Text, expressions, directives, comments และเนื้อหาอื่น ๆ
Question 5 (1 Points)
ในการสร้าง custom directive, คลาสไหนใน Java ที่ควรถูก implement?**
(1)
Directive
(2)
TemplateDirective
(3)
TemplateDirectiveModel
(4)
CustomDirective
Question 6 (1 Points)
การใช้ function `upper_case` เพื่อแปลง string เป็นตัวพิมพ์ใหญ่ใน Freemarker ควรใช้รูปแบบใด?
(1)
${string?upper_case}
(2)
${string!upper_case}
(3)
${string?uppercase}
(4)
${string?capitalized}
Question 7 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการตรวจสอบเงื่อนไขใน Freemarker?
(1)
`<#if>`
(2)
`<@if>`
(3)
`<#check>`
(4)
`<@condition>`
Question 8 (1 Points)
หากต้องการแปลงค่าตัวแปรเป็นข้อความเพื่อแสดง, ใช้ function อะไร?
(1)
`.toString()`
(2)
`.asText()`
(3)
`.stringify()`
(4)
`.textify()`
Question 9 (1 Points)
วิธีการแสดงตัวแปร `name` คือ?**
(1)
`{name}`
(2)
`$(name)`
(3)
`${name}`
(4)
`[name]`
Question 10 (1 Points)
อะไรที่ถูกพิจารณาว่าเป็น template engine สำหรับ Java platform?
(1)
Handlebars
(2)
EJS
(3)
Pug
(4)
Freemarker
You got
/ 10
Viewers : 5,783
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs