Apple Swift Coding II - Lesson 1.1 - Lesson 1.3 Vocabulary Word Review

Apple Swift Coding II - Lesson 1.1 - Lesson 1.3 Vocabulary Word Review

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Operator

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 (20)

Section 1

(20 cards)

Operator

Front

A symbol - such as +, -, or && - that represents an action on one or more values

Back

Open Source

Front

A place where language is developed in the open, with community input and support. Everyone is welcome to contribute or simply to follow along.

Back

Double

Front

A number with a decimal point, like 7.78 or 1000.0. If you initialize a constant or variable in Swift to a literal number with a decimal point (like let distance = 26.2) this is what you will get.

Back

Let

Front

This allows you to store a value in a named constant. The value of a constant doesn't need to be known at compile time, but you must assign it a value once (and only once.)

Back

Playground

Front

An environment area in Xcode for experimenting with code and seeing instant results.

Back

Mutable

Front

Where an object can be updated or changed. A variable object can be updated or changed but a constant is not.

Back

Type Inference

Front

Swift uses this to work out an object's type from the available information, even when the name of the type isn't explicitly put into words in code.

Back

Results Sidebar

Front

An area in a playground where information is shown about each line of code that produces an output value. As you add or change code, the playground runs the code again and updates.

Back

Int

Front

This stores an integer, or whole number, such as 10 or -42.

Back

Property

Front

A piece of data held by a structure, class, or enumeration. For example, each array instance has a count that differs depending on the characteristics of the array.

Back

Var

Front

This allows you to store a value in a named variable. The value can e mutated, or changed.

Back

Type Safety

Front

Swift has this to prevent writing code that uses types incorrectly or unexpectedly. For example, if a function expects a type Fruit and you try to call it with a vegetable, your app or playground won't run until you fix the error.

Back

Function

Front

This combines lines of code into a single block that can be used again. Some of these have inputs and change their behavior based on arguments from their caller, some have outputs and give a result, some have neither

Back

Bool

Front

A Boolean type has only two possible values: true and false. Booleans are named after George Boole, a 19th - Century mathematician who realized how important it is to ask clear questions with simple answers.

Back

Comment

Front

A readable explanation meant to help explain a surrounding code. This will not be executed as part of the program. In Swift, this will be created by adding "//" in front of text.

Back

Constant

Front

An immutable identifier. Once assigned a value, the value can never change; trying to assign a new value to an existing one will generate an error. In swift this is declared with let

Back

Compound Assignment

Front

This is used to update the value of a variable in a way that depends on its current value, without typing the variable's name twice. For example, += is a shorthand for this assignment with addition (+); It checks the current value of the variable on the left-hand side, calculates the sum of that current value plus the value on the right-hand side, and then assigns the calculated sum as the variable's new value.

Back

Console

Front

Programmers use this message center to shows details about the way a program is running.

Back

Variable

Front

This represents a value that can change after it's been initialized, indicated in Swift by the var keyword.

Back

Immutable

Front

An object that cannot be updated or changed.

Back