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. Ready-made instances...
calling code that does the instantiation for you
viewWillDissapear: and viewWillAppear:
callbacks
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
2. 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
values
Maintenance of state
do so in viewDidLoad
C Functionn
3. 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
(id)initWithFrame:(CGRect)aRect;
is an instance of that class
super - self
Functions
4. Reducing details to focus on the core concepts
selector[message]
Abstraction
wait until the loop finishes processing the event - at the end release it
retain
5. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
pointers
is called every time the event occurs
receiver
6. NSString objects are usually sent _ rather than _...
instance variable of an object is valid
copy - retain
receiver[message]
Model Objects[Factory Worker]
7. Why properties?
safety - subclassability and makes code look more consistent with C structs
ordered collection of objects - immutable
You take ownership for an object you want to keep a pointer to
receiving and handling events that are associated with it
8. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
references to objects
Core Graphics Framework
@interface ClassName:SuperClassName
only the innermost loop in which the break is executed is terminated
9. UIView - designated initializer...
alloc - singleton - informational utility method?
wait until the loop finishes processing the event - at the end release it
the instance variables
(id)initWithFrame:(CGRect)aRect;
10. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
delegates and dataSources
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
nil
11. NSDate - class...
Used to find the time right now or to store past or future time/dates
type - name and value
instance of UIView or one of its subclasses
Ready-Made Instance
12. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
super - self
Controller Objects[Managers]
NSCoder
Core Graphics Framework
13. Each class picks one _ as it's designated initializer....
initializer
Object wrapper around primitive types like int - float - double - BOOl
a single-array can contain objects of different types
a mechanism to enable specific callbacks
14. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Encapsulation of functionality
message
UIView
CGRect
15. A view represents a _ area
superclass's
rectangular
UIView
first responder
16. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
safety - subclassability and makes code look more consistent with C structs
instance variables
retain
self
17. Also if you send the NSObject the _ message - you own that object.
designated initializer
instance
retain
Abstraction
18. The integer prefix is...
references to objects
retain
NSLog routine
%d
19. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
arguments[message]
Is a placeholder object
receiving and handling events that are associated with it
object
20. UIViewController has several methods that get called at certain times...
ready-made instances - instantiation from scratch - and nib based instantiation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
calling code that does the instantiation for you
21. A function in the objective c library that simply displays or logs it's argument
NSLog routine
receiver - selector - arguments
nil
Core Graphics Framework
22. Instance Variables by default are called @protected meaning...
Maintenance of state
CF - Ref
only the class and subclasses can access
NSLog routine
23. 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
creating an initializer
setPossessionName
Encapsulation of functionality
creates an instance of NSString that holds the character string
24. Name of the method to be executed
the instance variables
selector[message]
wait until the loop finishes processing the event - at the end release it
Hash table - Look up objects using a key to get a value.
25. A command directed to an object is called an...
receiver
message
arguments[message]
Abstraction
26. A callback is a function that is supplied in advance of an event - and...
CGRect bounds - GCPoint center - CGRect frame
is called every time the event occurs
ready-made instances - instantiation from scratch - and nib based instantiation
group of global functions already assigned to this class
27. Any individual object belonging to any class...
Is a placeholder object
Hash table - Look up objects using a key to get a value.
receiving and handling events that are associated with it
is an instance of that class
28. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
receiver
rectangular
C Functionn
header files declare
29. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
creates an instance of NSString that holds the character string
alloc - singleton - informational utility method?
message
30. Each _ has a 'designated' initializer method....
rectangular
class
class methods - initializers
superclass's
31. A view is a subclass of _
unordered collection of objects - objects must be unique
pointers
retain
UIView
32. When making a tableView always...
Maintenance of state
reuse your cells
the array relinquishes ownership of that object and no longer has a pointer to it
the instance variables
33. A UITableViewController can fill all three roles of...
draw images
data source - view controller and delegate
array[class - NSMutableArray]
instance variables
34. In Cocoa Touch - the table view asks another object _ what it should display...
a mechanism to enable specific callbacks
its dataSource
Used to find the time right now or to store past or future time/dates
instance variables
35. When do you take ownership?...
instance of UIView or one of its subclasses
Anytime you call a method with new - alloc or copy. You own and must release that object.
has one root view controller
superclass's
36. A method in a _ is required unless its preceded by an @optional.
protocol
message
rectangular
Hash table - Look up objects using a key to get a value.
37. 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
viewWillDissapear: and viewWillAppear:
lowercase - uppercase
parentViewController
in the dealloc - or when a Controller's view is 'unloaded'
38. You use _ to implement the view
Abstraction
callbacks
retain
CGRect bounds
39. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
receiver
subview(s)
Hash table - Look up objects using a key to get a value.
40. In any application with UINavigationController - the navigation controller...
new instances of the class or retrieve some global property of the class.
initializer
has one root view controller
Data Encapsulation
41. Object Oriented based analogue to a function is called a...
data
attributes - behavior
they need to be defined in the implementation file
method
42. Proceed through the loop - jump back to the top and check again
only the innermost loop in which the break is executed is terminated
Continue
pointer to an object
instance variables
43. @property - is using methods...
to get and set variables
Object wrapper around primitive types like int - float - double - BOOl
class's
will be ignored
44. If you have extra work you want to do on the view...
the array becomes an owner of that object and has a pointer to it.
position
do so in viewDidLoad
upper
45. UITableViewController is a subclass of...
group of global functions already assigned to this class
protocol
class
UIViewController
46. A view is an...
UIViewController
methods
data source - delegate and view controller
instance of UIView or one of its subclasses
47. Just a floating point number - but we always use it for graphics.
alloc - singleton - informational utility method?
CGFloat
Encapsulation of functionality
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
48. How do I implement my drawRect?
@interface ClassName:SuperClassName
instance variables
Core Graphics Framework
Data Encapsulation
49. After accessors have been defined in the header file...
super - self
they need to be defined in the implementation file
callbacks
Ready-Made Instance
50. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
NSLog routine
class
Hash table - Look up objects using a key to get a value.
Ready-Made Instance