หน้าแรก
(current)
บทเรียน
บทความ
โปรแกรมออนไลน์
โปรแกรมออนไลน์
->
โปรแกรมมิ่ง
->
โปรแกรมมิ่ง
แบบทดสอบ Freemarker Template
10 คำถาม
15 คำถาม
20 คำถาม
30 คำถาม
คำถามข้อที่ 1 (1 คะแนน)
เมื่อต้องการใช้ conditional statement ใน Freemarker ควรใช้ directive ใด?
(1)
<#if>
(2)
<#check>
(3)
<#condition>
(4)
<#verify>
คำถามข้อที่ 2 (1 คะแนน)
การทำ Nested Templates ใน Freemarker หมายถึง...
(1)
การสร้าง template ภายใน template
(2)
การสร้าง macro ที่มี macro ภายใน
(3)
การนำเข้าและใช้งานหลาย template ใน template เดียว
(4)
การสร้าง template ที่สามารถประมวลผลแบบ dynamic ได้
คำถามข้อที่ 3 (1 คะแนน)
Freemarker มีลักษณะเป็นอะไร?
(1)
Framework
(2)
Programming Language
(3)
Template Engine
(4)
Text Editor
คำถามข้อที่ 4 (1 คะแนน)
ซึ่ง directive ใดใช้สำหรับการสร้าง macro ใน Freemarker?
(1)
<#func>
(2)
<#define>
(3)
<#macro>
(4)
<#method>
คำถามข้อที่ 5 (1 คะแนน)
`${...}` ใช้เพื่ออะไร?
(1)
แสดงค่าของตัวแปร
(2)
การวนซ้ำ
(3)
การสร้าง directive
(4)
การสร้าง comment
คำถามข้อที่ 6 (1 คะแนน)
เมื่อต้องการสร้าง nested template ใน Freemarker, directive ใดที่สามารถใช้เพื่อนำเข้า template อื่น?
(1)
<#import>
(2)
<#include>
(3)
<#use>
(4)
<#load>
คำถามข้อที่ 7 (1 คะแนน)
เมื่อต้องการทำ nested template directive ใดที่ถูกใช้ใน Freemarker?
(1)
<#include>
(2)
<#nested>
(3)
<#embed>
(4)
<#insert>
คำถามข้อที่ 8 (1 คะแนน)
เมื่อมีตัวแปร map ชื่อ `userInfo` และต้องการเข้าถึงค่าจาก key ชื่อ "username", คำสั่งไหนที่ถูกต้อง?**
(1)
`${userInfo.username}`
(2)
`${userInfo('username')}`
(3)
`${userInfo[username]}`
(4)
`${userInfo["username"]}`
คำถามข้อที่ 9 (1 คะแนน)
การทำ loop สามารถใช้ directive ใด?
(1)
<#loop>
(2)
<#iterate>
(3)
<#foreach>
(4)
<#list>
คำถามข้อที่ 10 (1 คะแนน)
Directive ใดใน Freemarker ที่ใช้สำหรับการสร้าง macro?
(1)
`<@define>`
(2)
`<@macro>`
(3)
`<#function>`
(4)
`<#macro>`
คุณได้
/ 10
จำนวนคนดู : 5,592
โปรแกรมอื่นๆ
แบบทดสอบ Freemarker Template
บทเรียน
บทความ
โปรแกรมออนไลน์