
Kiểm tra cuối kì 2 - 10 - 11 - Python

Quiz
•
Computers
•
1st Grade
•
Medium
Thu Hoang
Used 9+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 1. Cách khai báo biến mảng sau đây, cách nào sai?
A. ls = [1, 2, 3]
B. ls = [x for x in range(3)]
C. ls = [int(x) for x in input().split()]
D. ls = list(3).
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 2. 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:
A. print(A[2]).
B. print(A[1]).
C. print(A[3]).
D. print(A[0]).
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 3. Giả sử có một list: i = [2, 3, 4]. Nếu muốn in list này theo thứ tự ngược lại ta nên sử dụng phương pháp nào sau đây?
A. print(list(reversed(i))).
B. print(list(reverse(i))).
C. print(reversed(i)).
D. print(reversed(i)).
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 4. Chọn phát biểu đúng khi nói về dữ liệu kiểu danh sách(List) trong python.
A. Dữ liệu kiểu mảng là tập hợp các phần tử không có thứ tự và mọi phần tử có cùng một kiểu dữ liệu.
B. Dữ liệu kiểu mảng là tập hợp các phần tử có thứ tự và mỗi một phần tử trong mảng có thể có các kiểu dữ liệu khác nhau.
C. Dữ liệu kiểu mảng là tập hợp các phần tử có thứ tự và mọi phần tử phải có cùng một kiểu dữ liệu.
D. Tất cả ý trên đều sai.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 5. Đối tượng dưới đây thuộc kiểu dữ liệu nào?
A = [1, 2, ‘3’]
A. list.
B. int.
C. float.
D. string.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 6. Phương thức nào sau đây dùng để thêm phần tử vào list trong python?
A. abs().
B. link().
C. append().
D. add().
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu 7. Danh sách A sẽ như thế nào sau các lệnh sau?
>>> A = [2, 3, 5, 6]
>>> A. append(4)
>>> del (A[2])
A. 2, 3, 4, 5, 6, 4.
B. 2, 3, 4, 5, 6.
C. 2, 4, 5, 6.
D. 2, 3, 6, 4.
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
UTS 4D

Quiz
•
1st Grade
42 questions
uses of computer and Parts of Computer Revision

Quiz
•
1st Grade
40 questions
IP Address

Quiz
•
1st - 12th Grade
35 questions
ĐỀ CƯƠNG TIN HỌC LỚP 7 GIA AN

Quiz
•
1st Grade
40 questions
SIMULASI UNBK 2020 part 1

Quiz
•
1st Grade
40 questions
ÔN TẬP CUỐI KÌ I TIN 6

Quiz
•
1st Grade
40 questions
NCTT 4

Quiz
•
1st Grade
35 questions
Summative Test for First Quarter (Grade7)

Quiz
•
KG - 7th 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