Given: ! what is the result of: 1. stringValue == nil 2. stringValue == “Justin Gif” 3. the compiler wont allow it 4 var stringValue:String = “Justin Gif” stringValue = nil
What is the mutating keyword for? 1. Indicates a class can mutate its properties 2. Indicates a method on a struct changes the struct’s values 3. Indicates that a variable will change during its lifetime 7
What is the expected result? 1. a = [ 33, 44 ] b = [ 33, 55 ] 2. b = [ 33, 55 ] b = [ 33, 55 ] 3. compiler will not allow it 10 let a = [ 33, 44 ] let b = a b[1] = 55
What is the expected result? 1. a = [ 33, 44 ] b = [ 33, 44, 55 ] 2. a = [ 33, 44, 55 ] b = [ 33, 44, 55 ] 3. compiler will not allow it 11 let a = [ 33, 44 ] let b = a b.append(55)