
Python 程式碼基礎

Quiz
•
Computers
•
10th Grade
•
Medium
玉曄 陳
Used 13+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在 Python 中,單行註解使用哪個符號?
//
#
/*
--
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Python 中的基本資料型態,用type( )指出的型態,何者錯誤?
int整數
float浮點數
string字串
bool布林值
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
要取得字串的倒序排列,應使用哪個語法?
A) str[::-1]
B) str.reverse()
C) str.split()
D) str.sort()
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在 Python 中,哪個函數用來輸出資料?
input()
print()
output()
display()
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
使用哪個方法可以將字串轉換為整數?
str()
int()
float()
bool()
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在 Python 中,哪個運算符用於取餘數?
A) +
B) -
C) *
D) %
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在 Python 中,如何使用 if 條件判斷?
if (條件) { }
if 條件:
if [條件]
if {條件}
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python_Exam

Quiz
•
6th - 10th Grade
15 questions
Строки

Quiz
•
9th - 12th Grade
20 questions
11900程61-80

Quiz
•
9th - 12th Grade
20 questions
11900程101-120

Quiz
•
9th - 12th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
22 questions
Python Data Types Quiz

Quiz
•
10th Grade
20 questions
Bab 3 : Kod Arahan T2

Quiz
•
7th - 10th Grade
15 questions
Python-Grundlagen (IF Kl. 10)

Quiz
•
10th Grade - University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade