หน้าแรก
(current)
บทเรียน
บทความ
โปรแกรมออนไลน์
โปรแกรมออนไลน์
->
โปรแกรมมิ่ง
->
โปรแกรมมิ่ง
แบบทดสอบ Freemarker Template
10 คำถาม
15 คำถาม
20 คำถาม
30 คำถาม
คำถามข้อที่ 1 (1 คะแนน)
เมื่อต้องการใช้ template ซ้อนกัน (nested templates) คำสั่งใดที่ใช้?
(1)
<#include>
(2)
<#insert>
(3)
<#embed>
(4)
<#nest>
คำถามข้อที่ 2 (1 คะแนน)
เมื่อต้องการเข้าถึง key ของ map ใน Freemarker, ควรใช้ syntax ใด?
(1)
map.key
(2)
map->key
(3)
map[key]
(4)
map:{key}
คำถามข้อที่ 3 (1 คะแนน)
เมื่อต้องการ include template อื่นภายใน template ปัจจุบัน, ควรใช้คำสั่งใด?
(1)
<@include ...>
(2)
<#import ...>
(3)
<#include ...>
(4)
<@import ...>
คำถามข้อที่ 4 (1 คะแนน)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
คำถามข้อที่ 5 (1 คะแนน)
คำสั่งไหนที่สามารถใช้เพื่อแปลงข้อมูลเป็น string ใน Freemarker?
(1)
`asString()`
(2)
`.to_string`
(3)
`.string`
(4)
`toString()`
คำถามข้อที่ 6 (1 คะแนน)
ถ้าต้องการประกาศตัวแปรใหม่ใน template ควรใช้ directive ใด?
(1)
<#var>
(2)
<#declare>
(3)
<#set>
(4)
<#initialize>
คำถามข้อที่ 7 (1 คะแนน)
อะไรคือ directive สำหรับการตรวจสอบเงื่อนไขใน Freemarker?**
(1)
`<#if>`
(2)
`<#check>`
(3)
`<#condition>`
(4)
`<#verify>`
คำถามข้อที่ 8 (1 คะแนน)
`${...}` ใช้เพื่ออะไร?
(1)
แสดงค่าของตัวแปร
(2)
การวนซ้ำ
(3)
การสร้าง directive
(4)
การสร้าง comment
คำถามข้อที่ 9 (1 คะแนน)
การทำเงื่อนไข if-else ใน Freemarker ใช้ directive อะไร?
(1)
`<#if>`
(2)
`<#condition>`
(3)
`<#choose>`
(4)
`<#select>`
คำถามข้อที่ 10 (1 คะแนน)
การสร้าง macro ใน Freemarker ใช้ directive ไหน?
(1)
`<#define>`
(2)
`<#macro>`
(3)
`<#function>`
(4)
`<#template>`
คุณได้
/ 10
จำนวนคนดู : 5,316
โปรแกรมอื่นๆ
แบบทดสอบ Freemarker Template
บทเรียน
บทความ
โปรแกรมออนไลน์