SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
iOS 5 App Development Objective C
Start Test
Study First
Subjects
:
it-skills
,
apple
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. UITableViewController is a subclass of...
super - self
UIViewController
message
initializers
2. Asking a class or object to execute a method
new instances of the class or retrieve some global property of the class.
message
instance variable of an object is valid
(id)initWithFrame:(CGRect)aRect;
3. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
Is a placeholder object
implementation
upper
4. What does autorelease mean?
ready-made instances - instantiation from scratch - and nib based instantiation
object
instance variables
wait until the loop finishes processing the event - at the end release it
5. UIView - designated initializer...
nil
creating an initializer
(id)initWithFrame:(CGRect)aRect;
ready-made instances - instantiation from scratch - and nib based instantiation
6. NSString *s = @'Hello - World'; is an example of...
a mechanism to enable specific callbacks
Continue
NSLog routine
declaration and initialization of a variable
7. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
receiver
define it in the implemenation file
protocol
Model Objects[Factory Worker]
8. id is a...
is an instance of that class
ready-made instances - instantiation from scratch - and nib based instantiation
pointer to an object
Instantiation from scratch
9. class methods...
CGRect bounds
do so in viewDidLoad
group of global functions already assigned to this class
instance variable of an object is valid
10. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
position
selector[message]
setPossessionName
self
11. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
method
safety - subclassability and makes code look more consistent with C structs
will be ignored
super - self
12. Property List...
setPossessionName
Controller Objects[Managers]
collection of collections - NSArray of an NSArray
variable scope - if defined within a block
13. Ready-made instances...
calling code that does the instantiation for you
group of global functions already assigned to this class
do so in viewDidLoad
class's
14. In Objective C arrays can hold only...
UIViewController
references to objects
rectangular
alloc - singleton - informational utility method?
15. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
pointer - class
Generic object wrapper for other non-object data types
class's
receiver
16. We can use dot notation to reference...
17. When an object is removed from an NSMutableArray - that object is sent the message release;...
for inheritance - adopting the superclasses implementation
the message release to all its entries
the array relinquishes ownership of that object and no longer has a pointer to it
receiver[message]
18. In object oriented languages - we call methods that get and set instance variables
19. Designated initializer makes sure that every...
dealloc - is called on the object & the object's memory is returned to the heap
instance variable of an object is valid
size and position
methods
20. @property declares - and _ implements the setter and getter...
ready-made instances - instantiation from scratch - and nib based instantiation
upper
@synthesize
the array becomes an owner of that object and has a pointer to it.
21. Class methods typically either create
new instances of the class or retrieve some global property of the class.
size and position
Used to find the time right now or to store past or future time/dates
receiving and handling events that are associated with it
22. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
do so in viewDidLoad
message
pointer - class
23. Number one use of protocols in iOS...
attributes - behavior
rectangular
delegates and dataSources
nil
24. super - is used...
cannot be added to an array
(id)initWithFrame:(CGRect)aRect;
for inheritance - adopting the superclasses implementation
reuse your cells
25. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
Functions
instance variables
receiver
designated initializer
26. Proceed through the loop - jump back to the top and check again
Continue
view controller's initialization method
CGRect bounds
a single-array can contain objects of different types
27. Never access a view controller's view in that...
28. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
Encapsulation of functionality
Data Encapsulation
do so in viewDidLoad
C Functionn
29. Origin of a view's coordinate system is _ left
superclass's
collection of collections - NSArray of an NSArray
data source - view controller and delegate
upper
30. Each class picks one _ as it's designated initializer....
initializer
instance
data
they need to be defined in the implementation file
31. An instance is a device for maintaining state. It's a box for _ of data.
storage
first responder
Object wrapper around primitive types like int - float - double - BOOl
class methods - initializers
32. Class methods do not operate on an _ or have any access to _ variables....
rectangular
@synthesize
instance
has one root view controller
33. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
size and position
calling code that does the instantiation for you
Encapsulation of functionality
type - name and value
34. A view is an...
CF - Ref
instance of UIView or one of its subclasses
view controller's initialization method
arguments[message]
35. A _ handles touch events.
instance variables
data source - view controller and delegate
view
receiver
36. Name of the method to be executed
group of global functions already assigned to this class
viewWillDissapear: and viewWillAppear:
NSCoder
selector[message]
37. Prefixing a character string with an @ symbol [specific - NSString class]...
instance variables
self
initializers
creates an instance of NSString that holds the character string
38. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Data Encapsulation
pointer - class
Instantiation from scratch
calling code that does the instantiation for you
39. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
nil
superclass's
a mechanism to enable specific callbacks
NSCoder
40. Defining variables - three parts...
initializers
receiver[message]
type - name and value
C Functionn
41. In any application with UINavigationController - the navigation controller...
receiving and handling events that are associated with it
Model Objects[Factory Worker]
Object wrapper around primitive types like int - float - double - BOOl
has one root view controller
42. A method in a _ is required unless its preceded by an @optional.
initializer
storage
declaration and initialization of a variable
protocol
43. Classes describe two things...
attributes - behavior
CGRect bounds
pointer to an object
class
44. Any other initializer a class has calls the _ designated initializer....
45. NSSet...
instance variables
parentViewController
draw images
unordered collection of objects - objects must be unique
46. You use _ to implement the view
CGRect bounds
subview(s)
Abstraction
(id)initWithFrame:(CGRect)aRect;
47. Typically the designated initializer has parameters for the most important and frequently used _ of an object
%d
Generic object wrapper for other non-object data types
instance variables
instance
48. Just a floating point number - but we always use it for graphics.
new instances of the class or retrieve some global property of the class.
Generic object wrapper for other non-object data types
CGFloat
Model Objects[Factory Worker]
49. To load a Xib file manually - you use _
callbacks
Generic object wrapper for other non-object data types
NSBundle
Functions
50. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
callbacks
selector[message]
a single-array can contain objects of different types