
Swift Unit 2
Authored by Darren Hanson
Computers
9th - 12th Grade
24 Questions
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What best describes an algorithm?
Only calculations that use advanced mathematics
The computer equivalent of rhythm
A step by step series of operations
The same thing as an identifier
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a benefit of using functios?
They can give you infinite loops
They keep your code organized.
They prevent repeated code
They make larger programs easier to understand
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
With the following code, what would you expect to see in the console in a playground?
func saySomething ( ) {
print ("Functions are awesome")
saySomething( )
}
saySomething ( )
Functions are awesome, once
Functions are awesome, twice
Functions are awesome, repeated over and over and over
Nothing
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
With the following code, what would you expect to see in a console playground?
func saySomething ( ) {
print ("Functions are awesome")
}
saySomething ( )
saySomething
Functions are awesome
Nothing
Something
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
With the following code, what would you expect to see in the console in a playground?
func saySomething ( ) {
print ("Functions are awesome")
}
Functions are awesome
saySomething
Something
Nothing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's another word for the lines of code that a function contains?
Body
Clause
Parameters
Return Value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line is the correct way to declare a function?
let myFunction = func ( ) {
let func = myFunction ( ) {
func myFunction ( ) {
func = myFunction ( ) {
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
25 questions
HTML
Quiz
•
11th Grade
20 questions
Q1 M3 PRE-TEST
Quiz
•
10th Grade
20 questions
Quiz ASJ
Quiz
•
12th Grade
20 questions
Computer Science - X
Quiz
•
8th - 10th Grade
20 questions
Quiz
•
7th - 12th Grade
21 questions
Lecture Exercise Topic 1.3
Quiz
•
12th Grade
20 questions
Unit Test 1 Class 8 Computer
Quiz
•
8th - 9th Grade
20 questions
Software
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade