
Xâu kí tự
Quiz
•
Computers
•
1st Grade
•
Hard
Ánh Trần
Used 3+ times
FREE Resource
Enhance your content
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1: Cho xâu s="Bài tập"
print(s[2])
Sau khi thực hiện lệnh in cho kết quả?
'a'
'i'
' '
't'
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2: Để đưa ra độ dài của xâu cần dùng hàm nào?
remove()
append()
len()
clear()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3: cho đoạn chương trình:
s="abcdcd"
s[0]="A"
print(s[0])
Sau khi thực hiện đoạn chương trình trên kết quả của s[0] là:
'a'
'A'
'b'
chương trình bị lỗi
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4: Chương trình dưới đây thực hiện bài toán nào?
s=""
for i in range(10):
s=s+str[i]
print(s)
In một chuỗi kí tự từ 0 tới 10.
In một chuỗi kí tự từ 0 tới 9.
In một chuỗi kí tự từ 1 tới 10.
In một chuỗi kí tự từ 1 đến 9.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5: Để nhập vào một xâu từ bàn phím chọn lệnh?
<tên xâu>=input("nhập xâu")
<tên xâu>=int(input("nhập xâu"))
<tên xâu>=float(input("nhập xâu"))
<tên xâu>=print("nhập xâu")
Similar Resources on Wayground
10 questions
TIN HỌC 9: PHẦN MỀM TRÌNH CHIẾU
Quiz
•
1st - 7th Grade
8 questions
Tin4_ bài 1_ Khởi động
Quiz
•
1st - 5th Grade
10 questions
Tin học 3 - Phần mềm máy tính
Quiz
•
1st - 5th Grade
10 questions
Bài trình chiếu
Quiz
•
1st Grade
10 questions
KT 10
Quiz
•
1st Grade
10 questions
TRẮC NGHIỆM SCRATCH
Quiz
•
1st - 5th Grade
10 questions
TIN HỌC 12
Quiz
•
1st Grade
10 questions
Tuần 22- lớp 5
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
6 questions
Gravity
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
26 questions
SLIME!!!!!
Quiz
•
KG - 12th Grade
21 questions
D189 1st Grade OG 2a Concept 39-40
Quiz
•
1st Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade