หน้าแรก
(current)
บทเรียน
บทความ
โปรแกรมออนไลน์
โปรแกรมออนไลน์
->
โปรแกรมมิ่ง
->
โปรแกรมมิ่ง
แบบทดสอบ Freemarker Template
10 คำถาม
15 คำถาม
20 คำถาม
30 คำถาม
คำถามข้อที่ 1 (1 คะแนน)
ถ้าต้องการใช้คำสั่ง built-in สำหรับแปลง string เป็นตัวพิมพ์ใหญ่, ควรใช้คำสั่งใด?
(1)
upper()
(2)
toUpperCase()
(3)
caps()
(4)
?upper_case
คำถามข้อที่ 2 (1 คะแนน)
ถ้าต้องการทำ loop ผ่านรายการของ users, คำสั่งใดที่ถูกต้อง?
(1)
<#loop user in users> ...
(2)
<#foreach user in users> ...
(3)
<#for user : users> ...
(4)
<#list users as user> ... #list>
คำถามข้อที่ 3 (1 คะแนน)
สำหรับการสร้าง custom directive ใน Freemarker, คุณควรใช้ keyword ใด?
(1)
<#directive>
(2)
<@directive>
(3)
<#transform>
(4)
<@transform>
คำถามข้อที่ 4 (1 คะแนน)
ฟังก์ชันที่ใช้สำหรับการแปลงเป็น string คืออะไร?
(1)
.string()
(2)
.toString()
(3)
.asString()
(4)
.to_string
คำถามข้อที่ 5 (1 คะแนน)
ไฟล์ template สามารถประกอบไปด้วยอะไรบ้าง?
(1)
เฉพาะ HTML
(2)
เฉพาะ Java code
(3)
เฉพาะ directives และ expressions
(4)
Text, expressions, directives, comments และเนื้อหาอื่น ๆ
คำถามข้อที่ 6 (1 คะแนน)
Freemarker คืออะไร?
(1)
เครื่องมือสำหรับการทำ Web scraping
(2)
Framework สำหรับการพัฒนาเว็บ
(3)
Template engine สำหรับการสร้างเอกสารหรือหน้าเว็บ
(4)
Database management system
คำถามข้อที่ 7 (1 คะแนน)
เมื่อต้องการแปลง string เป็นเลข, ฟังก์ชันไหนที่เราควรใช้?**
(1)
`toNumber()`
(2)
`parseInt()`
(3)
`stringToNum()`
(4)
`convertToInt()`
คำถามข้อที่ 8 (1 คะแนน)
ถ้าต้องการวนซ้ำข้อมูลใน List ควรใช้ directive ใด?
(1)
<#list>
(2)
<#loop>
(3)
<#foreach>
(4)
<#iterate>
คำถามข้อที่ 9 (1 คะแนน)
เมื่อต้องการทำ nested template directive ใดที่ถูกใช้ใน Freemarker?
(1)
<#include>
(2)
<#nested>
(3)
<#embed>
(4)
<#insert>
คำถามข้อที่ 10 (1 คะแนน)
วิธีไหนที่ใช้เพื่อกำหนดค่า default หากตัวแปรไม่มีค่า?
(1)
${variable ?? `default`}
(2)
${variable | `default`}
(3)
${variable ?: `default`}
(4)
${variable! `default`}
คุณได้
/ 10
จำนวนคนดู : 7,073
โปรแกรมอื่นๆ
แบบทดสอบ Freemarker Template
บทเรียน
บทความ
โปรแกรมออนไลน์