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

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

University

10 Qs

quiz-placeholder

Similar activities

ระบบปฏิบัติการ ชุดที่ 1

ระบบปฏิบัติการ ชุดที่ 1

University

15 Qs

1 หลักการองค์ประกอบศิลป์

1 หลักการองค์ประกอบศิลป์

University

10 Qs

การสื่อสารยุคดิจิทัล (Digital Communication)

การสื่อสารยุคดิจิทัล (Digital Communication)

University

10 Qs

ความรู้เบื้องต้นเกี่ยวกับGoogle Apps

ความรู้เบื้องต้นเกี่ยวกับGoogle Apps

University

12 Qs

แบบทดสอบหลังเรียน เรื่อง ทฤษฎีของสี

แบบทดสอบหลังเรียน เรื่อง ทฤษฎีของสี

University

10 Qs

Computer and Computer System

Computer and Computer System

University

15 Qs

Quiz Flowchart

Quiz Flowchart

University

10 Qs

โปรแกรมประมวลผลคำ บทที่ 1 ByKrujang

โปรแกรมประมวลผลคำ บทที่ 1 ByKrujang

University

10 Qs

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

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

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

นางสาวศรารัตน์ วรรณแจ่ม

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

2.  จาก Source Code ต่อไปนี้ จะได้ผลลัพธ์คือ

Media Image
Media Image
Media Image
Media Image

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

ง.      ใช้การอ้างถึงชื่อคีย์ภายในวงเล็บ [ ]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers