
Python-1

Quiz
•
English
•
1st - 5th Grade
•
Medium
Minh Nguyễn
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong Python, biến nào sau đây là hợp lệ?
2var = 10
my-variable = 5
_myVar = "Hello"
class = 100
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong Python, cách nào sau đây để gán giá trị cho nhiều biến cùng một lúc là đúng?
x = y = z = 10
x, y, z == 10
x = (y = z = 10)
x y z = 10
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong Python, cách nào sau đây dùng để tạo một từ điển rỗng?
dict = []
dict = {}
dict = ()
dict = ""
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Phương thức nào sau đây được sử dụng để xóa một cặp khóa-giá trị trong từ điển Python?
remove("key")
del dict["key"]
discard("key")
clear("key")
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trong Python, cách nào sau đây dùng để thêm một phần tử vào danh sách (list)?
list.add(item)
list.append(item)
list.insertLast(item)
list.push(item)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử có danh sách nums = [1, 2, 3, 4], câu lệnh nào sẽ xóa phần tử có giá trị 3?
nums.pop(3)
nums.delete(3)
nums.remove(3)
del nums(3)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điều gì xảy ra nếu điều kiện trong câu lệnh if là False và không có else đi kèm?
Chương trình báo lỗi
Chương trình dừng ngay lập tức
Không có gì xảy ra, khối lệnh if bị bỏ qua
Python tự động thêm một lệnh else mặc định
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Root Words Test

Quiz
•
5th Grade
13 questions
Chomp

Quiz
•
4th Grade
14 questions
Unit 2.5 Vocabulary and Latin Roots

Quiz
•
4th Grade
15 questions
Greek and Latin Roots

Quiz
•
5th Grade
10 questions
U2 W5 Word Study - Latin Roots

Quiz
•
4th Grade
15 questions
Greek and Latin Roots

Quiz
•
5th Grade - University
15 questions
Latin Root Words

Quiz
•
5th Grade
11 questions
Vocabulary Roots

Quiz
•
5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for English
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade
20 questions
4 Types of Sentences

Quiz
•
3rd - 5th Grade
16 questions
Figurative Language

Quiz
•
5th Grade
12 questions
Text Structures

Quiz
•
4th Grade
20 questions
Subject and Predicate Review

Quiz
•
3rd Grade
20 questions
Concrete and Abstract Nouns

Quiz
•
3rd Grade
15 questions
Singular and Plural Nouns

Quiz
•
4th Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade