
S_Playground_J_W4

Quiz
•
History
•
5th - 7th Grade
•
Hard
Ryan Chung
Used 3+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
使用類別Player來建立一個玩家player,下列哪一個語法正確?
let player = Player()
let Player = player()
Player.player()
player.Player()
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
在Swift語言中,函數的關鍵字是?
func
function
method
han_number
3.
FILL IN THE BLANK QUESTION
1 min • 5 pts
func accumulate(count:Int) -> Int{
var totalCount = 0;
for i in 1...count {
totalCount = totalCount + i;
}
return totalCount
}
print(accumulate(count: 5))
請問輸出結果為?
4.
FILL IN THE BLANK QUESTION
1 min • 5 pts
func multiplyAndPlus(a:Int, b:Int) -> Int {
return a*b + 2
}
print(multiplyAndPlus(a:2, b:6))
請問輸出結果為?
5.
FILL IN THE BLANK QUESTION
1 min • 5 pts
var result = 0
for i in 0...5 {
if !(i == 2){
result = result + i
}else {
result = result + 4
}
}
print(result)
請問輸出值為?
Similar Resources on Wayground
10 questions
India history

Quiz
•
1st Grade - University
10 questions
The Peloponnesian War

Quiz
•
6th Grade
10 questions
MLK Facts

Quiz
•
2nd - 5th Grade
6 questions
There and Back Again (not a Hobbit's tale)--part 1 - 3/21 截止

Quiz
•
KG - University
10 questions
Historical Year Abbreviations and Concepts

Quiz
•
6th - 8th Grade
10 questions
Great Compromise / 3/5 Compromise

Quiz
•
KG - University
10 questions
BrainPOP Jr - Winter Holidays

Quiz
•
5th Grade
10 questions
Telling Time in History Quiz

Quiz
•
5th - 8th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for History
20 questions
Prehistory

Quiz
•
7th - 10th Grade
10 questions
TX - 1.2c - Regions of Texas

Quiz
•
7th Grade
14 questions
Citizenship and Civic Duties Quiz

Quiz
•
7th Grade
16 questions
Government Unit 2

Quiz
•
7th - 11th Grade
11 questions
Continents and Oceans

Quiz
•
5th - 6th Grade
20 questions
4 Regions of Texas

Quiz
•
7th Grade
20 questions
Longitude and Latitude Practice

Quiz
•
6th Grade
15 questions
The Obligations, Responsibilities, and Rights of Citizens

Quiz
•
7th Grade