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. In the last line of an init method...
you always return the newly initialized object(return self)
designated initializer
viewWillDissapear: and viewWillAppear:
you must import the header file of that class
2. id is a...
pointers
super - self
its dataSource
pointer to an object
3. 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 _.
has one root view controller
pointer - class
size and position
class's
4. The root view controller typically creates the next view controller - and the next _ creates the one after that
type - name and value
Controller Objects[Managers]
view controller
copy - retain
5. A UITableView usually needs three different pieces...
(id)initWithFrame:(CGRect)aRect;
only the class and subclasses can access
the array relinquishes ownership of that object and no longer has a pointer to it
data source - delegate and view controller
6. 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
7. 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
8. A function in the objective c library that simply displays or logs it's argument
instance variable of an object is valid
NSLog routine
is an instance of that class
ordered collection of objects - immutable
9. A view is a subclass of _
protocol
a mechanism to enable specific callbacks
UIView
view controller's initialization method
10. A responder is responsible for...
receiver[message]
ready-made instances - instantiation from scratch - and nib based instantiation
data source - view controller and delegate
receiving and handling events that are associated with it
11. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
define it in the implemenation file
alloc - singleton - informational utility method?
'getters' and 'setters'
12. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
pointer - class
you always return the newly initialized object(return self)
first responder
is called every time the event occurs
13. 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
You take ownership for an object you want to keep a pointer to
a mechanism to enable specific callbacks
type - name and value
reuse your cells
14. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
type - name and value
@interface ClassName:SuperClassName
will be ignored
Anytime you call a method with new - alloc or copy. You own and must release that object.
15. 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
16. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
safety - subclassability and makes code look more consistent with C structs
header files declare
ordered collection of objects - immutable
receiver
17. if you implemented both the setter and getter - the @synthesize method...
receiver
delegates and dataSources
its dataSource
will be ignored
18. 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.
its dataSource
receiving and handling events that are associated with it
attributes - behavior
creating an initializer
19. 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
20. When do you take ownership?...
viewWillDissapear: and viewWillAppear:
Anytime you call a method with new - alloc or copy. You own and must release that object.
you always return the newly initialized object(return self)
attributes - behavior
21. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
'getters' and 'setters'
to get and set variables
pointer - class
Controller Objects[Managers]
22. The integer prefix is...
%d
pointers
create a XIB file
Anytime you call a method with new - alloc or copy. You own and must release that object.
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. When an object is removed from an NSMutableArray - that object is sent the message release;...
position
to give it someone else - or another object
the array relinquishes ownership of that object and no longer has a pointer to it
group of global functions already assigned to this class
25. 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.
pointer to an object
methods for generating an instance
Ready-Made Instance
implementation
26. Each class picks one _ as it's designated initializer....
designated initializer
cannot be added to an array
type - name and value
initializer
27. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
28. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
NSCoder
alloc - singleton - informational utility method?
define it in the implemenation file
29. Ready-made instances...
references to objects
new instances of the class or retrieve some global property of the class.
message
calling code that does the instantiation for you
30. Only exists within the statement block there defined - outside of the block is fine
methods
instance
variable scope - if defined within a block
receiver[message]
31. 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 _.
callbacks
new instances of the class or retrieve some global property of the class.
pointer - class
subview(s)
32. UIViewController has several methods that get called at certain times...
@interface ClassName:SuperClassName
attributes - behavior
creates an instance of NSString that holds the character string
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
33. In any application with UINavigationController - the navigation controller...
has one root view controller
Generic object wrapper for other non-object data types
alloc - singleton - informational utility method?
Instantiation from scratch
34. UITableViewController is a subclass of...
receiver - selector - arguments
UIViewController
cannot be added to an array
class
35. Just a floating point number - but we always use it for graphics.
viewWillDissapear: and viewWillAppear:
CGFloat
parentViewController
accessors - individually we call them 'getters' and 'setters'
36. A pointer to the object being asked to execute a method
ordered collection of objects - immutable
variable scope - if defined within a block
receiver[message]
instance variable of an object is valid
37. If a break statement is executed from within a set of nested loops...
only the class and subclasses can access
protocol
only the innermost loop in which the break is executed is terminated
pointer to an object
38. NSDate - class...
creates an instance of NSString that holds the character string
size and position
Used to find the time right now or to store past or future time/dates
an object's property
39. NSDictionary...
the instance variables
class
Continue
Hash table - Look up objects using a key to get a value.
40. @property declares - and _ implements the setter and getter...
object
upper
@synthesize
pointer to an object
41. A UITableViewController can fill all three roles of...
method
UIView
wait until the loop finishes processing the event - at the end release it
data source - view controller and delegate
42. A callback is a function that is supplied in advance of an event - and...
CGFloat
attributes - behavior
is called every time the event occurs
Model Objects[Factory Worker]
43. 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
44. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CF - Ref
CGRect
draw images
pointer to an object
45. 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
a mechanism to enable specific callbacks
instance variables
superclass's
46. In general - class methods tend to be factory methods - that is...
NSBundle
methods for generating an instance
Is a placeholder object
Model Objects[Factory Worker]
47. Proceed through the loop - jump back to the top and check again
instance variables
reuse your cells
Continue
'getters' and 'setters'
48. How do I implement my drawRect?
collection of collections - NSArray of an NSArray
view
Core Graphics Framework
super - self
49. Defining variables - three parts...
You take ownership for an object you want to keep a pointer to
references to objects
to give it someone else - or another object
type - name and value
50. Categories are an Objective C way to add _ to an existing class without subclassing
array[class - NSMutableArray]
methods
header files declare
is an instance of that class