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)
วิธีการแสดงตัวแปร `name` คือ?**
(1)
`{name}`
(2)
`$(name)`
(3)
`${name}`
(4)
`[name]`
Question 2 (1 Points)
ในการประมวลผล template, คลาสใดใน Java ที่ถูกใช้บ่อยเพื่อใช้งานกับ Freemarker?
(1)
TemplateConfig
(2)
TemplateEngine
(3)
FreeMarkerConfigurer
(4)
TemplateMaker
Question 3 (1 Points)
ถ้าต้องการจัดการข้อผิดพลาดที่เกิดขึ้นจากการไม่พบตัวแปร ควรใช้คำสั่งใด?
(1)
<#error>
(2)
<#missing>
(3)
<#try>
(4)
<#fail>
Question 4 (1 Points)
Freemarker คืออะไร?
(1)
JavaScript Framework
(2)
CSS Preprocessor
(3)
Java Template Engine
(4)
Database Management System
Question 5 (1 Points)
เมื่อต้องการแสดงข้อความเฉพาะเมื่อตัวแปร `isEmpty` มีค่าเป็น `true`, ควรใช้ directive ใด?
(1)
<#if isEmpty>
(2)
<#elseif isEmpty>
(3)
<#else isEmpty>
(4)
<#unless isEmpty>
Question 6 (1 Points)
Freemarker มีประเภทอย่างไร?
(1)
ภาษาโปรแกรม
(2)
ฐานข้อมูล
(3)
Template engine
(4)
บริการเว็บ
Question 7 (1 Points)
วิธีไหนที่ใช้เพื่อกำหนดค่า default หากตัวแปรไม่มีค่า?
(1)
${variable ?? `default`}
(2)
${variable | `default`}
(3)
${variable ?: `default`}
(4)
${variable! `default`}
Question 8 (1 Points)
เมื่อต้องการ include template อื่นเข้ามา, directive ใดที่ควรใช้?
(1)
<#import>
(2)
<#include>
(3)
<#embed>
(4)
<#join>
Question 9 (1 Points)
อะไรคือ directive ที่ใช้สำหรับการวนซ้ำใน Freemarker?
(1)
`<@iterate>`
(2)
`<#for>`
(3)
`<#list>`
(4)
`<#loop>`
Question 10 (1 Points)
การทำ loop สามารถใช้ directive ใด?
(1)
<#loop>
(2)
<#iterate>
(3)
<#foreach>
(4)
<#list>
You got
/ 10
Viewers : 6,821
Other Programs
Freemarker Template Quiz
Lessons
Articles
Online Programs