
Python程式碼結構測試
Authored by 王煒豪 王煒豪
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python的基本資料型別有哪些?
整數、浮點數、布林值、字串、列表、元組、集合、字典
布林值集合
浮點數字典
整數陣列
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
如何定義一個函數?
一個函數是將輸入映射到輸出的一段可重用代碼。
一個函數是數學中的一個常數。
函數是用來存儲數據的容器。
函數只能接受一個輸入參數。
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
什麼是條件語句,舉例說明?
例如:if (x > 10) { console.log('x 大於 10'); } else { console.log('x 小於或等於 10'); }
例如:if (x != 20) { console.log('x 不等於 20'); }
例如:if (x < 5) { console.log('x 小於 5'); }
例如:if (x == 10) { console.log('x 等於 10'); }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python中如何使用迴圈?
使用列表推導式來執行迴圈操作。
使用函數來替代迴圈操作。
使用for迴圈或while迴圈來執行迴圈操作。
使用if語句來執行迴圈操作。
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
什麼是模組,如何導入模組?
模組是一次性使用的代碼片段,無法重用。
模組是用來存儲數據的容器,與代碼無關。
模組是可重用的代碼單元,導入模組使用 'import' 語句。
導入模組需要使用 'load' 語句。
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Py03
Quiz
•
10th Grade
10 questions
python2-lesson13
Quiz
•
3rd - 11th Grade
10 questions
【2】 Ms Excel 基础 - Chart S3ADY
Quiz
•
9th - 12th Grade
10 questions
每日一ICT 14/11/2022-27/11/2022
Quiz
•
10th Grade
10 questions
雲端從業人員Module 6 知識點檢查
Quiz
•
9th - 12th Grade
10 questions
網路安全與智慧科技
Quiz
•
9th - 12th Grade
7 questions
我们身边的数据
Quiz
•
10th Grade
6 questions
簡報設計原則
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade