
Lesson 8 - Apple Swift Coding 1
Computers
9th - 12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line is declaring a constant?
name = "Johnny"
let name = "Johnny"
let "Johnny" = name
var name = "Johnny"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line is declaring a variable?
name = "Johnny"
let name = "Johnny"
let "Johnny" = name
var name = "Johnny"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of score after this code:
var score = 2
score = score + 1
2
3
1
This code will not work
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of score after this code?
var score = 0
score +=1
score +=1
0
1
2
This code will not work
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You're writing a program for scoring a word game. Each letter has a value between 1 and 10 and players earn points for making words. What should be stored as a constant in the program?
The scores per letter
The list of words the player has made
The player's score
Nothing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of message after this code?
var message = " "
message + ="Hello"
message ++"World"
"Hello"
"World"
Hello World
"HelloWorld"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this code?
let score = 15
score +=5
Nothing
The scores are wrong
Score is a constant and cannot be changed
+= should be =+
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
10 questions
App Development lesson 1
Quiz
•
8th - 9th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
11 questions
Access
Quiz
•
10th Grade - University
10 questions
Emerging technologies
Quiz
•
6th Grade - University
12 questions
Keyboard Parts
Quiz
•
7th - 9th Grade
10 questions
Go Beyond the Sales LAP Quiz
Quiz
•
9th - 12th Grade
11 questions
AP CSP Review 11Q
Quiz
•
10th - 12th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 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