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
11 questions
114大學多元入學考考你

Quiz
•
12th Grade
10 questions
工業安全概論 CH01

Quiz
•
University
10 questions
E帆風順3-師大資源教室英語學習策略課程【前導課程】Introductory Course

Quiz
•
University
13 questions
HKS 1 - Bài 10: 我能做这儿吗?

Quiz
•
University
10 questions
工科營講課問答

Quiz
•
University
20 questions
大學多元入學管道測驗(108課綱適用)

Quiz
•
10th - 12th Grade
15 questions
國中小的運算思維

Quiz
•
University
20 questions
U1系統平台

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Science
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University