Search Header Logo

SwiftPlayground-Junior-2

Authored by Ryan Chung

Computers

4th - 6th Grade

Used 2+ times

SwiftPlayground-Junior-2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

if isOnClosedSwitch {

toggleSwitch( )

}

下列哪一個可以是isOnClosedSwitch的值?

true

1.5

"on"

2

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

在Swift Playground中,if 之後後面還有別的條件時,可以用 :

elif

else if

second if

other if

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

這三個符號的意義,下列哪一個順序是正確的?

&&、||、!

AND、OR、NOT

OR、NOT、AND

NOT、AND、OR

AND、NOT、OR

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

小明今天戴紅色帽子並且穿藍色上衣。請問小明獲得幾顆橘子?

if 戴藍色帽子 && 穿藍色上衣{

獲得5顆橘子

}else if 戴紅色帽子 || 戴紫色帽子{

獲得3顆橘子

}else {

獲得1顆橘子

}

0

1

3

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

小明身高140公分,請問小明獲得幾顆橘子?

if !小明身高大於130公分{

獲得5顆橘子

}else{

獲得3顆橘子

}

0

1

3

5

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?