iOS Application Development using Swift Quiz Questions and Answers

Which of the following statement is wrong ?

Answer :
  • IBAction is a macro defined to denote a method that can be referred to in Interface Builder.

Explanation :

An IBAction (Interface Builder action) is a function which is called when a specific user interaction occurs. 

What type of integer is denoted by "Int8 "?

Answer :
  • Signed

Explanation :

Signed integers are denoted by INt8

Which of the following hierarchy is correct?

Answer :
  • UIButton->UIControl->UIView->UIResponder->NSObject

Explanation :

UIControl is a child of UIButton

What is the name of the initializer in a Class declaration In IOS?

Answer :
  • init

Explanation :

init is a initializer

What are the control transfer statements used in SWIFT?

Answer :
  • A) Continue
    B) Break
    C) Fall Through
    All of the above

Explanation :

All

what are the  features of SWIFT programming?

Answer :
  • A) It eliminates entire classes of unsafe code
    B) Variables are always used before use.
    C) Memory is managed automatically
    All of the above

What should be preceded before the parameters while defining the function if you do not want to mention an external name in a function call?

Answer :
  • _