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)
ไฟล์ template สามารถประกอบไปด้วยอะไรบ้าง?
(1)
เฉพาะ HTML
(2)
เฉพาะ Java code
(3)
เฉพาะ directives และ expressions
(4)
Text, expressions, directives, comments และเนื้อหาอื่น ๆ
Question 2 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
Question 3 (1 Points)
ถ้าต้องการจัดการข้อผิดพลาดที่เกิดขึ้นจากการไม่พบตัวแปร ควรใช้คำสั่งใด?
(1)
<#error>
(2)
<#missing>
(3)
<#try>
(4)
<#fail>
Question 4 (1 Points)
เมื่อต้องการใช้ conditional statement ใน Freemarker ควรใช้ directive ใด?
(1)
<#if>
(2)
<#check>
(3)
<#condition>
(4)
<#verify>
Question 5 (1 Points)
หากต้องการจัดการข้อผิดพลาดและแสดงข้อความ "An error occurred", directive ใดที่ควรใช้?**
(1)
`<#error>`
(2)
`<#fail>`
(3)
`<#catch>`
(4)
`<#attempt>`
Question 6 (1 Points)
ภายใน template, การเข้าถึง element ของ map ที่มี key เป็น "name" คือ ...
(1)
${map[name]}
(2)
${map.name}
(3)
map.get(name)
(4)
map->name
Question 7 (1 Points)
ข้อใดคือภาษาที่ Freemarker ใช้เป็นหลักในการทำงาน?
(1)
PHP
(2)
Java
(3)
Python
(4)
Ruby
Question 8 (1 Points)
การอ้างอิงตัวแปรทำได้โดยใช้เครื่องหมายใด?
(1)
@{}
(2)
$[]
(3)
${}
(4)
<()>
Question 9 (1 Points)
วิธีการรวม template อื่นใน Freemarker คือ?**
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#add>`
(4)
`<#append>`
Question 10 (1 Points)
อะไรที่ถูกใช้เป็น directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?
(1)
<#if>
(2)
<#condition>
(3)
<#check>
(4)
<#verify>
You got
/ 10
Viewers : 5,294
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs