Cho khai báo mảng sau: A = list(“3456789”) Để in giá trị phần tử thứ 2 của mảng một chiều A ra màn hình ta viết:
ÔN TẬP CUỐI KỲ 2

Quiz
•
Specialty
•
10th Grade
•
Medium
Lệnh Nguyễn
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print(A[2]).
print(A[1]).
print(A[3]).
print(A[0]).
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào sau đây dùng để thêm phần tử vào list trong python?
abs().
link().
append().
add().
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh xoá một phần tử của một danh sách A có chỉ số i là:
list.del(i).
A. del(i).
del A[i].
A. del[i].
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Toán tử nào dùng để kiểm tra một giá trị có nằm trong danh sách không?
in.
int.
range.
append.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
6 in A
‘a’ in A
True, False.
True, False.
False, True.
False, False.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?
16.
17.
18.
15.
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
Ôn tập- Khối 5

Quiz
•
5th Grade - University
21 questions
Tin 10 CKII

Quiz
•
10th Grade
23 questions
untitled

Quiz
•
6th Grade - University
25 questions
Bài 24

Quiz
•
10th Grade
20 questions
Khởi động 5.5.2023

Quiz
•
9th - 12th Grade
26 questions
toàn 5

Quiz
•
5th Grade - University
25 questions
Câu hỏi về môi trường và sinh học

Quiz
•
7th Grade - University
21 questions
Tin học 8 - CĐ5

Quiz
•
1st - 10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade