Search Header Logo

CL nhập, xuất

Authored by 1. 10A9

Other

1st Grade

Used 4+ times

CL nhập, xuất
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

Để nhập một xâu từ bàn phím, ta thực hiện như sau:

<biến> = input(<Dòng thông báo>)

<biến> = int(input(<Dòng thông báo>))

<biến> = float(input(<Dòng thông báo>))

<biến> = str(<Dòng thông báo>)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để nhập số nguyên từ bàn phím, ta thực hiện như sau:

<biến> = int(<Dòng thông báo>)

<biến> = float(input(<Dòng thông báo>))

<biến> =int( input(<Dòng thông báo>))

<biến> = input(<Dòng thông báo>)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để nhập số thực từ bàn phím, ta thực hiện như sau:

<biến> = float(<Dòng thông báo>)

<biến> =int( input(<Dòng thông báo>))

<biến> = input(<Dòng thông báo>)

<biến> =float( input(<Dòng thông báo>))

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nhập giá trị cho biến nguyên a từ bàn phím như sau:

a = int(“Nhập a =”)

a = float(input(“Nhập a =”))

a = input(“Nhập a =”)

a = int(input(“Nhập a =”))

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho biết kết quả của lệnh: str(8+2)

"10"

10

"8+2"

Báo lỗi

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho a = 2, b = 4. Lệnh print(a, b) cho kết quả là:

2, 4

a, b

"a, b"

2 4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho biết kết quả của lệnh sau: float(8)

float(8)

Báo lỗi

8.0

8

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?