
Kiểm tra cuối kì 2 - 10 - 11 - Python
Authored by Thu Hoang
Computers
1st Grade
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
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
44 questions
SPKN Kelas B - Bagian 4
Quiz
•
1st Grade
40 questions
HTML Quiz
Quiz
•
1st Grade
40 questions
PAS SUSULAN ASJ KELAS XI2020
Quiz
•
1st - 3rd Grade
42 questions
basis data query
Quiz
•
1st - 3rd Grade
43 questions
Ôn Tập Kiểm Tra KHTN 7
Quiz
•
1st Grade - University
40 questions
PENGAYAAN TKJ 1
Quiz
•
1st - 10th Grade
40 questions
PTS PPLG 2
Quiz
•
1st Grade
40 questions
Administrasi Infrastruktur Jaringan - Test 1
Quiz
•
1st Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
Presidents' Day
Quiz
•
KG - 5th Grade
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
6 questions
President's Day
Lesson
•
1st Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
7 questions
Lunar and Chinese New Year for Kids | Bedtime History
Interactive video
•
1st - 12th Grade
10 questions
Presidents Day
Interactive video
•
1st - 5th Grade
15 questions
Making Inferences
Quiz
•
1st - 3rd Grade