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)
ข้อใดคือภาษาที่ Freemarker ใช้เป็นหลักในการทำงาน?
(1)
PHP
(2)
Java
(3)
Python
(4)
Ruby
Question 2 (1 Points)
สำหรับการสร้าง custom directive ใน Freemarker, คุณควรใช้ keyword ใด?
(1)
<#directive>
(2)
<@directive>
(3)
<#transform>
(4)
<@transform>
Question 3 (1 Points)
หากต้องการเข้าถึงข้อมูลจาก Java object ใน Freemarker, วิธีไหนที่เหมาะสมที่สุด?**
(1)
ประกาศตัวแปรใน Java แล้วเรียกใช้ใน Freemarker โดยตรง
(2)
ใช้ reflection ใน Java แล้วส่งผลลัพธ์ไปยัง Freemarker
(3)
สร้าง DataModel แล้วส่งไปยัง Freemarker
(4)
เขียน code Java ภายใน Freemarker template
Question 4 (1 Points)
อะไรคือ directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?**
(1)
`<#if>`
(2)
`<#check>`
(3)
`<#condition>`
(4)
`<#verify>`
Question 5 (1 Points)
การกำหนด macro ทำได้โดยใช้คำสั่งใด?
(1)
<@define ...>
(2)
<#macro ...>
(3)
<@macro ...>
(4)
<#define ...>
Question 6 (1 Points)
ในการประมวลผล template หากเกิดข้อผิดพลาด `TemplateException` มันหมายความว่าอะไร?
(1)
ไม่พบ template
(2)
การเชื่อมต่อฐานข้อมูลล้มเหลว
(3)
มีปัญหาเกี่ยวกับการแปลงข้อมูล
(4)
ผิดพลาดที่เกี่ยวกับ template ระหว่างการประมวลผล
Question 7 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการวนซ้ำใน Freemarker?
(1)
`<@iterate>`
(2)
`<#for>`
(3)
`<#list>`
(4)
`<#loop>`
Question 8 (1 Points)
สำหรับการจัดการข้อผิดพลาด, directive ใดที่ใช้บ่อยใน Freemarker?
(1)
<#fail>
(2)
<#error>
(3)
<#break>
(4)
<#attempt>
Question 9 (1 Points)
ตัวไหนไม่ใช่ built-in ของ Freemarker?
(1)
.size
(2)
.length
(3)
.cap_first
(4)
.upper_case
Question 10 (1 Points)
วิธีการรวม template อื่นใน Freemarker คือ?**
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#add>`
(4)
`<#append>`
You got
/ 10
Viewers : 5,289
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs