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. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
pointer to an object
retain
CGRect bounds - GCPoint center - CGRect frame
2. 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 _.
has one root view controller
class
subview(s)
lowercase - uppercase
3. After accessors have been defined in the header file...
ordered collection of objects - immutable
an object's property
data source - view controller and delegate
they need to be defined in the implementation file
4. Primitives and C Structures...
You take ownership for an object you want to keep a pointer to
cannot be added to an array
CGRect
viewWillDissapear: and viewWillAppear:
5. We can use dot notation to reference...
6. The designated initializer calls the _ designated initializer....
7. NSString objects are usually sent _ rather than _...
dealloc - is called on the object & the object's memory is returned to the heap
copy - retain
%d
Used to find the time right now or to store past or future time/dates
8. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
safety - subclassability and makes code look more consistent with C structs
class's
CGFloat
9. Class methods typically either create
new instances of the class or retrieve some global property of the class.
the instance variables
size and position
copy - retain
10. super - is used...
for inheritance - adopting the superclasses implementation
%d
you always return the newly initialized object(return self)
Model Objects[Factory Worker]
11. A pointer to the object being asked to execute a method
receiver[message]
alloc - singleton - informational utility method?
storage
rectangular
12. A view represents a _ area
initializer
protocol
self
rectangular
13. Values to be supplied as the parameters to the method
(id)initWithFrame:(CGRect)aRect;
arguments[message]
selector[message]
values
14. At the top of any implementation file...
safety - subclassability and makes code look more consistent with C structs
nil
will be ignored
you must import the header file of that class
15. 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
in the dealloc - or when a Controller's view is 'unloaded'
attributes - behavior
ready-made instances - instantiation from scratch - and nib based instantiation
16. @property declares - and _ implements the setter and getter...
define it in the implemenation file
view controller's initialization method
@synthesize
references to objects
17. In general - class methods tend to be factory methods - that is...
receiving and handling events that are associated with it
methods
methods for generating an instance
Ready-Made Instance
18. In object oriented languages - we call methods that get and set instance variables
19. Proceed through the loop - jump back to the top and check again
accessors - individually we call them 'getters' and 'setters'
Continue
methods
Model Objects[Factory Worker]
20. When making a tableView always...
draw images
methods
in the dealloc - or when a Controller's view is 'unloaded'
reuse your cells
21. Just a floating point number - but we always use it for graphics.
Maintenance of state
protocol
CGFloat
the array becomes an owner of that object and has a pointer to it.
22. A collection object - an ordered list of objects that can be accesed by an index
superclass's
methods for generating an instance
Is a placeholder object
array[class - NSMutableArray]
23. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
cannot be added to an array
parentViewController
Abstraction
data
24. Defining variables - three parts...
type - name and value
new instances of the class or retrieve some global property of the class.
Generic object wrapper for other non-object data types
parentViewController
25. 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
new instances of the class or retrieve some global property of the class.
Encapsulation of functionality
its dataSource
Model Objects[Factory Worker]
26. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
dealloc - is called on the object & the object's memory is returned to the heap
instance variables
header files declare
parentViewController
27. Origin of a view's coordinate system is _ left
has one root view controller
upper
header files declare
its dataSource
28. Use of class methods - there are three...
the message release to all its entries
the array relinquishes ownership of that object and no longer has a pointer to it
alloc - singleton - informational utility method?
CGFloat
29. Delegation is an object oriented approach to
callbacks
copy - retain
view controller's initialization method
UIViewController
30. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
they need to be defined in the implementation file
callbacks
position
Maintenance of state
31. In Cocoa Touch - the table view asks another object _ what it should display...
Continue
selector[message]
pointer to an object
its dataSource
32. Number one use of protocols in iOS...
delegates and dataSources
Object wrapper around primitive types like int - float - double - BOOl
attributes - behavior
Instantiation from scratch
33. In a class method you cannot access...
the instance variables
callbacks
Used to find the time right now or to store past or future time/dates
safety - subclassability and makes code look more consistent with C structs
34. When an NSMutableArray is deallocated - it sends...
data source - view controller and delegate
Core Graphics Framework
the message release to all its entries
CGRect bounds
35. @property - is using methods...
to get and set variables
viewWillDissapear: and viewWillAppear:
NSBundle
pointers
36. UIImageView is used to...
subview(s)
draw images
instance variable of an object is valid
(id)initWithFrame:(CGRect)aRect;
37. When do we need to release our outlets?
38. Name of the method to be executed
selector[message]
an object's property
message
you always return the newly initialized object(return self)
39. When an object is added to a NSMutableArray - that object is sent the message to retain;...
(id)initWithFrame:(CGRect)aRect;
nil
You take ownership for an object you want to keep a pointer to
the array becomes an owner of that object and has a pointer to it.
40. 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 _.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
nil
CF - Ref
type - name and value
41. NSSet...
storage
CGRect bounds
unordered collection of objects - objects must be unique
retain
42. UIView - designated initializer...
Data Encapsulation
Instantiation from scratch
(id)initWithFrame:(CGRect)aRect;
receiver[message]
43. Any individual object belonging to any class...
the message release to all its entries
alloc - singleton - informational utility method?
is an instance of that class
instance variables
44. To load a Xib file manually - you use _
NSBundle
receiver - selector - arguments
callbacks
Hash table - Look up objects using a key to get a value.
45. In the last line of an init method...
you always return the newly initialized object(return self)
retain
collection of collections - NSArray of an NSArray
nil
46. 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
Core Graphics Framework
view
parentViewController
47. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
is an instance of that class
safety - subclassability and makes code look more consistent with C structs
lowercase - uppercase
48. initWithFrame: the designated initializer for UIView gives the view
@interface ClassName:SuperClassName
data source - view controller and delegate
will be ignored
size and position
49. What happens when the last owner calls release?
50. A UITableView usually needs three different pieces...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
size and position
arguments[message]
data source - delegate and view controller