
PYTHON - List
Quiz
•
Professional Development
•
1st Grade
•
Easy
Kim Ngọc Huỳnh
Used 24+ times
FREE Resource
Enhance your content
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
7 questions
Filantropía
Quiz
•
1st - 3rd Grade
10 questions
Papersane trivia game #1
Quiz
•
1st - 12th Grade
10 questions
funny
Quiz
•
1st Grade - University
6 questions
Kể chuyện: Đi tìm vần êm
Quiz
•
1st - 5th Grade
10 questions
color quiz
Quiz
•
1st - 3rd Grade
10 questions
infinity demi exam l1
Quiz
•
1st - 5th Grade
10 questions
Temporary jobs - vocabulary
Quiz
•
1st - 3rd Grade
14 questions
Start-UP Design
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Professional Development
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
5 questions
Sense and Response
Quiz
•
1st Grade