Apple Swift Coding I - Lesson 11-16 (REORDER)
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Used 18+ times
FREE Resource
Enhance your content in a minute
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
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
22 questions
пцу 81-100
Quiz
•
11th Grade
25 questions
Test Operatii Word+Formule Word
Quiz
•
1st - 10th Grade
21 questions
Stepford County Railway Quiz
Quiz
•
1st Grade - University
21 questions
Quiz on Software Installation and Upgrades
Quiz
•
12th Grade
21 questions
G10 CS Sem 2 TA The Internet, AI, and Programming
Quiz
•
10th Grade
23 questions
Revision grade 11 term 3
Quiz
•
11th Grade
22 questions
11 CSC ATAR - Week 2-3 review
Quiz
•
11th Grade
22 questions
Functions in RobotC
Quiz
•
7th - 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
