
Swift Unit 2
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Darren Hanson
Used 3+ times
FREE Resource
Enhance your content in a minute
24 questions
Show all answers
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 ( ) {
Create a free account and access millions of resources
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
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
19 questions
Categories of Computers
Quiz
•
9th Grade - University
20 questions
WEB DESIGN QUIZ P2
Quiz
•
12th Grade
20 questions
Term 1: Quiz 2:Grade 9 Cat Intro
Quiz
•
9th Grade
20 questions
Câu hỏi ôn tập GK2
Quiz
•
9th Grade
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
CSS - Operating System
Quiz
•
11th 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
