
EXAM-1
Authored by Kuei Fang
Science, Education
12th Grade - University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
list裡面包含50個學生資料,你打算顯示所有學生資料,除了最後4位學生。請問那些程式碼可以達成?
class[1:-4]
class[:-4]
class[1:-5]
class[0:-5]
class[0:-4]
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
你開發一個程式,需要匯入sqrt這個函式,並且將這個函式命名一個別名sr,請問下面哪個程式碼可以完成?
from math import sqrt as sr
import sqrt from math as sr
from math.sqrt as sr
import math.sqrt as sr
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
請問要隨機產生15~21(包含15與21)之間的整數,以下哪兩個程式碼可以達成?
random.randint(15, 21)
random.randint(15, 22)
random.randrange(15, 21, 1)
random.randrange(15, 22, 1)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
你需要讀入與寫入資料到某個檔案,若檔案不存在,則會自動產生,若檔案已經存在,而且檔案裡在已經有內容,則這些內容會被刪除。請問你應該使用以下哪個程式碼?
open("f1.txt", "r")
open("f1.txt", "w")
open("f1.txt", "r+")
open("f1.txt", "w+")
open("f1.txt", "a+")
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
請問以下程式碼的結果?
list1 = range(6,0,-3)
print(list(list1))
error
[6, 3]
[6, 3, 0]
[6, 3, 0, -3]
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
請問以下程式碼的結果=?
0 or -1
True
False
Compile error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
a=[1,2,3,4,5]
b=a
print(a is b)
True
False
Error
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
16 questions
漢字大觀園
Quiz
•
University
12 questions
Y6---科学---单元7:速度
Quiz
•
12th Grade
10 questions
地層クイズ
Quiz
•
12th Grade
20 questions
四年级工艺与设计练习
Quiz
•
1st - 12th Grade
10 questions
企業はどう行動するか(4.1, 4.2)
Quiz
•
University - Professi...
10 questions
高中华文统考·中国古代文学常识1
Quiz
•
10th - 12th Grade
20 questions
四年级 科学 单元二 人类
Quiz
•
KG - Professional Dev...
10 questions
中上環社區文化考察 - 挑戰站
Quiz
•
1st - 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Science
89 questions
Unit 1 (Ch 2 & 3) Test Review - Water/Ocean Currents
Quiz
•
9th - 12th Grade
10 questions
Natural Resources
Lesson
•
9th - 12th Grade
12 questions
Comparing Mitosis and Meiosis
Lesson
•
9th - 12th Grade
10 questions
Symbiotic Relationships
Lesson
•
9th - 12th Grade
5 questions
Unit 3 AB Check
Quiz
•
9th - 12th Grade
9 questions
Identify Phases and Structures of Mitosis
Quiz
•
9th - 12th Grade
15 questions
Solar System
Lesson
•
9th - 12th Grade
16 questions
Identify Types of Rocks
Quiz
•
9th - 12th Grade