Swift Playgrounds Test

Swift Playgrounds Test

7th Grade

35 Qs

quiz-placeholder

Similar activities

Arabic Quiz G 8th

Arabic Quiz G 8th

7th - 8th Grade

38 Qs

Sains T5Bab1

Sains T5Bab1

7th - 10th Grade

30 Qs

Mr Tucket by Gary Paulsen

Mr Tucket by Gary Paulsen

5th - 7th Grade

30 Qs

#038:  Pattern Finder, Pages 1-2

#038: Pattern Finder, Pages 1-2

7th Grade

39 Qs

Y8 Latin Grammar Revision Quiz

Y8 Latin Grammar Revision Quiz

7th Grade

35 Qs

KUIZ KEPENGGUNAAN 2 KPS PERLIS 2020

KUIZ KEPENGGUNAAN 2 KPS PERLIS 2020

1st - 12th Grade

30 Qs

Doctor Who

Doctor Who

KG - Professional Development

32 Qs

Money Management

Money Management

7th - 8th Grade

34 Qs

Swift Playgrounds Test

Swift Playgrounds Test

Assessment

Quiz

Other

7th Grade

Practice Problem

Hard

Created by

Victor Conde

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? let a = 5 let b = 3 let c = a + b

8

Error

53

15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a function in Swift?

def myFunction()

function myFunction()

func myFunction()

void myFunction()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the break statement in a loop?

To restart the loop from the beginning

To continue executing the loop

To skip the current iteration and move to the next

To end the loop immediately

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? let x = 10 let y = 5 if x > y { print("x is greater than y") } else { print("x is less than or equal to y") }

None of the above

Error

x is less than or equal to y

x is greater than y

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the return keyword in a function?

To specify the output of the function

To end the execution of the function

To indicate that the function has completed successfully

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? let a = 10 let b = 20 let c = a * b

200

30

Error

300

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the continue keyword in a loop?

To skip the current iteration and move to the next

To end the loop immediately

To restart the loop from the beginning

To continue executing the loop

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?