Search Header Logo

Ch03 重點整理測驗

Authored by 陳彥宏 陳彥宏

Computers

University

Used 1+ times

Ch03 重點整理測驗
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

range( )的表達格式,以下何者正確?

range (終值, 間值, 初值)

range (間值, 初值, 終值)

range (初值, 終值, 間值)

range (初值, 間值, 終值)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

請問這兩個表達方式所代表的意思一樣嗎? 為什麼?

for i in range (0, 20, 1) : vs. for i in range (20) :

不一樣,

它少了 2 個需要給定的值

一樣,

因為 range 預設 初值 = 0 、

間值 = 1,所以給終值就好

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

在廻圈執行中途,要暫時停住不往下執行,而是回到廻圈的起始處執行,是以下哪個的功能?

continue

break

import

return

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

!本題有多個答案!

list_name = [ '石二鍋沒辣姊鍋了哭哭 ' , '寶藏巖' , '危機分' , '水岸' , '園遊會' ]

此串列 (list) 中的 「水岸」索引值(index) 可以是多少?

-0

-1

-2

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

! 本題有多個答案 !

想刪除串列 (list) 中的元素,可以使用以下什麼語法?

pop

remove

del

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

" 元組 ( Tuple ) 裡面的元素能夠被修改,所以相較串列 (list) 來得更不安全 "

此敘述是否正確?

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

country = { '美國' : '北美' , '苗栗' : '東亞' ,  '聖多美普林西比' :'中非' },

想查詢字典裡全部有哪些國家,可使用什麼語法?

country.keys()

country.values()

country.get()

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?

Discover more resources for Computers