
Python程式碼結構測試
Quiz
•
Computers
•
10th Grade
•
Hard
王煒豪 王煒豪
FREE Resource
Enhance your content in a minute
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' 語句。
Similar Resources on Wayground
10 questions
py04
Quiz
•
10th Grade
10 questions
1-2.情報とメディアの特性
Quiz
•
9th - 12th Grade
10 questions
0610- Python
Quiz
•
9th - 10th Grade
10 questions
2223_S4_ICT_T2_exam_exercise_31-40
Quiz
•
9th - 12th Grade
5 questions
电子商务2
Quiz
•
10th Grade
10 questions
系统单元 L2
Quiz
•
10th Grade
10 questions
Py02
Quiz
•
10th Grade
10 questions
ストラテジまとめ④
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
