
Quiz về lập trình Python

Quiz
•
Others
•
10th Grade
•
Hard
Duy Anh Nguyên
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1. Biểu thức sau cho kết quả đúng hay sai? S1 = “12345” S2 = “3e4r45” S3 = “45” S3 in S1 S3 in S2
True, False.
True, True.
False, False.
False, True.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2. 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 print(kq)
True.
False.
Chương trình bị lỗi.
Vòng lặp vô hạn.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. Chương trình sau cho kết quả là bao nhiêu? name = "Codelearn" print(name[0])
“C”.
“o”.
“c”.
Câu lệnh bị lỗi.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4. Kết quả của chương trình sau là bao nhiêu? >>> s = “0123145” >>> s[0] = ‘8’ >>> print(s[0])
‘8’.
‘0’.
‘1’.
Chương trình bị lỗi.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Trong Python, xâu nào chương trình sẽ báo lỗi.
'This is a string in Python' message = "This is also a string".
‘"Beautiful is better than ugly.". Said Tim Peters’
Xâu không bị lỗi.
“It's also a valid string”
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6. Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?
len(s).
length(s).
s.len().
s. length().
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. 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
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Câu hỏi về lập trình Python

Quiz
•
10th Grade
15 questions
GDQP và AN 10 bài 2

Quiz
•
10th Grade
11 questions
sinh 6

Quiz
•
10th Grade
10 questions
THỰC HÀNH TIẾNG VIỆT

Quiz
•
10th Grade
14 questions
Câu Hỏi Đúng/Sai Về Thiết Kế Đồ Họa

Quiz
•
10th Grade
16 questions
Bài 23

Quiz
•
10th Grade
15 questions
Quiz về các phân tử sinh học trong tế bào

Quiz
•
10th Grade
15 questions
sinh 5

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

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

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Others
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade