Worksheetsแบบทดสอบวิชาภาษา Python สำหรับมหาลัยปี1
Total questions: 10
Worksheet time: 5mins
Python เป็นภาษาโปรแกรมชนิดใด?
Object-Oriented Language
Markup Language
Database Language
Scripting Language
การใช้ # ใน Python มีหน้าที่อะไร?
ใช้สำหรับสร้างลูป
ใช้สำหรับสร้างฟังก์ชัน
ใช้สำหรับสร้างตัวแปร
การ comment หรือเป็น annotation ในโค้ด
ใน Python, การใช้ print() จะทำอะไร?
คำนวณค่า
เปิดไฟล์
สร้างตัวแปรใหม่
แสดงข้อความหรือข้อมูลที่ต้องการบนหน้าจอ
จงอธิบายคำว่า 'SyntaxError' ใน Python
SyntaxError is a type of error that occurs when the code is executed on a non-Python platform.
SyntaxError is a warning message that can be ignored during code execution.
SyntaxError is a type of error that occurs when the parser encounters a syntax that does not conform to the language grammar rules.
SyntaxError is a result of incorrect indentation in Python code.
ใน Python, การใช้ '==' มีหน้าที่อะไร?
การเปรียบเทียบค่าของสองคลาส
การเปรียบเทียบค่าของสองฟังก์ชัน
การเปรียบเทียบค่าของสองลิสต์
การเปรียบเทียบค่าของสองตัวแปร
ใน Python, การใช้ 'for' loop มีหน้าที่อะไร?
การเปลี่ยนแปลงค่าของตัวแปร
การสร้างตัวแปร
การเรียกใช้ฟังก์ชัน
การทำซ้ำคำสั่ง
คำสั่ง 'input()' ใน Python มีหน้าที่อะไร?
It is used to import external libraries in Python.
It is used to take user input from the console.
It is used to define a function in Python.
It is used to print output to the console.
ใน Python, การใช้ 'len()' มีหน้าที่อะไร?
To check if a container is empty
To add a new item to a container
To reverse the order of items in a container
To return the number of items in a container
คำสั่ง 'range()' ใน Python มีหน้าที่อะไร?
Generate a sequence of numbers
Sort a list of strings alphabetically
Generate a random string
Calculate the square root of a number
การใช้ 'if' และ 'else' ใน Python มีหน้าที่อะไร?
if และ else ใช้ใน Python เพื่อการเชื่อมโยงข้อมูล
if และ else ใช้ใน Python เพื่อควบคุมการทำงานของโปรแกรมตามเงื่อนไขที่กำหนด
if และ else ใช้ใน Python เพื่อสร้างฟังก์ชัน
if และ else ใช้ใน Python เพื่อสร้างลูป
