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...
data source - delegate and view controller
(id)initWithFrame:(CGRect)aRect;
calling code that does the instantiation for you
you must import the header file of that class
2. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
cannot be added to an array
Controller Objects[Managers]
the array relinquishes ownership of that object and no longer has a pointer to it
wait until the loop finishes processing the event - at the end release it
3. Origin of a view's coordinate system is _ left
Data Encapsulation
%d
in the dealloc - or when a Controller's view is 'unloaded'
upper
4. When an object is added to a NSMutableArray - that object is sent the message to retain;...
viewWillDissapear: and viewWillAppear:
class methods - initializers
the array becomes an owner of that object and has a pointer to it.
Anytime you call a method with new - alloc or copy. You own and must release that object.
5. 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 _.
nil
for inheritance - adopting the superclasses implementation
view controller
pointer - class
6. A UITableView usually needs three different pieces...
will be ignored
message
header files declare
data source - delegate and view controller
7. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Is a placeholder object
self
@interface ClassName:SuperClassName
methods for generating an instance
8. 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 _.
receiver[message]
calling code that does the instantiation for you
subview(s)
Anytime you call a method with new - alloc or copy. You own and must release that object.
9. In Objective C arrays can hold only...
CGRect bounds - GCPoint center - CGRect frame
do so in viewDidLoad
its dataSource
references to objects
10. The class is responsible for what instance variables the instance has - but not the _ of those variables.
its dataSource
values
accessors - individually we call them 'getters' and 'setters'
you always return the newly initialized object(return self)
11. A method in a _ is required unless its preceded by an @optional.
Instantiation from scratch
CGRect
Is a placeholder object
protocol
12. A view is a subclass of _
object
UIView
creating an initializer
an object's property
13. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
define it in the implemenation file
instance variable of an object is valid
receiver - selector - arguments
14. id is a...
pointer to an object
NSBundle
collection of collections - NSArray of an NSArray
Used to find the time right now or to store past or future time/dates
15. UITableViewController is a subclass of...
the instance variables
UIViewController
is called every time the event occurs
receiver[message]
16. Center and frame are used to _ your view
CGRect
position
unordered collection of objects - objects must be unique
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
17. Primitives and C Structures...
will be ignored
cannot be added to an array
is an instance of that class
define it in the implemenation file
18. 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 _.
Ready-Made Instance
nil
instance variable of an object is valid
size and position
19. 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
create a XIB file
attributes - behavior
upper
20. NSDate - class...
Data Encapsulation
calling code that does the instantiation for you
class's
Used to find the time right now or to store past or future time/dates
21. NSDictionary...
self
alloc - singleton - informational utility method?
Hash table - Look up objects using a key to get a value.
to give it someone else - or another object
22. A callback is a function that is supplied in advance of an event - and...
alloc - singleton - informational utility method?
is called every time the event occurs
pointer - class
rectangular
23. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. Object Oriented based analogue to a function is called a...
method
view controller
UIView
Is a placeholder object
25. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
only the class and subclasses can access
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a single-array can contain objects of different types
NSCoder
26. The only reason to temporarily own an object - is...
a single-array can contain objects of different types
to give it someone else - or another object
Instantiation from scratch
pointer to an object
27. A view is an...
receiving and handling events that are associated with it
instance variables
instance of UIView or one of its subclasses
%d
28. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Core Graphics Framework
Instantiation from scratch
will be ignored
29. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
they need to be defined in the implementation file
dealloc - is called on the object & the object's memory is returned to the heap
C Functionn
'getters' and 'setters'
30. 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
31. Reducing details to focus on the core concepts
designated initializer
view controller
Abstraction
cannot be added to an array
32. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. Instance Variables by default are called @protected meaning...
subview(s)
parentViewController
only the class and subclasses can access
implementation
34. Asking a class or object to execute a method
message
alloc - singleton - informational utility method?
NSBundle
pointer - class
35. UIViewController has several methods that get called at certain times...
pointers
for inheritance - adopting the superclasses implementation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
'getters' and 'setters'
36. A responder is responsible for...
receiving and handling events that are associated with it
array[class - NSMutableArray]
references to objects
implementation
37. class methods...
declaration and initialization of a variable
first responder
group of global functions already assigned to this class
view controller's initialization method
38. Also - because arrays only hold a pointer to an object...
arguments[message]
a single-array can contain objects of different types
pointer - class
type - name and value
39. Why properties?
values
in the dealloc - or when a Controller's view is 'unloaded'
object
safety - subclassability and makes code look more consistent with C structs
40. 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.
alloc - singleton - informational utility method?
Core Graphics Framework
receiver
instance variables
41. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
42. Values to be supplied as the parameters to the method
values
arguments[message]
attributes - behavior
instance
43. Proceed through the loop - jump back to the top and check again
'getters' and 'setters'
accessors - individually we call them 'getters' and 'setters'
to give it someone else - or another object
Continue
44. NSSet...
view
ready-made instances - instantiation from scratch - and nib based instantiation
unordered collection of objects - objects must be unique
size and position
45. A collection object - an ordered list of objects that can be accesed by an index
safety - subclassability and makes code look more consistent with C structs
receiver - selector - arguments
implementation
array[class - NSMutableArray]
46. Property List...
Instantiation from scratch
collection of collections - NSArray of an NSArray
to get and set variables
the array becomes an owner of that object and has a pointer to it.
47. initWithFrame: the designated initializer for UIView gives the view
only the class and subclasses can access
size and position
instance variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
48. Just a floating point number - but we always use it for graphics.
CGRect bounds - GCPoint center - CGRect frame
view
@interface ClassName:SuperClassName
CGFloat
49. Designated initializer makes sure that every...
Is a placeholder object
reuse your cells
instance variable of an object is valid
cannot be added to an array
50. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
will be ignored
receiver
Controller Objects[Managers]
cannot be added to an array