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. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
creating an initializer
data source - delegate and view controller
a single-array can contain objects of different types
Controller Objects[Managers]
2. 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 _.
self
nil
pointer to an object
pointers
3. A _ handles touch events.
method
only the class and subclasses can access
alloc - singleton - informational utility method?
view
4. Views have three properties related to their location and size: @property _ _;
selector[message]
protocol
arguments[message]
CGRect bounds - GCPoint center - CGRect frame
5. When making a tableView always...
create a XIB file
reuse your cells
arguments[message]
values
6. After accessors have been defined in the header file...
pointer - class
they need to be defined in the implementation file
a single-array can contain objects of different types
You take ownership for an object you want to keep a pointer to
7. Classes describe two things...
attributes - behavior
You take ownership for an object you want to keep a pointer to
values
the message release to all its entries
8. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
data source - delegate and view controller
Instantiation from scratch
CGRect bounds - GCPoint center - CGRect frame
pointer - class
9. UIViewController has several methods that get called at certain times...
class's
only the innermost loop in which the break is executed is terminated
methods
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
10. 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.
creating an initializer
class's
the instance variables
NSBundle
11. When an NSMutableArray is deallocated - it sends...
arguments[message]
the message release to all its entries
declaration and initialization of a variable
instance
12. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
pointer - class
CF - Ref
lowercase - uppercase
Is a placeholder object
13. Number one use of protocols in iOS...
delegates and dataSources
ordered collection of objects - immutable
is an instance of that class
method
14. A UITableViewController can fill all three roles of...
its dataSource
data source - view controller and delegate
instance of UIView or one of its subclasses
pointer - class
15. Just a floating point number - but we always use it for graphics.
to get and set variables
group of global functions already assigned to this class
array[class - NSMutableArray]
CGFloat
16. A view is an...
is an instance of that class
alloc - singleton - informational utility method?
view controller
instance of UIView or one of its subclasses
17. 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....
define it in the implemenation file
initializers
method
Ready-Made Instance
18. Designated initializer makes sure that every...
instance variable of an object is valid
C Functionn
lowercase - uppercase
arguments[message]
19. How do I implement my drawRect?
wait until the loop finishes processing the event - at the end release it
copy - retain
Core Graphics Framework
new instances of the class or retrieve some global property of the class.
20. NSDate - class...
define it in the implemenation file
methods
Used to find the time right now or to store past or future time/dates
variable scope - if defined within a block
21. When do you take ownership?...
group of global functions already assigned to this class
array[class - NSMutableArray]
Anytime you call a method with new - alloc or copy. You own and must release that object.
object
22. Primitives and C Structures...
unordered collection of objects - objects must be unique
cannot be added to an array
creates an instance of NSString that holds the character string
for inheritance - adopting the superclasses implementation
23. Files Owner...
you must import the header file of that class
Abstraction
ready-made instances - instantiation from scratch - and nib based instantiation
Is a placeholder object
24. A view represents a _ area
instance of UIView or one of its subclasses
Generic object wrapper for other non-object data types
rectangular
@interface ClassName:SuperClassName
25. In a class method you cannot access...
you always return the newly initialized object(return self)
is called every time the event occurs
the instance variables
dealloc - is called on the object & the object's memory is returned to the heap
26. If you have extra work you want to do on the view...
do so in viewDidLoad
subview(s)
class
new instances of the class or retrieve some global property of the class.
27. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
NSLog routine
calling code that does the instantiation for you
class's
28. if you implemented both the setter and getter - the @synthesize method...
pointer to an object
NSLog routine
will be ignored
a single-array can contain objects of different types
29. Hold data and know nothing about the user interface
view controller's initialization method
Model Objects[Factory Worker]
dealloc - is called on the object & the object's memory is returned to the heap
retain
30. A callback is a function that is supplied in advance of an event - and...
setPossessionName
is called every time the event occurs
to get and set variables
they need to be defined in the implementation file
31. A message is always contained in square brackets - and has three parts
header files declare
ordered collection of objects - immutable
receiver - selector - arguments
first responder
32. 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
methods for generating an instance
parentViewController
size and position
instance
33. @property declares - and _ implements the setter and getter...
values
method
arguments[message]
@synthesize
34. A command directed to an object is called an...
message
callbacks
initializer
Encapsulation of functionality
35. The only reason to temporarily own an object - is...
to give it someone else - or another object
Used to find the time right now or to store past or future time/dates
Controller Objects[Managers]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
36. NSArray - class...
parentViewController
references to objects
ordered collection of objects - immutable
self
37. In any application with UINavigationController - the navigation controller...
Abstraction
has one root view controller
retain
self
38. What does autorelease mean?
position
wait until the loop finishes processing the event - at the end release it
'getters' and 'setters'
Object wrapper around primitive types like int - float - double - BOOl
39. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
values
implementation
CF - Ref
self
40. An instance is a device for maintaining state. It's a box for _ of data.
storage
message
copy - retain
data source - view controller and delegate
41. Each _ has a 'designated' initializer method....
instance
class
dealloc - is called on the object & the object's memory is returned to the heap
selector[message]
42. Any individual object belonging to any class...
you must import the header file of that class
an object's property
is an instance of that class
callbacks
43. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
receiver - selector - arguments
is an instance of that class
CGRect bounds - GCPoint center - CGRect frame
instance variables
44. initWithFrame: the designated initializer for UIView gives the view
copy - retain
designated initializer
implementation
size and position
45. NSString *s = @'Hello - World'; is an example of...
ready-made instances - instantiation from scratch - and nib based instantiation
declaration and initialization of a variable
creating an initializer
has one root view controller
46. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
only the innermost loop in which the break is executed is terminated
callbacks
Anytime you call a method with new - alloc or copy. You own and must release that object.
47. 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
receiver
the array becomes an owner of that object and has a pointer to it.
the instance variables
a mechanism to enable specific callbacks
48. All objects are accessed using...
the instance variables
rectangular
Continue
pointers
49. Three ways instances are created...
the message release to all its entries
designated initializer
ready-made instances - instantiation from scratch - and nib based instantiation
pointer - class
50. The root view controller typically creates the next view controller - and the next _ creates the one after that
Encapsulation of functionality
view controller
an object's property
only the innermost loop in which the break is executed is terminated