Python-1

Python-1

1st - 5th Grade

12 Qs

quiz-placeholder

Similar activities

Nature - Lesson 3

Nature - Lesson 3

1st - 5th Grade

15 Qs

english 3

english 3

3rd Grade

10 Qs

ĐIỆP NGỮ, CHƠI CHỮ

ĐIỆP NGỮ, CHƠI CHỮ

1st Grade

10 Qs

Unit 7

Unit 7

2nd Grade

10 Qs

Mover 6

Mover 6

1st - 5th Grade

15 Qs

Bài tập Tiếng Anh lớp 2 ( Trường TH Ngô Mây - TX An Khê )

Bài tập Tiếng Anh lớp 2 ( Trường TH Ngô Mây - TX An Khê )

2nd Grade

10 Qs

ĐỐ VUI ĐỂ HỌC

ĐỐ VUI ĐỂ HỌC

1st Grade

12 Qs

Ôn tập Tin học lớp 5

Ôn tập Tin học lớp 5

1st Grade

10 Qs

Python-1

Python-1

Assessment

Quiz

English

1st - 5th Grade

Medium

Created by

Minh Nguyễn

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?