
Câu hỏi về lập trình Python
Quiz
•
Others
•
10th Grade
•
Practice Problem
•
Hard
Nhật Ngô Minh
FREE Resource
Enhance your content in a minute
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1. Cho đoạn chương trình sau: S1=’abcd’ S2=’a’ print(S1.count(S2)) Trên màn hình sẽ xuất hiện giá trị là:
2
1
4
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2. Cho xâu s1=’ha noi’, xâu s2=’ha noi cua toi’. Khẳng định nào sau đây là đúng?
Xâu s1 bằng xâu s2.
Xâu s2 nhỏ hơn xâu s1.
Xâu s2 lớn hơn xâu s1.
Xâu s2 lớn hơn hoặc bằng xâu s1.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. Hàm y.cout(x) cho biết:
Vị trí xuất hiện cuối cùng của x trong y.
Vị trí xuất hiện đầu tiên của x trong y.
Đếm số lần xuất hiện không giao nhau của x trong y.
Cho biết số kí tự của xâu x+y
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4. Nếu S = "1234567890" thì S[:4] là gì?
"1234"
“123”
"01234"
"0123"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Xâu kí tự được đặt trong cặp dấu:
Ngoặc vuông []
Nháy đơn ('') hoặc nháy kép ("")
Ngoặc nhọn {}
Ngoặc đơn ()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6. Hàm y.replace(x1,x2) có nghĩa là:
Tạo xâu mới từ xâu y bằng cách thay thế xâu con x1 của y bằng xâu x2
Tạo xâu mới bằng cách ghép xâu x1 và xâu x2.
Thay thế xâu x1 bằng xâu x1+x2.
Tạo xâu mới từ xâu y bằng cách thay thế xâu con x2 của y bằng xâu x1.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. Cho đoạn chương trình sau: s=’abcde’ print(s[3:]) Trên màn hình máy tính sẽ xuất hiện xâu:
‘bcde’
‘abcd’
‘cde’
‘de’
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
17 questions
penjajahan jepang
Quiz
•
10th Grade
20 questions
Bài 16
Quiz
•
10th Grade
20 questions
SỬ 2
Quiz
•
10th Grade
15 questions
Kiểm tra về Miss Grand International
Quiz
•
10th Grade
15 questions
geo 8
Quiz
•
10th Grade
15 questions
Ôn Thi Lịch Sử Lớp 10
Quiz
•
10th Grade
16 questions
Hệ thống chính trị Việt Nam
Quiz
•
10th Grade
20 questions
bài 18: chu kì tế bào - đáp án trên vietjack á:)
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Others
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
10 questions
Guess the Christmas Movie by the Scene Challenge
Interactive video
•
6th - 10th Grade
