
ข้อสอบก่อนเรียน หน่วยที่ 3 ตัวแปรการกำหนดค่าและชนิดข้อมูล

Quiz
•
Computers
•
12th Grade
•
Hard
นางสาวศรารัตน์ วรรณแจ่ม
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใด ไม่ใช่ วิธีการตั้งชื่อตัวแปรที่ถูกต้อง
ชื่อตัวแปรจะต้องเริ่มต้นด้วยตัวอักษรหรือตัวอักษรขีดล่าง_(Underscore)
ชื่อตัวแปรสามารถเริ่มต้นด้วยตัวเลขได้
ชื่อตัวแปรสามารถมีได้ทั้งตัวอักษรตัวเลขและขีดล่าง (Az, 0-9 และ _)
ชื่อตัวแปรตัวพิมพ์เล็กและตัวพิมพ์ใหญ่จะแตกต่างกัน เรียกว่าเป็น case sensitive
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
2.จงพิจารณาการตั้งชื่อตัวแปรต่อไปนี้ว่าข้อใดผิด
ก. 5not
ข. Num
ค. Product_id
ง. Grade
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
3.ข้อใดคือคำสงวนในไพทอน
ก. Import
ข. Continue
ค. Global
ง. ถูกทุกข้อ
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. ตัวแปรชนิดใดคือชนิดที่เป็น Complex ไม่ต้องใช้คำสั่ง import ก็สามารถทำงานได้
ก. Time
ข. Date
ค. MySQL.Connect
ง. Float
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
5. ข้อใดทำการแปลงข้อมูลชนิดสตริงเป็นจำนวนทศนิยมได้ถูกต้อง
ก. y = float(x) + flo
ข. flo = float(input("กรุณาป้อนตัวเลขของคุณ : "))
ค. float(152.124)
ง. x = "152.124"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. ข้อใด ใช้ฟังก์ชั่นการแปลงเลขฐานที่ต้องการเป็นเลขฐานแปดที่ถูกต้อง กำหนดให้ x = 6749
ก. print (bin(x))
ข. print (hex (x))
ค. print (int (x))
ง. print (oct(x))
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
7. กำหนดให้ b = 251.147e-2 ตัวอังษร e มีความหมายว่าอย่างไร
ก. ใช้เพื่อระบุเลขยกกำลังของ 7
ข ใช้เพื่อระบุเลขยกกำลังของ -2
ค. ใช้เพื่อระบุของ 10 ยกกำลังของ -2
ง. ไม่มีข้อใดถูกต้อง
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
การเขียนโปรแกรม Scratch

Quiz
•
4th Grade - University
10 questions
ม.1 หลักการเขียนโปรแกรม

Quiz
•
9th - 12th Grade
10 questions
20204-2107 บทที่5

Quiz
•
1st Grade - University
13 questions
การใช้เทคโนโลยีสารสนเทศอย่างรู้เท่าทันและปลอดภัย

Quiz
•
6th - 12th Grade
10 questions
python in math m5-0163

Quiz
•
7th - 12th Grade
11 questions
โปรแกรมภาษา

Quiz
•
9th - 12th Grade
5 questions
ทบทวนออกแบบและเขียนโปรแกรม

Quiz
•
12th Grade
15 questions
Unit4-รหัสเทียม

Quiz
•
12th Grade
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade