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. UITableViewController is a subclass of...
data
UIViewController
superclass's
position
2. Hold data and know nothing about the user interface
superclass's
accessors - individually we call them 'getters' and 'setters'
Model Objects[Factory Worker]
only the innermost loop in which the break is executed is terminated
3. Ready-made instances...
the message release to all its entries
calling code that does the instantiation for you
Hash table - Look up objects using a key to get a value.
in the dealloc - or when a Controller's view is 'unloaded'
4. super - is used...
cannot be added to an array
for inheritance - adopting the superclasses implementation
instance variables
@interface ClassName:SuperClassName
5. 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.
protocol
creating an initializer
is called every time the event occurs
attributes - behavior
6. Designated initializer makes sure that every...
instance variable of an object is valid
header files declare
ready-made instances - instantiation from scratch - and nib based instantiation
retain
7. 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
Maintenance of state
viewWillDissapear: and viewWillAppear:
for inheritance - adopting the superclasses implementation
superclass's
8. NSNumber - class...
message
Object wrapper around primitive types like int - float - double - BOOl
the message release to all its entries
%d
9. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
initializer
C Functionn
Object wrapper around primitive types like int - float - double - BOOl
self
10. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
calling code that does the instantiation for you
initializers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
values
11. When do you take ownership?...
define it in the implemenation file
@synthesize
Ready-Made Instance
Anytime you call a method with new - alloc or copy. You own and must release that object.
12. If the view has no subviews - create it programmatically; if it has subviews
safety - subclassability and makes code look more consistent with C structs
ordered collection of objects - immutable
create a XIB file
first responder
13. Any individual object belonging to any class...
is an instance of that class
(id)initWithFrame:(CGRect)aRect;
nil
protocol
14. A view is an...
instance of UIView or one of its subclasses
pointers
super - self
is called every time the event occurs
15. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
Controller Objects[Managers]
instance variable of an object is valid
Encapsulation of functionality
Data Encapsulation
16. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
designated initializer
class methods - initializers
collection of collections - NSArray of an NSArray
size and position
17. UIView - designated initializer...
in the dealloc - or when a Controller's view is 'unloaded'
protocol
storage
(id)initWithFrame:(CGRect)aRect;
18. In Cocoa Touch - the table view asks another object _ what it should display...
superclass's
its dataSource
draw images
instance variable of an object is valid
19. Also - because arrays only hold a pointer to an object...
Generic object wrapper for other non-object data types
a single-array can contain objects of different types
viewWillDissapear: and viewWillAppear:
unordered collection of objects - objects must be unique
20. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
pointers
Maintenance of state
selector[message]
21. To load a Xib file manually - you use _
NSBundle
(id)initWithFrame:(CGRect)aRect;
setPossessionName
cannot be added to an array
22. In any application with UINavigationController - the navigation controller...
you must import the header file of that class
a single-array can contain objects of different types
has one root view controller
CGRect
23. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. In Objective C arrays can hold only...
references to objects
superclass's
delegates and dataSources
selector[message]
25. 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
26. A view is a subclass of _
new instances of the class or retrieve some global property of the class.
UIView
arguments[message]
viewWillDissapear: and viewWillAppear:
27. In a class method you cannot access...
the instance variables
subview(s)
to give it someone else - or another object
@interface ClassName:SuperClassName
28. Center and frame are used to _ your view
position
data source - delegate and view controller
data source - view controller and delegate
Is a placeholder object
29. When an NSMutableArray is deallocated - it sends...
implementation
the message release to all its entries
'getters' and 'setters'
Functions
30. Classes describe two things...
Is a placeholder object
attributes - behavior
reuse your cells
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
31. Property List...
collection of collections - NSArray of an NSArray
Anytime you call a method with new - alloc or copy. You own and must release that object.
do so in viewDidLoad
class
32. NSSet...
group of global functions already assigned to this class
type - name and value
Generic object wrapper for other non-object data types
unordered collection of objects - objects must be unique
33. NSValue - class...
viewWillDissapear: and viewWillAppear:
Generic object wrapper for other non-object data types
pointer to an object
@synthesize
34. A command directed to an object is called an...
view
message
the array becomes an owner of that object and has a pointer to it.
UIView
35. Three ways instances are created...
wait until the loop finishes processing the event - at the end release it
ready-made instances - instantiation from scratch - and nib based instantiation
Controller Objects[Managers]
Object wrapper around primitive types like int - float - double - BOOl
36. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
callbacks
receiver
Maintenance of state
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
37. Number one use of protocols in iOS...
Maintenance of state
delegates and dataSources
Ready-Made Instance
Core Graphics Framework
38. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
calling code that does the instantiation for you
Instantiation from scratch
C Functionn
Anytime you call a method with new - alloc or copy. You own and must release that object.
39. 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
UIView
Used to find the time right now or to store past or future time/dates
parentViewController
method
40. A collection object - an ordered list of objects that can be accesed by an index
will be ignored
selector[message]
declaration and initialization of a variable
array[class - NSMutableArray]
41. The root view controller typically creates the next view controller - and the next _ creates the one after that
declaration and initialization of a variable
callbacks
dealloc - is called on the object & the object's memory is returned to the heap
view controller
42. When making a tableView always...
view controller's initialization method
reuse your cells
calling code that does the instantiation for you
you always return the newly initialized object(return self)
43. The only reason to temporarily own an object - is...
the array relinquishes ownership of that object and no longer has a pointer to it
they need to be defined in the implementation file
to give it someone else - or another object
the message release to all its entries
44. How do I implement my drawRect?
initializers
receiver - selector - arguments
CGRect bounds - GCPoint center - CGRect frame
Core Graphics Framework
45. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
viewWillDissapear: and viewWillAppear:
method
do so in viewDidLoad
46. A pointer to the object being asked to execute a method
pointer - class
receiver[message]
position
data
47. Object Oriented based analogue to a function is called a...
cannot be added to an array
'getters' and 'setters'
method
instance variables
48. When an object is removed from an NSMutableArray - that object is sent the message release;...
unordered collection of objects - objects must be unique
Functions
the array relinquishes ownership of that object and no longer has a pointer to it
object
49. [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.
you always return the newly initialized object(return self)
storage
methods
data
50. A responder is responsible for...
Abstraction
class methods - initializers
receiving and handling events that are associated with it
object