Search Header Logo

Kiến thức cơ bản về Python

Authored by Ngo B2205367

Computers

University

Used 1+ times

Kiến thức cơ bản về Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, từ khóa nào được sử dụng để định nghĩa một hàm?

function

define

def

func

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp nào đúng để khai báo một biến số nguyên trong Python?

int x = 5

x = 5

var x: int = 5

let x = 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp nào đúng để định nghĩa một hàm trong Python?

function my_function():

def my_function():

create my_function():

my_function def():

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn mã sau là gì? for i in range(3): print(i)

0 1 2

0 1 2 3

1 2 3

1 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn mã sau là gì? print("Hello" + " World")

HelloWorld

Hello World

Hello+World

"Hello World"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, từ khóa nào được sử dụng để kiểm tra điều kiện?

check

if

when

else if

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, từ khóa nào được sử dụng để kết thúc một khối lệnh?

end

stop

break

pass

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?