Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 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

You might also like