1.hasPrefix
2. isPrefix
3. isPart
4.has
Answer:1
1.TRUE
2.FALSE
3.Can be true or false
4.Can not say
Answer 11. A. Lazy Chaining
2.Swift Chaining
3.Optional Chaining
4.All of the mentioned
Answer 31.S1 and S2
2.S1 and S3
3.S2 and S3
4.S1, S2 and S3
Answer 41.round(-3.500) = -3
2.ceil(-3.999) = -3
3.floor(-3.001) = -3
4.Int(-3.999) = -4
Answer 21.Int("123") returns error
2.Int("hello") returns nil
3.Int("10", radix: 2) returns 10 of Int type
4.Double("hello") returns hello
Answer 21.Enums cant have custom init methods
2. Enum can be created using rawValue
3.Enums without any specific type expose the rawValue property
4.Enums without payloads cant have raw values of any literal type:
Answer 21.S1 and S2
2.S1 and S3
3.S2 and S3
4.S1, S2 and S3
Answer 11.stringValue == nil
2.stringValue == “Justin Gif”
3.the compiler won't allow it
4.None
Answer 31.Firstly, think like a user while designing the UX
2.Consider all the situations that prove to be useful while promoting an App
3.Continue to work on the utility of the App, even after the launch
4.All of the above
Answer 41. IBOutlet var button: UIButton
2.var button: UIButton(IBOutlet)
3.var button: UIButtonoutlet
4.None of the mentioned
Answer 41.1
2.2
3.3
4.4
Answer 21.1
2.2
3.3
4.4
Answer 31.2
2.3
3.4
4.5
Answer 21.$ swift filename.swift
2.$ swiftc filename
3.$ swiftc filename.swift
4.$ swift filename.s
Answer 31.$ swift filename.swift
2.$ swiftc filename
3.$ swiftc filename.swift
4.$ swift filename.s
Answer 11.string.uppercased()
2. string.upper()
3.string.uppercase()
4.string.toUppercase()
Answer 11.let arrayOfStrings = Array(repeat: "Swift", 4)
2.let arrayOfStrings = Array(repeat: "Swift",count: 4)
3.let arrayOfStrings = Array(repeating: "Swift",count: 4)
4.repeated values not supported
Answer 31.extractMap
2.filterMap
3.valueMap
4. flatMap
Answer 41..rawValue
2.raw
3..value
4..getRawValue
Answer 11.(a, b) = (b, a)
2.a.swap(b)
3.swap(a,b)
4.(a)=(b)
Answer 11. single slashes
2.double slashes
3.asterisk
4.hash
Answer 21.single slashes
2.double slashes
3.asterisk
4.hash
Answer 21.color.remove("green")
2.color.remove(at:2)
3.color.remove("2")
4.color.filter("green")
Answer 11. A. decimal number
2.integer number
3.floating numbers
4.All of the above
Answer 31.scripting language
2.object-oriented programming language C. D.
3.type-safe language
4.All of the above
Answer 41.Int4
2.Integer
3.UInt
4.Float16
Answer 31.Parameter
2.Closure Expression
3.Defined
4.Control
Answer 21.32 bit architecture
2.64 bit architecture
3.Both 32 and 64 bit architecture
4.None of the above
Answer 31.Much faster than other languages B.
2.Supports pattern matching
3.Type-safe language
4.All of the above mentioned
Answer 41.Swift is safe
2.Swift is fast
3.Swift is open source
4.All of the above
Answer 41.It supports any kind of data, and not only synchronize but also checks for equality
2.When a case is matched in switch, the program exits from the switch case and does not continue checking the next cases. So you don’t need to explicitly break out the switch at the end of case
3.switch statement must be exhaustive, which means that you have to cover all possible values for your variable
4.All of the above
Answer 41.Dictionary and array
2.Array and library
3.Dictionary and library
4.Library, dictionary and array
Answer 11.Not runningwrong
2.Inactive
3.Active
4.All of the above
Answer 41.Continue
2.Break
3.Fallthrough
4.All of these
Answer 41.Poor interoperability with third-party tools and IDEs
2.Lack of support for earlier iOS versions
3.Both of these
4.None of These
Answer 31. It eliminates entire classes of unsafe code
2.Variables are always initialized before use
3.Arrays and integers are checked for overflow
4.All of these
Answer 41.Arrays and integers are checked for overflow
2.Switch function can be used instead of using “if” statement
3.It eliminates the classes that are in an unsafe mode
4.All of the above
Answer 41.index of the enum starting from one
2.index of the enum starting from zero
3.last index
4.difference of first and last index of the enum
Answer 21.Necessary wrong
2.Missing
3.Optionalcorrect
4.Changed
Answer 31..s
2..sw
3..swift
4..sp
Answer 31.let number = min + arc4random_uniform(max + min + 1)
2.let number = min + arc4random_uniform(max , min + 1)
3.let number = min + arc4random_uniform(max - min - 1)
4.let number = min + arc4random_uniform(max - min + 1)
Answer 41.Stop
2.Execute
3.Damper
4.Break
Answer 41.Open
2.Signed
3.Unsigned
4.Close
Answer 21.aster, easier to use Strings that retain Unicode correctness
2.Smart key paths for type-safe, efficient, extensible key-value coding for Swift types
3.Added some enhancements to creating a dictionary and Set types
4.All of the above
Answer 41.var arrayOfStrings: [String] = []
2.let arrayOfUInt8s: [UInt8] = [2, 6, 8]
3.var arrayOfStrings = Array<String>()
4.var arrayOfStrings = [String]
Answer 41.return from functions
2.use of typealias keyword to name the tuple type
3.swap the tuple values
4.Sort the tuple values
Answer 41.Have values that are not calculated until first accessed
2.lazy property is declared with lazy
3.Lazy stored properties must be declared with var
4.All of the above
Answer 41.used for transforming an array of A to array of B
2.Changes the type of array
3.iterates through array
4.populates a new array with the transformed elements
Answer 21.Tuples
2.Built in error handling
3.Generics
4.None of the above
Answer 41.Concatenate strings with the + operator to produce a new string
2.Can append a single character to a mutable String
3.Can append multiple characters to a mutable String
4.concatenation of strings is possible using += only not by using append method.
Answer 41.A tuple type is a comma-separated list of types, enclosed in parentheses.
2.The values within a tuple can be of any type
3. Tuples can be decomposed into individual variables
4.All of the above
Answer 41.S1,S2 and S3
2.S1,S3 and S4
3.S1,S2 and S4
4.S1,S2, S3 and S4
Answer 21.S1 only
2.S2 only
3.Both S1 and S2
4. Neither S1 nor S2
Answer 41.Int8(-128) B Int8(128)
2.Int(-0.1)
3.Int(-0.1)
4.Int8(-2)
Answer 21.OR(||)
2.XOR(^^)
3.negate(~)
4.AND(&)
Answer 11.$ swift -version
2.$ swift --version
3. $ swift --v
4.$ swift --currentversion
Answer 21.Has unicode characters
2.Has whitespace
3.Has Mathematical Symbols
4.Has arrows
Answer 11.Type properties are properties on the type itself, not on the instance
2.type property is declared with static keyword
3.type property can be both stored or computed properties
4.type property is declared with type keyword
Answer 41.indirect
2.payload
3.inline
4.raw
Answer 11.index(after:)
2. index.successor()
3.index.next()
4.index.forward()
Answer 21.hasPrefix
2. isPrefix
3. isPart
4.has
Answer 11.compare
2.check
3.zip
4.reduce
Answer 31.flatMap
2.extractMap
3.getValues
4.fetchValues
Answer 11.Sorting an Array
2.Grouping Array values
3.Finding the minimum or maximum element with a custom ordering
4.All of the above
Answer 41.S1,S2 and S3
2.S1,S3 and S4
3.S2,S2 and S4
4.S1,S2,S3 and S4
Answer 41.Empty arrays
2.Arrays with repeated values
3.Multi-dimensional arrays
4.All of the above
Answer 41.Swift is very easy to learn and precise to use
2.Automatic memory management
3.Swift follows Objective-C like syntax
4.All of the above
Answer 41.UInt
2.Double
3.Char
4.Optional
Answer 31.Double
2.Character
3.Enum
4.Class
Answer 41.Binary Literals
2.Quad Literals
3.Hexadecimal Literals
4. Decimal Literals
Answer 21.!
2. ~
3.NOT
4.!=
Answer 11.the null character
2.a vertical tab
3.a double quote
4.dollar character
Answer 41."abc" == "def"
2."abc" == "ABC"
3."abc" == "abc"
4."abc" ==="def"
Answer 31.Underscore (_)
2.Dash(-)
3.Dot(.)
4.Rounded Brackets()
Answer 11.object
2.value
3.string
4.only immutable
Answer 2