Ôn tập python2

Quiz
•
Instructional Technology
•
10th Grade
•
Medium
Huynh Ngan
Used 8+ times
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho danh sách: A = [5, 2, 3, 8]
Để in phần tử có giá trị 8, câu lệnh nào sau đây đúng?
print(a[0])
print(a[-1])
print(a[4])
print(a[-3])
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho danh sách: A1 = [1,2,3,4]
A2 = [5,6,7,8]
hãy cho biết kết quả của câu lệnh sau: print(A1 + A2)
[1,2,3,4,5,6,7,8]
[5,6,7,8,1,2,3,4]
[1,2,3,4,[5,6,7,8]]
Báo lỗi
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho danh sách A= [1,2,3,4,5]
A.extend([7,8])
Hãy cho biết kết quả của câu lệnh print(A)
[1, 2, 3, 4, 5, 7, 8]
[1, 2, 3, 4, 5, [7, 8]]
[7,8,1,2,3,4,5]
[[7,8],1,2,3,4,5]
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho danh sách A= [1,2,3,4,5]
A.append([7,8])
Hãy cho biết kết quả của câu lệnh print(A)
[1, 2, 3, 4, 5, 7, 8]
[1, 2, 3, 4, 5, [7, 8]]
[7,8,1,2,3,4,5]
[[7,8],1,2,3,4,5]
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Hãy cho biết kết quả thực hiện của đoạn chương trình trên:
x= 5
A= [1, 2, 3, 4]
x= 5
A= [1, 2, 3, 4, 5]
x= 1
A= [ 2, 3, 4, 5]
x = 0
A= [1, 2, 3, 4, ]
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Hãy cho biết kết quả thực hiện của đoạn chương trình sau:
A= [1,2,3,4,5]
B= A[1:3]
print(B)
[2, 3]
[2,3,4]
[1,2]
Báo lỗi
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Hãy cho biết kết quả thực hiện của đoạn chương trình sau:
A= [1,2,3,4,5]
B= A[:3]
print(B)
[1, 2, 3]
[1,2,3,4]
[1]
Báo lỗi
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
CN10 _ HK1 _ OT _ KT giữa HK1_30c

Quiz
•
10th Grade
26 questions
Периферийные устройства

Quiz
•
10th Grade - University
35 questions
Kuis Prakarya Awetan Hewani kelas X MIPA

Quiz
•
10th Grade
30 questions
Trắc nghiệm bài 2

Quiz
•
10th Grade
27 questions
EXAMEN Tema 2: Materiales

Quiz
•
10th Grade
26 questions
Information Systems and Resources

Quiz
•
10th - 12th Grade
32 questions
CN10A2 instructional technology

Quiz
•
KG - Professional Dev...
30 questions
Python Basics Quiz

Quiz
•
5th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University