This document contains 11 multiple choice questions about Objective-C concepts such as class hierarchies, app states, IBAction, IBOutlet, default properties, protocols, categories, and conforming to protocols. The questions cover topics like the UIKit class hierarchy, determining the state of an app, the purpose of IBAction and IBOutlet, default properties in UIKit, the difference between interfaces and implementations, informal protocols declared as categories, categories not being able to add instance variables, conforming to protocols using angle brackets, and using conformsToProtocol: to check protocol conformance.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
346 views
IOS Interview Questions (MCQ)
This document contains 11 multiple choice questions about Objective-C concepts such as class hierarchies, app states, IBAction, IBOutlet, default properties, protocols, categories, and conforming to protocols. The questions cover topics like the UIKit class hierarchy, determining the state of an app, the purpose of IBAction and IBOutlet, default properties in UIKit, the difference between interfaces and implementations, informal protocols declared as categories, categories not being able to add instance variables, conforming to protocols using angle brackets, and using conformsToProtocol: to check protocol conformance.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2
#1
Which of the following hierarchy is correct?
a)UIButton->UIControl->UIView->NSObject->UIResponder b)UIControl->UIButton->UIView->UIResponder->NSObject c)UIButton->UIControl->UIView->UIResponder->NSObject d)None of the Above Answer: c #2 The application has not been launched or was running but terminated by the devic e.Determine the current state of App. a)Suspended state b)Background state c)Inactive state d)Not running state Answer: d #3 Application running in foreground but currently not receiving any events.What is the current state of Application? a)Background state b)Inactive State b)Suspended state c)Active State d)None of the above Answer: b #4 ** Which of the following statement is wrong ? a)IBAction is a type qualifier used by IB to enable connection user experience e lements and app code. b)IBAction resolves to void c)IBAction is a macro defined to denote a method that can be referred to in Inte rface Builder. d)None of them Answer: d #5 Which of the following statement is wrong? a)IBOutlet are macro defined to denote a variable that can be referred to in In terface Builder. b)IBOutlet resolves to Id c)IBOutlet resolves to nothing d)IBOutlet is a type qualifier used by Interface Builder as a connection point f or sending messages from app code to a user interface element Answer: c #6 Which of the following is a default UI property? a)assign b)non-atomic c)atomic d)None of them Answer : c #7 Interface declares the behavior of class and implements defines the behavior of class. a)true b)false Answer : a #8 Informal protocols are typically declared as categories of the NSObject class. a)true b)false Answer : a #9 A category can be used to add new instance variables to a class. a)true b)false Answer : b #10 The line, id <Painting> myObject; a) Says that myObject is part of the Painting category b) Says that myObject conforms to the Painting category c) Says that myObject conforms to the Painting protocol d) Is not valid Objective-C syntax Answer : c #11 The conformsToProtocol: method can be used to see if an object belongs to a clas s that implements a particular protocol a)true b)false Answer : a
Data Structures and Algorithms in Swift: Implement Stacks, Queues, Dictionaries, and Lists in Your Apps 1st Edition Elshad Karimov - Explore the complete ebook content with the fastest download