
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
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
10 questions
Scratch
Quiz
•
KG - Professional Dev...
16 questions
AI Checkpoint 1 Revision
Quiz
•
9th - 12th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Lesson 1 Introduction to Database System
Quiz
•
10th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
18 questions
12AIT - All About W3C <3
Quiz
•
10th Grade - University
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th Grade
20 questions
Advantages and Disadvantages of Collecting Data
Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
