wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PYTHON Intermediate Level Exam (Afternoon class)

Total questions: 11

Worksheet time: 42mins

Name
Class
Date
1.

Programming language หมายถึงภาษาที่ใช้ในการกำหนดคำสั่งให้กับ computer แบบที่ต้องพิมพ์ดีดเป็นหลัก ข้อใดถูกต้องทั้งหมด?

a)

C, C++, LabView

b)

LabView, Python, Visual Basic

c)

Python, C, C++

d)

Scratch, LabView

2.

Visual Programming language หมายถึงภาษาที่ใช้ในการกำหนดคำสั่งให้กับ computer แบบที่ต้องใช้แผนภาพเสมือนและพิมพ์ดีดร่วมกัน ข้อใดถูกต้องทั้งหมด?

a)

C, C++, LabView

b)

LabView, Python, Visual Basic

c)

Python, C, C++

d)

Scratch, LabView

3.

ตัวแปรภาษาคอมพิวเตอร์หมายถึงข้อใด

a)

Transformer

b)

Compiler

c)

Interpreter

d)

Compiler and Interpreter

4.

What 's the meaning of CPU in computer?

(a)  

5.

ข้อใดกล่าวถึง IDE ใด้ถูกต้องมากที่สุด

a)

เครื่องมือหรือ Software ที่ช่วยในการพัฒนาโปรแกรมโดยมีสิ่งอำนวยความสะดวกต่างๆ

b)

Integrated Development Environment หมายถึงเครื่องมือหรือ Software ที่ช่วยในการพัฒนาโปรแกรมโดยมีสิ่งอำนวยความสะดวกต่างๆ ตัวอย่างของ IDE เช่น Visual Studio, PyCharm

c)

Integrated Development Environment หมายถึงเครื่องมือหรือ Software ที่ช่วยในการพัฒนาโปรแกรมโดยมีสิ่งอำนวยความสะดวกต่างๆ ตัวอย่างของ IDE เช่น ไขควง, ประแจเลื่อน

d)

ถูกต้องทุกข้อ

6.

จงใช้ Pycharm เพื่อเขียนโปรแกรม Python เพื่อนับขาสัตว์ดังต่อไปนี้ สุนัข 3 ตัว, เป็ด 5 ตัว , งู 12 ตัว และ กระต่าย 3 ตัว , กำหนดให้มีการใช้คำสั่ง input() ในการเขียนโปรแกรมด้วย

4 lines
7.

print("Red Green Blue\nRGB")

a)

Red Green Blue

b)

RedGreenBlue

RGB

c)

Red Green Blue

RGB

d)

RGB

8.

จงเขียนโปรแกรมคำนวนค่า Factorial เช่น ป้อน Input 5 จะได้ output = 120,

4 lines
9.

print("Good Morning\tI LOVE YOU")

a)

Good Morning (เว้น 1 tab) I LOVE YOU

b)

Good Morning I LOVE YOU

c)

I LOVE YOU

d)

Good Morning

10.

5 -15 / 3 + 2 ** 4 * 10 = ?

a)

-0.06

b)

160

c)

159

d)

2 ** 40

11.

เครื่องหมาย Operator การเปรียบเทียบแบบใดที่ตรงกันข้ามกับ !=

a)

<>

b)

===

c)

=

d)

==