
Apple Swift Coding I - Lesson 11-16 (REORDER)
Computers
9th - 12th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the code snippet that would produce the error:
Invalid reeducation of ‘myFirstWord’
let myFirstWord = "juice"
let myFirstWord = "banana"
let myFirstWord = "bye"
myFirstWord - "anemone"
myFirstWord = "uh oh"
var myFirstWord = "indubitably"
myFirstWord = "dada"
myFirstWord = 1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code snippet print out?
let number = 100
if number > 99 {
print ("What a smallish number !")
{ else if number < 150 {
print ("That's not so big.")
{
print ("Goodbye.")
“What a smallish number!”
“What a Smallish number!”
What a Smallish number!” “Goodbye.”
“That’s not so big.” “Goodbye.”
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What’s the effect of setting the main dish for tuesdayMenu on wednesdayMenu?
Var tuesdayMenu = DinnerMenu (mainDish: "veggie stew", sideDish" "bread", beverage: "fizzy water")
let wednesdayMenu = tuesdayMenu
tuesdayMenu.mainDish = "chicken parmesan"
A. Wednesday’s main dish is now “chicken parmesan” because wednesdayMenu is a was assigned to be equal to tuesdayMenu.
A. Wednesday’s main dish is now “veggie stew.” Because wednesdayMenu is a separate instance value from tuesdayMenu
A. The code fails with an error because wednesdayMenu is a constant and cannot be changed.
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why does the code have the error “Use of unresolved identifier ‘isBelow’” on the marked line?
isBelow should be declared before the if statement and value assigned inside
There is a spelling mistake in the constant name
The “let” statement should be “var”
The line with the error should read:
Return isBelow: Bool
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code snippet print out?
let number = 100
if number > 99 {
print ("what a large number !")
} else {
print ("That's not so big.")
}
print ("Goodbye.")
"What a large number!"
"What a large number!" "That's not so big"
"That's not so big" "Goodbye."
"What a large number!" "Goodbye."
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the code snippet that would produce the error:
Use of unresolved identifier ‘myFirstWord’
let myFirstWord = "juice"
let myFirstWord = "banana"
let myFirstWord = "bye"
myFirstWord - "anemone"
var myFirstWord = "indubitably"
myFirstWord = "dada"
myFirstWord = 1
myFirstWord = "uh oh"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the code snippet that would produce the error:
Cannot assign to value: ‘myFirstWord’ is a “let’ constant
let myFirstWord = "juice"
let myFirstWord = "banana"
let myFirstWord = "bye"
myFirstWord = "anemone"
myFirstWord = "uh oh"
var myFirstWord = "indubitably"
myFirstWord = "dada"
myFirstWord = 1
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
Journey Inside
Quiz
•
9th - 11th Grade
24 questions
11 AIT - application skills (unit 2)
Quiz
•
11th - 12th Grade
25 questions
REVIEWER| COMPUTER SYSTEM SERVICING 1 (CSS 1)
Quiz
•
12th Grade
21 questions
Одномерные массивы в Python (9 класс)
Quiz
•
9th Grade
21 questions
Libre Office Writer
Quiz
•
5th - 10th Grade
22 questions
Kelas 10
Quiz
•
10th Grade
22 questions
representing numbers (lesson 1 plenary)
Quiz
•
6th Grade - University
24 questions
Problem Solving PP2
Quiz
•
12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade