Lesson 9 - Apple Swift Coding 1
Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Used 5+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type is foo in the code below? let foo = "Hello"
Let
String
"Hello"
Hello
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type is foo in the code below? let foo = 42
Double
foo
42
Int
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type is foo in the code below? let foo: Double = 42
Double
foo
42
Int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type is foo in the code below? var foo: SolarPhenomen
SolarPhenomenon
Interstellar
variable
Not possible to tell
5.
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does Swift decide what type distance should be? let distance: Double = 4
Type inference
Type annotation
Typewriting
Type interference
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line shows correct type annotation in Swift?
String: let name
let String: name
let name: String
let String
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you're reading code and aren't sure of the type of a variable or constant, what's the quickest way to find out?
Remember that variables are always strings and constants are always numbers.
Option-click the constant's or variable's name in x-code
Rewrite the section of code using different encapsulations
Assign different value types to the variables and check for errors
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you change the type of a Constant or Variable after it's declared?
Create the Value as a Var Variable
Don't give the value a type
You can't change the value of a value
Assign a new value of a different type
Similar Resources on Wayground
10 questions
หน่วยที่ 3 การสร้างฐานข้อมูลและตารางข้อมูล
Quiz
•
11th Grade
10 questions
Glastonbr.ICT Definitions
Quiz
•
9th Grade
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
10 câu kiểu xâu tiết 1
Quiz
•
11th Grade
10 questions
Contact Center Sevices
Quiz
•
7th - 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
Discover more resources for Computers
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
85 questions
Word Processing Review
Quiz
•
8th - 9th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
31 questions
Python Conditionals Review
Quiz
•
9th - 12th Grade
