Swift Playgrounds Test
Quiz
•
Other
•
7th Grade
•
Practice Problem
•
Hard
Victor Conde
Used 2+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
40 questions
Saber v. Conocer
Quiz
•
5th - 12th Grade
30 questions
Risk Management/Sports & Entertainment Markets
Quiz
•
KG - University
30 questions
STAAR REVIEW ~ 6th GRADE
Quiz
•
6th - 7th Grade
30 questions
Rocket League Quiz
Quiz
•
KG - University
38 questions
Unit 4: CE6
Quiz
•
6th - 8th Grade
30 questions
Model United Nations
Quiz
•
6th - 12th Grade
37 questions
Science and Engineering practices
Quiz
•
7th - 8th Grade
35 questions
MO Hunter's Education
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
22 questions
distributive property
Quiz
•
7th Grade
18 questions
Angle Relationships
Quiz
•
7th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
20 questions
How Some Friendships Last — and Others Don’t Video Questions
Quiz
•
7th Grade
18 questions
Handbook Refresher Quiz
Quiz
•
7th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
