
Xâu kí tự

Quiz
•
Computers
•
1st Grade
•
Hard
Ánh Trần
Used 3+ times
FREE Resource
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
Kiến thức về kiểu dữ liệu trong NNLT

Quiz
•
1st Grade - University
10 questions
SỬA BÀI KIỂM TRA HỌC KỲ - PHẦN 3

Quiz
•
1st Grade
10 questions
LỚP 10A3 - BÀI 25 - MỘT SỐ LỆNH LÀM VIỆC VỚI XÂU KÍ TỰ

Quiz
•
1st Grade
10 questions
củng cố bài 24

Quiz
•
1st Grade
10 questions
Tin học đại cương

Quiz
•
1st Grade
10 questions
KIỂM TRA THƯỜNG XUYÊN 3 - 10A1

Quiz
•
1st Grade
10 questions
Trắc nghiệm Tin học 8 - Bài 3

Quiz
•
1st - 12th Grade
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
PBIS Terrace View

Quiz
•
1st - 5th Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
9 questions
Good Citizenship and Responsibility

Interactive video
•
1st - 3rd Grade
20 questions
Number Words Challenge

Quiz
•
1st - 5th Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
7 questions
Science Safety

Quiz
•
1st - 2nd Grade
25 questions
Math Review

Quiz
•
1st Grade