
ข้อสอบก่อนเรียน หน่วยที่ 5 ชนิดข้อมูลสตริง (String)

Quiz
•
Computers
•
University
•
Hard
นางสาวศรารัตน์ วรรณแจ่ม
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. การระบุข้อมูลประเภทข้อความต้องใช้รูปแบบคำสั่งอย่างไร
ก. ระบุภายในเครื่องหมายคำพูดคู่ “Hello” หรือภายในเครื่องหมายคำพูดเดี่ยว ‘World’
ข. เครื่องหมายคำพูดที่ใช้จะต้องเปิด-ปิดแบบเดียวกัน
ค. นอกจากนี้ยังสามารถใส่เครื่องหมายพิเศษภายในได้โดยขึ้นต้นด้วยเครื่องหมาย \ (ทับกลับข้าง)
ง. ถูกทุกข้อ
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. ข้อใดเขียนคำสั่งประเภทข้อความ ไม่ถูกต้อง
ก. print("I'm 9")
ข. print('I'm 9')
ค. print('I\'m 9')
ง. print("I\'m 9")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. กำหนดให้ a = input() มีค่าเท่ากับ 10 b = input() มีค่าเท่ากับ 100 เมื่อใช้คำสั่ง print(a+b) จะได้ผลลัพธ์ตรงตามข้อใด
ก. 10+100
ข. 110
ค. 10100
ง. 10 100
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. การแปลงชนิดข้อมูลจำนวนเต็มเป็นชนิดข้อมูลสตริงต้องใช้ฟังก์ชั่นใด
ก. len()
ข. Srt()
ค. Str()
ง. String()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. การเขียนคำสั่งให้แสดงจำนวนอักขระในข้อความใช้ฟังก์ชั่นใด
ก. len()
ข. count()
ค. Str()
ง. String()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.กำหนดให้ name = “Paul Phoenix” ถ้าใช้คำสั่ง len(name) จะได้คำตอบเป็นท่าไหร่
ก. 10
ข. 11
ค. 12
ง. 13
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. ถ้าใช้คำสั่ง print name[6] จะตรงกับตัวอักษรตัวใด
ก. P
ข. h
ค. o
ง. e
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
ภาษา HTML

Quiz
•
University
10 questions
Windows

Quiz
•
University
10 questions
การปฏิสัมพันธ์และโมเดลปฏิสัมพันธ์

Quiz
•
University
15 questions
COM-SCI QUIZIZZ

Quiz
•
University
10 questions
การเขียนโปรแกรม Scratch

Quiz
•
4th Grade - University
10 questions
scratch

Quiz
•
University
10 questions
การเขียนโปรแกรมอย่างง่าย

Quiz
•
University
10 questions
Chapter 2 Java Basic2

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University