Search Header Logo

Python Ch2

Authored by Chow Sum周景森老師

Computers

6th - 8th Grade

Used 1+ times

Python Ch2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. 小芬編寫了一個程式,設定了一個變數來記錄她錢包內有多少款項。試選出最合適的變數名稱。

abc

money_in_wallet

$$$

wallet_colour

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

程式錯誤可分為下列哪種(些)類型?

(1) 語法錯誤 (2) 邏輯錯誤 (3) 設計錯誤

只有 (1)

只有 (2)

只有 (1) 和 (2)

(1)、(2) 和 (3)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列哪項(些)是變數的類型?

(1) 字串 (2) 整數 (3) 小數

只有 (1)

只有 (2)

只有 (1) 和 (2)

(1)、(2) 和 (3)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列哪個指令的執行結果是 10 ?

print(int(1) + 0)

print(str(1) + 0)

print(str(1) + "0")

print(int(1) + "0")

5.

MATCH QUESTION

1 min • 1 pt

關係運算符

不等於

==

大於

<=

等於

>=

大於或等於

>

小於或等於

!=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

布爾值只有 Yes 和 No 兩個值。

正確

不正確

Answer explanation

布爾值只有 True 和 False 兩個值

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str(C) 的作用是把變數 C 的值轉換成小數。

正確

不正確

Answer explanation

str(C) 的作用是把變數 C 轉換成字串 。

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?