
PYTHON - List

Quiz
•
Professional Development
•
1st Grade
•
Easy
Kim Ngọc Huỳnh
Used 24+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
Danh sách (list) là gì?
Danh sách là tập hợp chứa nhiều giá trị.
Danh sách chỉ chứa một giá trị đơn chiếc
Danh sách là một kiểu dữ liệu đặc biệt trong Python
Danh sách là tập hợp chứa nhiều giá trị.
Danh sách là một kiểu dữ liệu đặc biệt trong Python
2.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Thêm giá trị của phần tử vào trong danh sách bằng phương thức?
append()
add()
remove()
print()
3.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
Xoá giá trị của phần tử ở trong danh sách bằng phương thức?
append()
add()
remove()
print()
4.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
Chọn phát biểu đúng trong các phát biểu sau?
Khi muốn xoá một giá trị khỏi danh sách, thì giá trị bắt buộc phải tồn tại trong danh sách.
Kiểu dữ liệu list trong Python là một collection lưu trữ các phần tử theo thứ tự đã cho, có thể thay đổi.
List có cấu trúc dữ liệu mà có khả năng lưu giữ các kiểu dữ liệu khác nhau
Tất cả đáp án đều đúng
5.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
List trong Python được viết với dấu:
[]
()
“ ”
:
6.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
Cho đoạn chương trình Python sau:
lopHoc = [“ban”, “ghe”, “hoc sinh”, “giao vien”]
lopHoc.append(“bang”)
print(lopHoc)
Kết quả chương trình được in ra màn hình là:
lopHoc
bang
[‘ban’, ‘ghe’, ‘hoc sinh’, ‘giao vien’]
[‘ban’, ‘ghe’, ‘hoc sinh’, ‘giao vien’, ‘bang’]
7.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
Cho đoạn chương trình Python sau:
fruits = [“apple”, “banana”, “orange”]
fruits.remove(“banana”)
print(fruits)
Kết quả chương trình được in ra màn hình là:
banana
[‘apple’, ‘banana’, ‘orange’]
[‘apple’, ‘orange’]
[‘apple’, ‘banana’, ‘orange’, ‘banana’]
8.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
Cho list sau: fruits = [“apple”, “banana”, “orange”]
Cú pháp đúng của xoá phần tử “apple” trong danh sách ở trên bằng phương thức remove()?
remove.fruits(“apple”)
fruits.remove(“apple”)
remove(“apple”)
remove.fruits [“apple”, “banana”, “orange”]
9.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
Cho đoạn chương trình Python sau:
colors = [“yellow”, “black”, “red”]
colors.remove(“black”)
colors.append(“green”)
print(colors)
Kết quả chương trình được in ra màn hình là:
[‘yellow’, ‘black’, ‘red’]
[‘yellow’, ‘black’, ‘red’, ‘green’]
[‘yellow’, ‘red’, ‘green’]
Chương trình không hiển thị kết quả
Similar Resources on Wayground
9 questions
Well-Being

Quiz
•
1st Grade - University
5 questions
PMF Quiz 1

Quiz
•
1st - 5th Grade
10 questions
HOS105- slide 1

Quiz
•
1st - 3rd Grade
11 questions
Slackbot CS AI Introduction

Quiz
•
1st Grade
12 questions
Lễ công nhận liên chi đội và thành lập liên chi đội tạm thời

Quiz
•
1st - 6th Grade
9 questions
Đọc: Đi học vui sao - Củng cố - Lớp 3

Quiz
•
1st - 5th Grade
10 questions
Protein, Fats and Carbohydrates

Quiz
•
KG - University
10 questions
Đề cương k4

Quiz
•
1st - 5th 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
Discover more resources for Professional Development
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Exploring the 5 Regions of the United States

Interactive video
•
1st - 5th Grade
7 questions
Parts of Speech

Lesson
•
1st - 12th Grade
10 questions
Capitalization

Quiz
•
KG - 9th Grade