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. Object Oriented based analogue to a function is called a...
arguments[message]
method
super - self
Ready-Made Instance
2. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
receiving and handling events that are associated with it
ready-made instances - instantiation from scratch - and nib based instantiation
C Functionn
3. NSDate - class...
UIViewController
CF - Ref
Is a placeholder object
Used to find the time right now or to store past or future time/dates
4. A view is a subclass of _
selector[message]
pointer - class
UIView
Core Graphics Framework
5. 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...
CGRect bounds - GCPoint center - CGRect frame
receiving and handling events that are associated with it
setPossessionName
receiver - selector - arguments
6. When an object is added to a NSMutableArray - that object is sent the message to retain;...
data source - view controller and delegate
the array becomes an owner of that object and has a pointer to it.
view controller
accessors - individually we call them 'getters' and 'setters'
7. UIView - designated initializer...
message
(id)initWithFrame:(CGRect)aRect;
data source - delegate and view controller
implementation
8. Class methods do not operate on an _ or have any access to _ variables....
message
'getters' and 'setters'
first responder
instance
9. Any other initializer a class has calls the _ designated initializer....
10. A _ handles touch events.
You take ownership for an object you want to keep a pointer to
view
NSCoder
method
11. Classes describe two things...
pointer - class
the message release to all its entries
message
attributes - behavior
12. id is a...
references to objects
designated initializer
CGRect
pointer to an object
13. How do I implement my drawRect?
unordered collection of objects - objects must be unique
setPossessionName
dealloc - is called on the object & the object's memory is returned to the heap
Core Graphics Framework
14. 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 _.
new instances of the class or retrieve some global property of the class.
CGRect bounds
Object wrapper around primitive types like int - float - double - BOOl
nil
15. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
methods
references to objects
self
delegates and dataSources
16. The only reason to temporarily own an object - is...
arguments[message]
to give it someone else - or another object
an object's property
type - name and value
17. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
message
attributes - behavior
the message release to all its entries
Instantiation from scratch
18. Just a floating point number - but we always use it for graphics.
initializer
CGFloat
ready-made instances - instantiation from scratch - and nib based instantiation
its dataSource
19. NSValue - class...
its dataSource
to get and set variables
Generic object wrapper for other non-object data types
super - self
20. A responder is responsible for...
receiving and handling events that are associated with it
viewWillDissapear: and viewWillAppear:
implementation
Instantiation from scratch
21. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
upper
object
class methods - initializers
in the dealloc - or when a Controller's view is 'unloaded'
22. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
retain
superclass's
methods for generating an instance
lowercase - uppercase
23. UIImageView is used to...
storage
Anytime you call a method with new - alloc or copy. You own and must release that object.
draw images
Controller Objects[Managers]
24. Origin of a view's coordinate system is _ left
view controller's initialization method
(id)initWithFrame:(CGRect)aRect;
upper
position
25. A UITableView usually needs three different pieces...
data source - delegate and view controller
the array relinquishes ownership of that object and no longer has a pointer to it
Core Graphics Framework
is called every time the event occurs
26. Three ways instances are created...
reuse your cells
declaration and initialization of a variable
view controller
ready-made instances - instantiation from scratch - and nib based instantiation
27. Ready-made instances...
calling code that does the instantiation for you
has one root view controller
arguments[message]
self
28. Property List...
type - name and value
collection of collections - NSArray of an NSArray
its dataSource
NSCoder
29. In the last line of an init method...
size and position
you always return the newly initialized object(return self)
group of global functions already assigned to this class
Data Encapsulation
30. 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 _.
alloc - singleton - informational utility method?
receiver - selector - arguments
Model Objects[Factory Worker]
subview(s)
31. Instance Variables by default are called @protected meaning...
to get and set variables
only the class and subclasses can access
initializers
Continue
32. Whenever a UINavigationController is about to swap views - it sends out two messages
designated initializer
parentViewController
viewWillDissapear: and viewWillAppear:
Object wrapper around primitive types like int - float - double - BOOl
33. @property - is using methods...
CGRect bounds - GCPoint center - CGRect frame
to get and set variables
view
Instantiation from scratch
34. In general - class methods tend to be factory methods - that is...
methods for generating an instance
nil
alloc - singleton - informational utility method?
Hash table - Look up objects using a key to get a value.
35. In a class method you cannot access...
the instance variables
%d
define it in the implemenation file
Continue
36. NSDictionary...
the array becomes an owner of that object and has a pointer to it.
nil
Hash table - Look up objects using a key to get a value.
data source - view controller and delegate
37. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
storage
You take ownership for an object you want to keep a pointer to
Core Graphics Framework
38. A method in a _ is required unless its preceded by an @optional.
protocol
@synthesize
designated initializer
class's
39. NSString objects are usually sent _ rather than _...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
has one root view controller
lowercase - uppercase
copy - retain
40. A view represents a _ area
accessors - individually we call them 'getters' and 'setters'
for inheritance - adopting the superclasses implementation
rectangular
to get and set variables
41. 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
you must import the header file of that class
Maintenance of state
variable scope - if defined within a block
42. 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 _.
arguments[message]
Ready-Made Instance
its dataSource
pointer - class
43. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
collection of collections - NSArray of an NSArray
size and position
header files declare
44. Never access a view controller's view in that...
45. Any individual object belonging to any class...
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGRect bounds
is an instance of that class
reuse your cells
46. A collection object - an ordered list of objects that can be accesed by an index
receiver - selector - arguments
group of global functions already assigned to this class
array[class - NSMutableArray]
arguments[message]
47. super - is used...
for inheritance - adopting the superclasses implementation
copy - retain
ordered collection of objects - immutable
CGRect bounds
48. class methods...
collection of collections - NSArray of an NSArray
retain
CGRect bounds - GCPoint center - CGRect frame
group of global functions already assigned to this class
49. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
in the dealloc - or when a Controller's view is 'unloaded'
class methods - initializers
CGRect
cannot be added to an array
50. If a break statement is executed from within a set of nested loops...
Object wrapper around primitive types like int - float - double - BOOl
only the innermost loop in which the break is executed is terminated
type - name and value
instance variable of an object is valid