๐Ÿงช Swift (programming language) MCQ Quiz Hub

Swift Multiple Choice Questions and Answers Set 2

Choose a topic to test your knowledge and improve your Swift (programming language) skills

Which among the following is true with respect to enum's raw values in Swift? S1: Integer raw values are assumed to start at 0 S2: Integer raw values increase monotonically S3: Raw-valued enum automatically conforms to RawRepresentable S4: String raw values cant be synthesized automatically





โœ… Correct Answer: 1

Which keyword enables a method of a struct to change the value of the struct itself in swift?





โœ… Correct Answer: 2

Which is false with respect to structs in swift?





โœ… Correct Answer: 3

When can mutating methods be used in structs?





โœ… Correct Answer: 2

Which of the following throws error in swift with respect to structs?





โœ… Correct Answer: 2

Which of the following is true about Swift?





โœ… Correct Answer: 4

Swift is an open-source programming language developed by?





โœ… Correct Answer: 3

What is the meaning of question mark "?" in Swift?





โœ… Correct Answer: 2

How can you make a property optional in Swift?





โœ… Correct Answer: 3

Which operator specifies a range between two values a and b (a





โœ… Correct Answer: 4

In Swift4, functions can be categorized in __________ types.





โœ… Correct Answer: 2

A function inside a function is called a nested function in swift?





โœ… Correct Answer: 1

__________ is a hierarchy of objects that obtain the opportunity to respond to the events.





โœ… Correct Answer: 3

Enum is also known as Swift Enumeration.





โœ… Correct Answer: 1

Constants are declared by using _____ keyword and variables by _______ keyword.





โœ… Correct Answer: 4

Numbers with decimal values or fractional components are called?





โœ… Correct Answer: 3

____________ is a process of querying and calling properties





โœ… Correct Answer: 3

Which Of The Following Is Incorrect Data Type In SWIFT ?





โœ… Correct Answer: 3

The class which inherits the properties from other class is called child class or sub class.





โœ… Correct Answer: 1

Who is introduced Swift?





โœ… Correct Answer: 1

When Swift was initially Released?





โœ… Correct Answer: 3

What are the features of Swift Programming?





โœ… Correct Answer: 4

Which Of The Following Framework Is Not Used In IOS?





โœ… Correct Answer: 1

Which command is used to turn the switch on?





โœ… Correct Answer: 2

What is swift playground?





โœ… Correct Answer: 4

What is the meaning of question mark "?" in Swift?





โœ… Correct Answer: 3

The expression that creates a closure in Swift is called ____ in other languages it is also called a Lambda or Anonymous Function.





โœ… Correct Answer: 4

Given : var stringValue:String = "Somthing". What is the result of stringValue = nil?





โœ… Correct Answer: 3

Numbers with decimal values or fractional components are called?





โœ… Correct Answer: 2

In Swift programming language, single-line comments are started with _______?





โœ… Correct Answer: 4

Constants are declared by using _____ keyword and variables by _______ keyword.





โœ… Correct Answer: 1

________ is a process of querying and All of the abovecalling properties





โœ… Correct Answer: 2

The IDE Used In Swift Is______





โœ… Correct Answer: 3

What are the advantages of Swift?





โœ… Correct Answer: 4

What's are the new features in Swift 4.0?





โœ… Correct Answer: 4

Given : var stringValue:String = "Justin Gifย. What is the result of stringValue = nil?





โœ… Correct Answer: 3

What are the collection types in Swift?





โœ… Correct Answer: 4

IOS Stands For ?





โœ… Correct Answer: 2

To Create Mutable Object __ Is Used





โœ… Correct Answer: 2

Which Of The Following IOS Frameworks Is A Commonly Used Third Party Library?





โœ… Correct Answer: 3