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. Also - because arrays only hold a pointer to an object...
storage
a single-array can contain objects of different types
an object's property
view controller's initialization method
2. A callback is a function that is supplied in advance of an event - and...
CF - Ref
view
%d
is called every time the event occurs
3. At the top of any implementation file...
declaration and initialization of a variable
receiver - selector - arguments
you always return the newly initialized object(return self)
you must import the header file of that class
4. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
retain
NSLog routine
'getters' and 'setters'
@interface ClassName:SuperClassName
5. 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
parentViewController
super - self
Ready-Made Instance
6. 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
instance variable of an object is valid
calling code that does the instantiation for you
Encapsulation of functionality
data source - view controller and delegate
7. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. Reference Counting...
You take ownership for an object you want to keep a pointer to
creates an instance of NSString that holds the character string
reuse your cells
'getters' and 'setters'
9. NSString objects are usually sent _ rather than _...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
for inheritance - adopting the superclasses implementation
copy - retain
collection of collections - NSArray of an NSArray
10. Object Oriented based analogue to a function is called a...
cannot be added to an array
method
has one root view controller
creates an instance of NSString that holds the character string
11. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
methods
NSCoder
data
12. 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.
storage
creating an initializer
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
to get and set variables
13. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
view controller
position
unordered collection of objects - objects must be unique
14. Origin of a view's coordinate system is _ left
create a XIB file
upper
only the innermost loop in which the break is executed is terminated
new instances of the class or retrieve some global property of the class.
15. Whenever a UINavigationController is about to swap views - it sends out two messages
receiver - selector - arguments
viewWillDissapear: and viewWillAppear:
initializers
references to objects
16. 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
is an instance of that class
Generic object wrapper for other non-object data types
upper
a mechanism to enable specific callbacks
17. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
view controller's initialization method
initializers
pointers
18. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
Ready-Made Instance
You take ownership for an object you want to keep a pointer to
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
19. After accessors have been defined in the header file...
they need to be defined in the implementation file
UIView
you always return the newly initialized object(return self)
ready-made instances - instantiation from scratch - and nib based instantiation
20. What does autorelease mean?
in the dealloc - or when a Controller's view is 'unloaded'
implementation
methods for generating an instance
wait until the loop finishes processing the event - at the end release it
21. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
C Functionn
NSBundle
subview(s)
22. Primitives and C Structures...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
wait until the loop finishes processing the event - at the end release it
cannot be added to an array
protocol
23. Asking a class or object to execute a method
define it in the implemenation file
CGRect
copy - retain
message
24. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
parentViewController
class's
selector[message]
25. The integer prefix is...
the instance variables
%d
NSBundle
attributes - behavior
26. When an object is added to a NSMutableArray - that object is sent the message to retain;...
is called every time the event occurs
the array becomes an owner of that object and has a pointer to it.
rectangular
CGRect bounds - GCPoint center - CGRect frame
27. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
pointers
alloc - singleton - informational utility method?
retain
28. You use _ to implement the view
alloc - singleton - informational utility method?
CGRect bounds
group of global functions already assigned to this class
UIView
29. @property declares - and _ implements the setter and getter...
CGRect bounds
@synthesize
initializer
declaration and initialization of a variable
30. [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.
new instances of the class or retrieve some global property of the class.
data
super - self
callbacks
31. Just a floating point number - but we always use it for graphics.
CGFloat
accessors - individually we call them 'getters' and 'setters'
copy - retain
self
32. Each class picks one _ as it's designated initializer....
initializer
reuse your cells
they need to be defined in the implementation file
NSCoder
33. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
UIView
instance variables
instance
34. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
35. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
pointer to an object
the array relinquishes ownership of that object and no longer has a pointer to it
NSLog routine
36. A command directed to an object is called an...
message
NSLog routine
retain
variable scope - if defined within a block
37. A responder is responsible for...
receiving and handling events that are associated with it
delegates and dataSources
message
data source - delegate and view controller
38. Reducing details to focus on the core concepts
Abstraction
a mechanism to enable specific callbacks
the array becomes an owner of that object and has a pointer to it.
upper
39. NSDictionary...
will be ignored
ready-made instances - instantiation from scratch - and nib based instantiation
view
Hash table - Look up objects using a key to get a value.
40. 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
type - name and value
CGFloat
cannot be added to an array
Maintenance of state
41. Class methods typically either create
references to objects
an object's property
new instances of the class or retrieve some global property of the class.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
42. A pointer to the object being asked to execute a method
only the innermost loop in which the break is executed is terminated
Object wrapper around primitive types like int - float - double - BOOl
receiver[message]
view controller's initialization method
43. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
selector[message]
receiving and handling events that are associated with it
callbacks
lowercase - uppercase
44. Class methods do not operate on an _ or have any access to _ variables....
variable scope - if defined within a block
view controller
instance
Is a placeholder object
45. When an object is removed from an NSMutableArray - that object is sent the message release;...
position
a single-array can contain objects of different types
the array relinquishes ownership of that object and no longer has a pointer to it
selector[message]
46. An instance is a device for maintaining state. It's a box for _ of data.
Used to find the time right now or to store past or future time/dates
CF - Ref
they need to be defined in the implementation file
storage
47. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
will be ignored
Abstraction
class methods - initializers
48. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. 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
%d
its dataSource
message
parentViewController
50. A view is a subclass of _
UIView
declaration and initialization of a variable
parentViewController
only the class and subclasses can access