Apple Swift Section 1

Apple Swift Section 1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What is a constant?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (32)

Section 1

(32 cards)

What is a constant?

Front

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

Back

What are the order of operations?

Front

Parenthesis, Exponents, Multiply/Divide, Addition/Subtraction (PEMDAS)

Back

What does the logical operator, "!", mean?

Front

Not

Back

What makes Swift a "safe" language?

Front

Type Safety, Type inference, Error handling, Optionals

Back

What are three primary goals of Swift?

Front

Safe, Fast, Expressive

Back

What does the gray arrow next to a storyboard scene indicate?

Front

That the scene is the initial view controller.

Back

What is the Document Outline used for?

Front

Displays a list of each view controller in the scene, along with a hierarchical list of the elements within each view controller

Back

What is the Connections inspector used for?

Front

Lists all the functions and variable names related to the object

Back

If you wanted to add Apple Pay to your app, where would you begin looking?

Front

Capabilities section of the project file

Back