S_Playground_J_W4

S_Playground_J_W4

5th - 7th Grade

5 Qs

quiz-placeholder

Similar activities

Weighted Voting System

Weighted Voting System

2nd Grade - University

6 Qs

80s time

80s time

7th Grade - Professional Development

9 Qs

VideoGameEvolution

VideoGameEvolution

7th - 12th Grade

10 Qs

49ers

49ers

KG - Professional Development

10 Qs

Famous Faces

Famous Faces

1st - 7th Grade

10 Qs

Napoleonic Wars

Napoleonic Wars

7th Grade

9 Qs

3-2戰後的政治&經濟

3-2戰後的政治&經濟

5th Grade

10 Qs

History of Computers

History of Computers

2nd - 5th Grade

10 Qs

S_Playground_J_W4

S_Playground_J_W4

Assessment

Quiz

History

5th - 7th Grade

Hard

Created by

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)

請問輸出值為?