
Câu hỏi về lập trình Python

Quiz
•
Computers
•
10th Grade
•
Hard
Tran Khuu
Used 5+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau nếu s = "python1221" là gì? s = input("Nhập xâu kí tự bất kì:") kq = False for i in range(len(s)-1): if s[i] == "2" and s[i+1] == "1": kq = True break print(kq)
True.
False.
Chương trình bị lỗi.
Vòng lặp vô hạn.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu rỗng là xâu có độ dài bằng bao nhiêu?
1.
2.
0.
3.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình trên giải quyết bài toán gì? s = "" ư 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.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để biết độ dài của xâu s ta dùng hàm gì?
str(s).
len(s).
length(s).
s.len().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu xâu kí tự nào hợp lệ? 1) "123_@##" 2) "hoa hau" 3) "346h7g84jd" 4) python 5) "01028475" 6) 123456
5.
6.
4.
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho s = "123456abcdefg", s1 = "124", s2 = "235", s3 = "ab", s4 = "56" + s3 Có bao nhiêu biểu thức lôgic sau đúng? 1) s1 in s. 2) s2 in s. 3) s3 in s. 4) s4 in s.
1.
2.
3.
4.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu? >>> s = "abcdefg" >>> print(s[2])
'c'.
'b'.
'a'.
'd'.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Kiểm tra TX

Quiz
•
10th Grade
20 questions
CÂU HỎI ÔN TẬP BÀI 16 17 18

Quiz
•
10th Grade
25 questions
ÔN TẬP GIỮA KỲ 2 TIN 10 KNTT

Quiz
•
10th Grade
28 questions
ôn thi cuối kì 2

Quiz
•
10th Grade
20 questions
LỚP 10 BÀI KTTX - LẦN 1 KÌ II

Quiz
•
10th Grade
20 questions
OOP 1

Quiz
•
10th Grade
20 questions
Name the Cartoon Network Shows

Quiz
•
KG - University
27 questions
TIN 10 KNTT ÔN TẬP GK2 BÀI 24-25

Quiz
•
10th 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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade