
Hash vs List
Authored by Eig Lapnapanon
Instructional Technology, Science
1st - 10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
การ search หา value ของข้อมูลภายใน List มีประสิทธิภาพ Big O เป็นเท่าไหร่
O(1)
O(n)
O(n^2)
O(n log n)
Answer explanation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
หากเราสร้างข้อมูลหมายเลข 1 - 1,000,000 และเก็บ Value ไว้ภายในตัวแปร dictionary ด้วยการค้นหาข้อมูลจาก Key จะมีประสิทธิภาพ Big O เป็นเท่าไหร่
O(1)
O(n)
O(n log n)
O(n^2)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
หากเราสร้างข้อมูลหมายเลข 1 - 1,000,000 และเก็บ Value ไว้ภายในตัวแปร Hash Table ด้วยการค้นหาข้อมูลจาก Key จะมีประสิทธิภาพ Big O เป็นเท่าไหร่
O(1)
O(n)
O(n log n)
O(n^2)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าหากมีจำนวนข้อมูลน้อยๆ และต้อง search หาข้อมูลอย่างรวดเร็ว ควรใช้การเก็บข้อมูลรูปแบบใด
Dictionary
Hash Table
List
ทั้ง Dictionary และ Hash Table
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าหากมีจำนวนข้อมูลมากๆ และต้อง search หาข้อมูลอย่างรวดเร็ว ควรใช้การเก็บข้อมูลรูปแบบใด
Dictionary
Hash Table
List
ได้ทั้ง Dictionary และ Hash Table
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
หากเก็บผลลัพท์หมายเลข 1, 1, 2, 3, 3, 4, 5, 5 ลงใน List และ Hash ข้อใดถูกต้อง
(ตอบได้มากกว่า 1 ข้อ)
ข้อมูลที่อยู่ใน List จะมีค่าเป็น
1, 1, 2, 3, 3, 4, 5, 5
ข้อมูลที่อยู่ใน List จะมีค่าเป็น
1, 2, 3, 4, 5
ข้อมูลที่อยู่ใน Hash จะมีค่าเป็น
1, 1, 2, 3, 3, 4, 5, 5
ข้อมูลที่อยู่ใน Hash จะมีค่าเป็น
1, 2, 3, 4, 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ใน Collections Generic C# มี Hash Set ให้ใช้งานหรือไม่
มี
ไม่มี
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?