
Python程式碼結構測試

Quiz
•
Computers
•
10th Grade
•
Hard
王煒豪 王煒豪
FREE Resource
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
5 questions
APCS10510-2

Quiz
•
10th Grade - University
5 questions
mBot Q&A2-選擇結構

Quiz
•
9th - 12th Grade
10 questions
HW1a_P.5-6難題

Quiz
•
10th Grade
10 questions
接口與傳輸技術測驗

Quiz
•
10th Grade
10 questions
國中第一章

Quiz
•
10th Grade
10 questions
2223_S4_ICT_T2_exam_exercise_11-20

Quiz
•
9th - 12th Grade
8 questions
A CH03 數據表示

Quiz
•
10th Grade
10 questions
認識電腦平台

Quiz
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade