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)
เมื่อต้องการแสดงข้อความเฉพาะเมื่อตัวแปร `isEmpty` มีค่าเป็น `true`, ควรใช้ directive ใด?
(1)
<#if isEmpty>
(2)
<#elseif isEmpty>
(3)
<#else isEmpty>
(4)
<#unless isEmpty>
Question 2 (1 Points)
ถ้าต้องการใช้คำสั่ง built-in สำหรับแปลง string เป็นตัวพิมพ์ใหญ่, ควรใช้คำสั่งใด?
(1)
upper()
(2)
toUpperCase()
(3)
caps()
(4)
?upper_case
Question 3 (1 Points)
วิธีการแสดงตัวแปร `name` คือ ...
(1)
[name]
(2)
${name}
(3)
(name)
(4)
name{}
Question 4 (1 Points)
การทำ loop สามารถใช้ directive ใด?
(1)
<#loop>
(2)
<#iterate>
(3)
<#foreach>
(4)
<#list>
Question 5 (1 Points)
ใน Freemarker, การอ้างถึงตัวแปรใช้เครื่องหมายใด?
(1)
{}
(2)
[]
(3)
()
(4)
${}
Question 6 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
Question 7 (1 Points)
ซึ่ง directive ใดที่ใช้สำหรับการจัดการ conditions ใน Freemarker?
(1)
<#cond>
(2)
<#if>
(3)
<#switch>
(4)
<#choice>
Question 8 (1 Points)
เมื่อใช้ Freemarker กับ Spring Framework, คลาสไหนที่ใช้สำหรับการตั้งค่า Freemarker?**
(1)
`FreeMarkerConfigurer`
(2)
`FreeMarkerInitializer`
(3)
`FreeMarkerSettings`
(4)
`TemplateConfig`
Question 9 (1 Points)
Freemarker คืออะไร?
(1)
JavaScript Framework
(2)
CSS Preprocessor
(3)
Java Template Engine
(4)
Database Management System
Question 10 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
You got
/ 10
Viewers : 4,949
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs