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. Instance Variables by default are called @protected meaning...
define it in the implemenation file
only the class and subclasses can access
draw images
instance
2. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiver[message]
to get and set variables
Object wrapper around primitive types like int - float - double - BOOl
3. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
nil
data
receiver
creating an initializer
4. A view represents a _ area
wait until the loop finishes processing the event - at the end release it
receiver
instance of UIView or one of its subclasses
rectangular
5. The only reason to temporarily own an object - is...
accessors - individually we call them 'getters' and 'setters'
methods
dealloc - is called on the object & the object's memory is returned to the heap
to give it someone else - or another object
6. All objects are accessed using...
subview(s)
Used to find the time right now or to store past or future time/dates
pointers
ready-made instances - instantiation from scratch - and nib based instantiation
7. 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.
Hash table - Look up objects using a key to get a value.
is an instance of that class
creates an instance of NSString that holds the character string
Data Encapsulation
8. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
instance variables
selector[message]
a single-array can contain objects of different types
9. When do you take ownership?...
alloc - singleton - informational utility method?
object
Anytime you call a method with new - alloc or copy. You own and must release that object.
pointers
10. NSString objects are usually sent _ rather than _...
copy - retain
Data Encapsulation
only the innermost loop in which the break is executed is terminated
Maintenance of state
11. NSArray - class...
Abstraction
ordered collection of objects - immutable
instance variables
setPossessionName
12. Designated initializer makes sure that every...
class
NSBundle
instance variable of an object is valid
data source - delegate and view controller
13. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
the message release to all its entries
nil
subview(s)
parentViewController
14. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
alloc - singleton - informational utility method?
C Functionn
data
method
15. Hold data and know nothing about the user interface
Instantiation from scratch
only the class and subclasses can access
Model Objects[Factory Worker]
rectangular
16. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
unordered collection of objects - objects must be unique
header files declare
methods for generating an instance
view
17. In Cocoa Touch - the table view asks another object _ what it should display...
copy - retain
its dataSource
wait until the loop finishes processing the event - at the end release it
new instances of the class or retrieve some global property of the class.
18. The integer prefix is...
%d
view
(id)initWithFrame:(CGRect)aRect;
designated initializer
19. 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
a mechanism to enable specific callbacks
methods
only the class and subclasses can access
the instance variables
20. Use of class methods - there are three...
upper
ordered collection of objects - immutable
alloc - singleton - informational utility method?
protocol
21. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
retain
its dataSource
CF - Ref
22. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
subview(s)
is an instance of that class
class
ready-made instances - instantiation from scratch - and nib based instantiation
23. A function in the objective c library that simply displays or logs it's argument
NSLog routine
callbacks
pointer - class
array[class - NSMutableArray]
24. 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
CGRect bounds - GCPoint center - CGRect frame
receiver[message]
Encapsulation of functionality
Data Encapsulation
25. 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...
reuse your cells
protocol
creating an initializer
setPossessionName
26. @property declares - and _ implements the setter and getter...
first responder
@synthesize
class methods - initializers
do so in viewDidLoad
27. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
is called every time the event occurs
create a XIB file
header files declare
28. Number one use of protocols in iOS...
Used to find the time right now or to store past or future time/dates
method
creating an initializer
delegates and dataSources
29. id is a...
a single-array can contain objects of different types
its dataSource
instance variable of an object is valid
pointer to an object
30. super - is used...
lowercase - uppercase
for inheritance - adopting the superclasses implementation
pointers
class methods - initializers
31. Whenever a UINavigationController is about to swap views - it sends out two messages
object
viewWillDissapear: and viewWillAppear:
Core Graphics Framework
@interface ClassName:SuperClassName
32. Values to be supplied as the parameters to the method
arguments[message]
parentViewController
Generic object wrapper for other non-object data types
only the class and subclasses can access
33. Classes describe two things...
the message release to all its entries
view controller
data source - delegate and view controller
attributes - behavior
34. Class methods typically either create
CF - Ref
receiving and handling events that are associated with it
new instances of the class or retrieve some global property of the class.
ordered collection of objects - immutable
35. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
pointer - class
you always return the newly initialized object(return self)
do so in viewDidLoad
36. NSValue - class...
has one root view controller
Instantiation from scratch
data source - delegate and view controller
Generic object wrapper for other non-object data types
37. When an object is removed from an NSMutableArray - that object is sent the message release;...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the array relinquishes ownership of that object and no longer has a pointer to it
view controller's initialization method
to give it someone else - or another object
38. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Abstraction
cannot be added to an array
instance variable of an object is valid
39. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Generic object wrapper for other non-object data types
setPossessionName
receiver
the array relinquishes ownership of that object and no longer has a pointer to it
40. To load a Xib file manually - you use _
declaration and initialization of a variable
calling code that does the instantiation for you
NSBundle
an object's property
41. Typically the designated initializer has parameters for the most important and frequently used _ of an object
NSLog routine
Is a placeholder object
instance variables
data
42. Delegation is an object oriented approach to
'getters' and 'setters'
view controller
Used to find the time right now or to store past or future time/dates
callbacks
43. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
instance variables
header files declare
the instance variables
44. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
view
ready-made instances - instantiation from scratch - and nib based instantiation
callbacks
CGRect
45. Ready-made instances...
calling code that does the instantiation for you
upper
Continue
data source - delegate and view controller
46. You use _ to implement the view
CGRect bounds
position
self
%d
47. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
to give it someone else - or another object
dealloc - is called on the object & the object's memory is returned to the heap
Ready-Made Instance
initializers
48. A method in a _ is required unless its preceded by an @optional.
selector[message]
protocol
message
object
49. NSArray - important methods...
super - self
pointer to an object
callbacks
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
50. class methods...
group of global functions already assigned to this class
new instances of the class or retrieve some global property of the class.
size and position
selector[message]