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)
Framework
(2)
Programming Language
(3)
Template Engine
(4)
Text Editor
Question 2 (1 Points)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
(1)
<#raw>
(2)
<#noparse>
(3)
<#noeval>
(4)
<#plaintext>
Question 3 (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 4 (1 Points)
เมื่อต้องการแสดงข้อความเฉพาะเมื่อตัวแปร `isEmpty` มีค่าเป็น `true`, ควรใช้ directive ใด?
(1)
<#if isEmpty>
(2)
<#elseif isEmpty>
(3)
<#else isEmpty>
(4)
<#unless isEmpty>
Question 5 (1 Points)
สำหรับการเรียกใช้ macro ใน Freemarker ควรใช้รูปแบบใด?
(1)
<@macro_name>
(2)
<#macro_name>
(3)
<.macro_name>
(4)
<:macro_name>
Question 6 (1 Points)
อะไรคือ directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?**
(1)
`<#if>`
(2)
`<#check>`
(3)
`<#condition>`
(4)
`<#verify>`
Question 7 (1 Points)
หากต้องการทำ loop ใน Freemarker ควรใช้ directive ใด?
(1)
<#foreach>
(2)
<#iterate>
(3)
<#loop>
(4)
<#list>
Question 8 (1 Points)
ฟังก์ชันที่ใช้สำหรับการแปลงเป็น string คืออะไร?
(1)
.string()
(2)
.toString()
(3)
.asString()
(4)
.to_string
Question 9 (1 Points)
สำหรับการจัดการข้อผิดพลาด, ถ้าต้องการที่จะเรียกใช้ block อื่นเมื่อเกิดข้อผิดพลาด ควรใช้ ...
(1)
<#else>
(2)
<#catch>
(3)
<#recover>
(4)
<#fallback>
Question 10 (1 Points)
ถ้าต้องการจัดการข้อผิดพลาดที่เกิดขึ้นจากการไม่พบตัวแปร ควรใช้คำสั่งใด?
(1)
<#error>
(2)
<#missing>
(3)
<#try>
(4)
<#fail>
You got
/ 10
Viewers : 5,300
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs