Search Header Logo

Py02

Authored by 鄭 傑

Computers

10th Grade

Used 4+ times

Py02
AI

AI Actions

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

何種方式可以讀取使用者輸入的整數,將其存放於變數x?

x = input()

input() = x

x = int(input())

int(input()) = x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

9//4的結果是?

2

2.25

2.5

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

9/4的結果是?

2.25

2.5

2

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

以下程式輸出為何?

x = 9487

y = 4

mod = x % y

print("x除y的餘數是",mod)

x除y的餘數是 7

9487除4的餘數是 7

x除y的餘數是 3

9487除4的餘數是 3

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

如果要計算8的7次方,下列哪些有誤?

8 ** 7

8*8*8*8*8*8*8

8 ******* 7

7 ** 8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列程式碼何者可以得到x的三次方根?

x ** 3

x ** 1/3

x ** (1/3)

x ** 0.3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

請問下列程式執行完後,x為多少?

x = 7

x = x + 1

8

7

6

等式不成立

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?