Lesson 8 - Apple Swift Coding 1
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Used 5+ times
FREE Resource
Enhance your content in a minute
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 =+
Similar Resources on Wayground
10 questions
Digital Footprint
Quiz
•
9th Grade
10 questions
RFID Quiz
Quiz
•
10th - 12th Grade
10 questions
PERFORMANCE TASK 3 |EMP Tech LC2
Quiz
•
11th Grade
10 questions
1.8 Open Source & Closed Source TRUE or FALSE
Quiz
•
10th Grade
10 questions
Anime
Quiz
•
KG - University
10 questions
Unit 4 Inkscape Visual Graphics
Quiz
•
9th Grade
12 questions
تقنيات وبرمجة الاجهزة الذكية
Quiz
•
11th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
