TRẮC NGHIỆM VUI PYTHON

TRẮC NGHIỆM VUI PYTHON

10th Grade

10 Qs

quiz-placeholder

Similar activities

Câu hỏi trắc nghiệm về cấu trúc rẽ nhánh trong Python

Câu hỏi trắc nghiệm về cấu trúc rẽ nhánh trong Python

10th Grade

15 Qs

Wprowadzenie do md, Colab i Python

Wprowadzenie do md, Colab i Python

9th Grade - University

12 Qs

Strategi Sandaran dan Urus Versi

Strategi Sandaran dan Urus Versi

2nd Grade - University

10 Qs

10 Repaso ofimatica

10 Repaso ofimatica

10th Grade - University

10 Qs

Soal Microsoft Word

Soal Microsoft Word

10th Grade

15 Qs

BAZY DANYCH

BAZY DANYCH

10th Grade

12 Qs

Uji Pengetahuan Microsoft Word

Uji Pengetahuan Microsoft Word

10th Grade

10 Qs

Programming Bach

Programming Bach

9th - 12th Grade

14 Qs

TRẮC NGHIỆM VUI PYTHON

TRẮC NGHIỆM VUI PYTHON

Assessment

Quiz

Information Technology (IT)

10th Grade

Practice Problem

Hard

Created by

Dung Tin

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp đúng để viết vòng lặp for trong Python là gì?

for (i = 0; i < 5; i++)

for i in range(5):

for i to 5:

for each i in range(5)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì?

for i in range(3):

    print(i, end=" ")

1 2 3

0 1 2

0 1 2 3

1 2 3 4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vòng lặp while nào sau đây sẽ chạy vô hạn?

while True:

           print("Hello")

while 0:

    print("Hi")

while False:

    print("Hey")

while 1 == 0:

    print("Python")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn code sau thực hiện chức năng gì?

i = 0

while i < 5:

    print(i)

    i += 1

In các số từ 1 đến 5

In các số từ 0 đến 4

In số 5 lần số 0

Vòng lặp vô hạn

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm phần tử vào cuối danh sách my_list, ta dùng lệnh nào?

my_list.add(5)

my_list.push(5)

my_list.append(5)

my_list.insert_last(5)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để nối hai chuỗi s1 = "Hello" và s2 = "World" thành "HelloWorld", ta viết:

s1 + s2

s1 . s2

add(s1, s2)

join(s1, s2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn code sau là ví dụ của loại hàm nào?

def greet():

    print("Hello, world!")

Hàm trả về giá trị

Hàm không trả về giá trị

Hàm có tham số

Lỗi

Access all questions and much more by creating a free account

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

Already have an account?