Swift - Data Types
Which of the following statements about Swift's
String type is true?String type is true?String is a collection type that holds multiple Character values, allowing it to represent text.Character values. correctly states that strings are collections of characters. Strings can only contain ASCII characters. is false because Swift strings support Unicode, not just ASCII. Strings are immutable and cannot be changed after creation. is false because strings declared with var are mutable. Strings must always be declared using the var keyword. is false because strings can be declared with let (immutable) or var (mutable).let and var usage for strings15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions