A Constant is an immutable identifier. Once assigned a value, the value can never change; trying to assign a new value to an existing constant will generate an error. A constant is declared with let.
Back
What is the Attributes inspector used for?
Front
Provides a list of adjustable visual properties for the selected item
Back
What is an IBOutlet?
Front
A reference to a visual element in code so it can be adjusted at runtime
Back
What does the logical operator, ">", mean?
Front
greater than
Back
how many times does "viewDidLoad" appear?
Front
2
Back
Where is "Build and Run" button located?
Front
Toolbar
Back
What does the logical operator, "==", mean?
Front
equals
Back
Can you compile an equation with and Int and Double?
Front
No because they are different Types.
Back
What does the logical operator, "<=", mean?
Front
less than or equal to
Back
How is an XIB different from a storyboard?
Front
An XIB represents a single view object, while a storyboard represents multiple views, scenes, and how to navigate between them
Back
What does the logical operator, "&&", mean?
Front
and
Back
What are the requirements for running code on an actual device?
Front
An Apple ID, Registering an email address as a developer account, Adding the developer account to Xcode
Back
What is a great environment for prototyping Swift code?
Front
Playgrounds
Back
What is the Identity inspector used for?
Front
Allows you to edit the properties related to an object's identity, such as what class it belongs to
Back
What is a double?
Front
A double is a number with a decimal point. if you initialize a constant or variable to a literal number with a decimal point, then its type is inferred to be a Double.
Back
What do you use to switch to running code on a physical device instead of using a simulator?
Front
Scheme menu
Back
What is compound assignment?
Front
You use compound assignment to update the value of a variable in a way that depends on its current value, without typing the variable's name twice.
teamScore += 3
is the same as
teamScore = teamScore + 3
Back
After code execution has paused at a breakpoint, which button will resume execution?
Front
Continue
Back
What is the keyboard shortcut to move to the top of a file?
Front
Command ↑
Back
What does the logical operator, "||", mean?
Front
Or
Back
What are three advantages to using Interface Builder over setting up views programmatically?
Front
Maintainability, Ease of use, Supports multiple screens
Back
What is the Size inspector for?
Front
Allows you to adjust size and position of the selected element with the scene
Back
What is a variable?
Front
A value that can change after it's been initialized, indicated by the var keyword.
Back
What is an IBAction?
Front
A reference to a piece of code that will execute when the user interacts with a control