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)
ควรใช้ directive ใดเมื่อต้องการพิมพ์ค่าออกมาโดยไม่ประมวลผลบางส่วนของ template?
(1)
<#raw>
(2)
<#noparse>
(3)
<#noeval>
(4)
<#plaintext>
Question 2 (1 Points)
ภายใน template, การเข้าถึง element ของ map ที่มี key เป็น "name" คือ ...
(1)
${map[name]}
(2)
${map.name}
(3)
map.get(name)
(4)
map->name
Question 3 (1 Points)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
Question 4 (1 Points)
วิธีไหนที่ใช้เพื่อกำหนดค่า default หากตัวแปรไม่มีค่า?
(1)
${variable ?? `default`}
(2)
${variable | `default`}
(3)
${variable ?: `default`}
(4)
${variable! `default`}
Question 5 (1 Points)
อะไรที่ถูกใช้เป็น directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?
(1)
<#if>
(2)
<#condition>
(3)
<#check>
(4)
<#verify>
Question 6 (1 Points)
จากตัวเลือกต่อไปนี้ อันไหนไม่ใช่ built-in ของ Freemarker?
(1)
upper_case
(2)
length
(3)
size
(4)
split
Question 7 (1 Points)
เมื่อต้องการใช้ conditional statement ใน Freemarker ควรใช้ directive ใด?
(1)
<#if>
(2)
<#check>
(3)
<#condition>
(4)
<#verify>
Question 8 (1 Points)
Macro ใน Freemarker ทำหน้าที่คล้ายกับอะไรในภาษาโปรแกรมอื่นๆ?
(1)
Variables
(2)
Directives
(3)
Functions
(4)
Conditions
Question 9 (1 Points)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
Question 10 (1 Points)
วิธีการรวม template อื่นใน Freemarker คือ?**
(1)
`<#import>`
(2)
`<#include>`
(3)
`<#add>`
(4)
`<#append>`
You got
/ 10
Viewers : 5,779
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs