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)
หากต้องการจัดการข้อผิดพลาดและแสดงข้อความ "An error occurred", directive ใดที่ควรใช้?**
(1)
`<#error>`
(2)
`<#fail>`
(3)
`<#catch>`
(4)
`<#attempt>`
Question 2 (1 Points)
ถ้าต้องการทำ loop ผ่านรายการของ users, คำสั่งใดที่ถูกต้อง?
(1)
<#loop user in users> ...
(2)
<#foreach user in users> ...
(3)
<#for user : users> ...
(4)
<#list users as user> ... #list>
Question 3 (1 Points)
การใช้ function `upper_case` เพื่อแปลง string เป็นตัวพิมพ์ใหญ่ใน Freemarker ควรใช้รูปแบบใด?
(1)
${string?upper_case}
(2)
${string!upper_case}
(3)
${string?uppercase}
(4)
${string?capitalized}
Question 4 (1 Points)
วิธีการแสดงตัวแปร `name` คือ ...
(1)
[name]
(2)
${name}
(3)
(name)
(4)
name{}
Question 5 (1 Points)
เมื่อใช้ Freemarker กับ Spring Framework, คลาสไหนที่ใช้สำหรับการตั้งค่า Freemarker?**
(1)
`FreeMarkerConfigurer`
(2)
`FreeMarkerInitializer`
(3)
`FreeMarkerSettings`
(4)
`TemplateConfig`
Question 6 (1 Points)
Freemarker เป็น ...
(1)
Framework สำหรับ Web Development
(2)
ฐานข้อมูล SQL
(3)
Template Engine
(4)
Programming Language
Question 7 (1 Points)
วิธีการรวม template อื่นใน Freemarker คือ?**
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#add>`
(4)
`<#append>`
Question 8 (1 Points)
เมื่อต้องการทำ nested template directive ใดที่ถูกใช้ใน Freemarker?
(1)
<#include>
(2)
<#nested>
(3)
<#embed>
(4)
<#insert>
Question 9 (1 Points)
เมื่อต้องการเข้าถึง key ของ map ใน Freemarker, ควรใช้ syntax ใด?
(1)
map.key
(2)
map->key
(3)
map[key]
(4)
map:{key}
Question 10 (1 Points)
หากต้องการเข้าถึงข้อมูลจาก Java object ใน Freemarker, วิธีไหนที่เหมาะสมที่สุด?**
(1)
ประกาศตัวแปรใน Java แล้วเรียกใช้ใน Freemarker โดยตรง
(2)
ใช้ reflection ใน Java แล้วส่งผลลัพธ์ไปยัง Freemarker
(3)
สร้าง DataModel แล้วส่งไปยัง Freemarker
(4)
เขียน code Java ภายใน Freemarker template
You got
/ 10
Viewers : 6,366
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs