หน้าแรก
(current)
บทเรียน
บทความ
โปรแกรมออนไลน์
โปรแกรมออนไลน์
->
โปรแกรมมิ่ง
->
โปรแกรมมิ่ง
แบบทดสอบ Freemarker Template
10 คำถาม
15 คำถาม
20 คำถาม
30 คำถาม
คำถามข้อที่ 1 (1 คะแนน)
เมื่อต้องการ include template อื่นภายใน template ปัจจุบัน, ควรใช้คำสั่งใด?
(1)
<@include ...>
(2)
<#import ...>
(3)
<#include ...>
(4)
<@import ...>
คำถามข้อที่ 2 (1 คะแนน)
เมื่อต้องการแสดงข้อความเฉพาะเมื่อตัวแปร `isEmpty` มีค่าเป็น `true`, ควรใช้ directive ใด?
(1)
<#if isEmpty>
(2)
<#elseif isEmpty>
(3)
<#else isEmpty>
(4)
<#unless isEmpty>
คำถามข้อที่ 3 (1 คะแนน)
การสร้าง macro ใน Freemarker ใช้ directive ไหน?
(1)
`<#define>`
(2)
`<#macro>`
(3)
`<#function>`
(4)
`<#template>`
คำถามข้อที่ 4 (1 คะแนน)
อะไรคือ directive ที่ใช้สำหรับการวนซ้ำใน Freemarker?
(1)
`<@iterate>`
(2)
`<#for>`
(3)
`<#list>`
(4)
`<#loop>`
คำถามข้อที่ 5 (1 คะแนน)
ในการรวม templates หรือการใช้ nested templates, directive ใดที่ควรใช้?
(1)
<#include>
(2)
<#import>
(3)
<#nest>
(4)
<#embed>
คำถามข้อที่ 6 (1 คะแนน)
เมื่อต้องการใส่ค่าเริ่มต้นให้กับตัวแปรที่อาจไม่มีใน model ควรใช้...
(1)
?default
(2)
?exists
(3)
?isset
(4)
?value
คำถามข้อที่ 7 (1 คะแนน)
ถ้าต้องการวนซ้ำข้อมูลใน List ควรใช้ directive ใด?
(1)
<#list>
(2)
<#loop>
(3)
<#foreach>
(4)
<#iterate>
คำถามข้อที่ 8 (1 คะแนน)
Freemarker เป็น ...
(1)
Framework สำหรับ Web Development
(2)
ฐานข้อมูล SQL
(3)
Template Engine
(4)
Programming Language
คำถามข้อที่ 9 (1 คะแนน)
วิธีไหนที่ถูกต้องสำหรับการเข้าถึง value ของ key `name` ใน map `user`?
(1)
user.name
(2)
user{name}
(3)
user[name]
(4)
user-name
คำถามข้อที่ 10 (1 คะแนน)
อะไรคือ directive ที่ใช้สำหรับการทำ include ของ template อื่น?
(1)
`<@include>`
(2)
`<#include>`
(3)
`<@import>`
(4)
`<#nest>`
คุณได้
/ 10
จำนวนคนดู : 5,308
โปรแกรมอื่นๆ
แบบทดสอบ Freemarker Template
บทเรียน
บทความ
โปรแกรมออนไลน์