
ข้อสอบก่อนเรียนหน่วยที่ 6 โครงสร้างข้อมูลภาษาไพธอน

Quiz
•
Computers
•
University
•
Medium
นางสาวศรารัตน์ วรรณแจ่ม
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
1. จากคำสั่งต่อไปนี้จะได้ผลลัพธ์คือ s = 'anaconda' print('length of s =', len(s))
ก. length of s = 7
ข. length of s = 8
ค. length of s = 9
ง. length of s = 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. จาก Source Code ต่อไปนี้ จะได้ผลลัพธ์คือ
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. ข้อใดเป็นตัวแปรชนิด List
ก. a = {1, 2, 3, 4, 5}
ข. a = (1, 2, 3, 4, 5)
ค. a = <1, 2, 3, 4, 5>
ง. a = [1, 2, 3, 4, 5]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. ข้อใดเป็นตัวแปรชนิด Tuple
ก. a = (1, 2, 3, 4, 5)
ข. a = {1, 2, 3, 4, 5}
ค. a = [1, 2, 3, 4, 5]
ง. a = <1, 2, 3, 4, 5>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. ข้อใดเป็นตัวแปรชนิด Dictionary
ก. a = {'quantity' => 2, 'Price' => 20}
ข. a = {'quantity' : 2, 'Price' : 20}
ค. a = ('quantity' => 2, 'Price' => 20)
ง. a = ('quantity' : 2, 'Price' : 20)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. ข้อใด บอกความแตกต่างระหว่างข้อมูลชนิด List กับ Tuple ได้ถูกต้อง
ก. List กับ Tuple ใช้ index ในการเข้าถึงข้อมูล
ข. List สามารถเปลี่ยนแปลงข้อมูลได้ Tuple ไม่สามารถเปลี่ยนแปลงข้อมูลได้
ค. List กับ Tuple ใช้สัญลักษณ์ { } ในการเก็บข้อมูล
ง. ข้อก. และ ข.ถูก
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.ข้อมูล Mobile = {"apple", "sumsung", "oppo"} หากต้องการเข้าถึงข้อมูล "sumsung" ต้องใช้วิธีการใด
ก. ใช้ เมธอด .index
ข. ใช้การวนลูป for
ค. ใช้การเข้าถึงโดยกำหนดจุดเริ่มต้นและสิ้นสุดของตำแหน่ง index
ง. ใช้การอ้างถึงชื่อคีย์ภายในวงเล็บ [ ]
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
การใช้โปรแกรมเป็นธุรกิจสตาร์ทอัพ

Quiz
•
University
10 questions
ทดสอบก่อนเรียน การรู้ดิจิทัล

Quiz
•
University
15 questions
รู้เท่าทันสื่อ

Quiz
•
University
10 questions
หน่วยที่ 2 Big Data

Quiz
•
University
15 questions
ทบทวนป.2/68 เทอม 2

Quiz
•
2nd Grade - University
11 questions
Regular Expressions

Quiz
•
University
10 questions
ประโยชน์ของการสื่อสารข้อมูลและโปรแกรมที่ไม่พึงประสงค์

Quiz
•
University
10 questions
สิทธิและหน้าที่ของผู้ใช้อินเทอร์เน็ต

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University