EXAM-1

Quiz
•
Science, Education
•
12th Grade - University
•
Hard
Kuei Fang
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
2022 高二下半年小测验1 String.h & Function

Quiz
•
12th Grade
10 questions
上堂回顧

Quiz
•
12th Grade
10 questions
資管 研習 TEST

Quiz
•
University
10 questions
探索古蹟的奧秘

Quiz
•
University
12 questions
判斷式

Quiz
•
1st Grade - Professio...
10 questions
餐旅小問答

Quiz
•
University
15 questions
三上4 吃在澳門

Quiz
•
3rd Grade - University
15 questions
簡媜【自己的老屋】

Quiz
•
University
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 Science
10 questions
Exploring the Four Types of Human Body Tissue

Interactive video
•
9th - 12th Grade
90 questions
Unit 1 (Ch 2 & 3) Test Review - Water/Ocean Currents

Quiz
•
9th - 12th Grade
20 questions
Water as a Resource

Quiz
•
10th - 12th Grade
30 questions
States of Matter and Phase Changes

Passage
•
9th - 12th Grade
6 questions
Integumentary system

Lesson
•
12th Grade
106 questions
Env Unit 1 Test Review

Quiz
•
12th Grade
17 questions
Unit 3A: Cells Vocab

Quiz
•
9th - 12th Grade
25 questions
Biomolecules Review

Quiz
•
9th - 12th Grade