Python 程式碼基礎

Python 程式碼基礎

10th Grade

20 Qs

quiz-placeholder

Similar activities

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Синтаксис Python

Синтаксис Python

7th - 11th Grade

21 Qs

CodeHS Python Unit 3 Quiz Review

CodeHS Python Unit 3 Quiz Review

9th - 12th Grade

20 Qs

Computer 10: Date and Time, String Manipulation Functions

Computer 10: Date and Time, String Manipulation Functions

7th Grade - University

15 Qs

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

10th - 12th Grade

20 Qs

Новогодняя. Python

Новогодняя. Python

9th Grade - University

21 Qs

IDT Unit 2 Review (practice for Test 2)

IDT Unit 2 Review (practice for Test 2)

8th - 12th Grade

20 Qs

illustrator练习

illustrator练习

10th Grade

15 Qs

Python 程式碼基礎

Python 程式碼基礎

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

玉曄 陳

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?