Python-1

Python-1

1st - 5th Grade

12 Qs

quiz-placeholder

Similar activities

Latin Roots: dict/flect/flex

Latin Roots: dict/flect/flex

3rd - 5th Grade

10 Qs

Vocabulary Building Using Etymology Practice

Vocabulary Building Using Etymology Practice

4th - 12th Grade

12 Qs

Word Roots

Word Roots

5th Grade

16 Qs

Latin Roots 4

Latin Roots 4

3rd - 10th Grade

16 Qs

Greek and Latin Root Words

Greek and Latin Root Words

4th - 9th Grade

15 Qs

Latin Roots - "dict-", "spect-", and "-ive"

Latin Roots - "dict-", "spect-", and "-ive"

5th Grade

13 Qs

Latin Roots 2

Latin Roots 2

3rd - 10th Grade

8 Qs

Roots Review 1

Roots Review 1

4th - 6th Grade

14 Qs

Python-1

Python-1

Assessment

Quiz

English

1st - 5th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?