
Variables and Types in Swift
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium

R M
Used 24+ times
FREE Resource
Enhance your content in a minute
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
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Basic Parts of Speech EPS
Quiz
•
9th - 10th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
15 questions
CSS Quarter IV QUIZ 2
Quiz
•
10th Grade
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
