wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

วิชาการเขียนโปรแกรมภาษา Pyhton รหัส 32201

Total questions: 20

Worksheet time: 21mins

Name
Class
Date
1.

ภาษา Python นั้นกำเนิดขึ้นในปีใด

a)

ค.ศ.1960

b)

ค.ศ.1970

c)

ค.ศ.1980

d)

ค.ศ.1990

2.

ภาษา Python นั้นถูกสร้างโดยผู้ใด

a)

Steve Jobs

b)

Charles Babbage

c)

Guido van Rossum

d)

Charles Babbage

3.

ข้อใดเป็นประเภทของข้อมูลชนิดจำนวนเต็ม

a)

Int

b)

String

c)

Float

d)

Bool

4.

ข้อใดเป็นประเภทของข้อมูลชนิดจำนวนจริง

a)

Int

b)

String

c)

Float

d)

Bool

5.

ข้อใดเป็นประเภทของข้อมูลชนิดอักขระ

a)

Int

b)

String

c)

Float

d)

Bool

6.

ข้อใดเป็นข้อมูลชนิด Int

a)

7

b)

7.77

c)

เจ็ด

d)

0.07

7.

ข้อใดเป็นข้อมูลชนิด Float

a)

7

b)

7.77

c)

เจ็ด

d)

77

8.

ข้อใดเป็นข้อมูลชนิด String

a)

7

b)

7.77

c)

เจ็ด

d)

77

9.

สัญลักษณ์ใดใช้ในแทนยกกำลัง

a)

/

b)

//

c)

*

d)

**

10.

สัญลักษณ์ใดใช้ในแทนหารปัดเศษ

a)

/

b)

//

c)

*

d)

**

11.

เครื่องมือที่ใช้เขียนโปรแกรม ภาษา Python คือข้อใด

a)

HDD

b)

LCD

c)

IDLE

d)

DVD

12.

นามสกุลที่ได้จากการบันทึกไฟล์ ภาษา Python คือข้อใด

a)

.CY

b)

.BY

c)

.PY

d)

.MY

13.

ข้อใดเป็นการประกาศตัวแปรในภาษา Python ถูกต้อง

a)

7zean

b)

ohOH!

c)

Student_id

d)

ed-edd-n-eddy

14.

ข้อใดคือคำสั่งรับข้อมูลชนิดจำนวนเต็มจากแป้นพิมพ์

a)

x = input("")

b)

x = int(input(""))

c)

x = float(input(""))

d)

x = input("").strip()

15.

ข้อใดคือคำสั่งรับข้อมูลชนิดจำนวนจริงจากแป้นพิมพ์

a)

x = input("")

b)

x = int(input(""))

c)

x = float(input(""))

d)

x = input("").strip()

16.

ข้อใดคือคำสั่งรับข้อมูลชนิดอักขระจากแป้นพิมพ์

a)

x = input("")

b)

x = int(input(""))

c)

x = float(input(""))

d)

x = input("").strip()

17.

คำสั่งใดใช้แสดงผลในภาษา Python

a)

If

b)

For

c)

Def

d)

Print

18.

ข้อใดคือคำสั่ง เพื่อเรียกใช้โมดูล หน้าต่างโปรแกรม

a)

from tkinter import *

b)

from tkinfinity import *

c)

from tkinternet import *

d)

from tkinternationnal import *

19.

ข้อใดคำสั่งสร้างหน้าจอโปรแกรม

a)

root = Tk

b)

root = Tk()

c)

root = Tk:

d)

root = Tk{}

20.

จากภาพ X อยู่ที่ตำแหน่งใด

a)

row = 1,column = 0

b)

row = 1,column = 1

c)

row = 2,column = 0

d)

row = 2,column = 1