EXAM-1
Quiz
•
Science, Education
•
12th Grade - University
•
Practice Problem
•
Hard
Kuei Fang
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
三年级科学 复习
Quiz
•
1st - 12th Grade
10 questions
科学-电
Quiz
•
KG - 12th Grade
12 questions
华语作文
Quiz
•
12th Grade
14 questions
Separation Process
Quiz
•
University
10 questions
二年级科学单元五
Quiz
•
1st - 12th Grade
15 questions
五年级科学程序技能-暖身题
Quiz
•
1st Grade - University
10 questions
S2跨科技與生活-雞蛋篇
Quiz
•
University
10 questions
单元四 深广课文10 《爱国一点也不寂寞》
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Science
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
32 questions
Explore Mixtures and Solutions
Quiz
•
9th - 12th Grade
15 questions
Patterns of Evolution MCQ Reading
Passage
•
9th - 12th Grade
20 questions
F25 Taxonomy Review
Quiz
•
9th - 12th Grade
5 questions
Exploring Gene and Chromosome Mutations
Interactive video
•
9th - 12th Grade
10 questions
What is photosynthesis?
Lesson
•
10th - 12th Grade
17 questions
Explore Forces and Motion
Quiz
•
9th - 12th Grade
23 questions
APES Unit 3 Test Review
Quiz
•
11th - 12th Grade
