
Variables and Types in Swift
Authored by R M
Computers
10th - 12th Grade
Used 24+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword for declaring a variable?
variable
var
score
let
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term coders used for stored information using containers
Variable
Type
Constant
Algorithm
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why would you want to use a variable in your code?
You anticipate that you may want to change the value throughout the program.
Variables are the only way to store values.
You use variables when anticipate the values will not change throughout the program.
Variables can be used to declare values such as pi in mathematical equations.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one way Swift determines the type of a value in your code?
Type Intrusion
Type allegiance
Type writing
Type inference
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does Swift decide what type distance should be?
let distance: Double = 4
Type inference
Type annotation
Type writing
Type interference
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line shows the correct type annotation in Swift?
String: let name
let String: name
let name: String
let String
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a type?
String
Variable
Double
Integer
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
hardware and software(g3)
Quiz
•
2nd - 10th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Network
Quiz
•
10th - 11th Grade
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
20 questions
Computer Fundamentals
Quiz
•
10th Grade
13 questions
bts
Quiz
•
KG - Professional Dev...
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
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Elijah McCoy: Innovations and Impact in Black History
Interactive video
•
6th - 10th Grade