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. What does autorelease mean?
%d
define it in the implemenation file
wait until the loop finishes processing the event - at the end release it
Is a placeholder object
2. Reducing details to focus on the core concepts
method
superclass's
callbacks
Abstraction
3. NSString *s = @'Hello - World'; is an example of...
for inheritance - adopting the superclasses implementation
view
declaration and initialization of a variable
Encapsulation of functionality
4. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
array[class - NSMutableArray]
copy - retain
receiver
draw images
5. When an NSMutableArray is deallocated - it sends...
the array relinquishes ownership of that object and no longer has a pointer to it
the message release to all its entries
you must import the header file of that class
a single-array can contain objects of different types
6. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
type - name and value
@interface ClassName:SuperClassName
its dataSource
7. super - is used...
self
is an instance of that class
for inheritance - adopting the superclasses implementation
Core Graphics Framework
8. Instance Variables by default are called @protected meaning...
delegates and dataSources
only the class and subclasses can access
receiver
selector[message]
9. id is a...
a mechanism to enable specific callbacks
pointer to an object
for inheritance - adopting the superclasses implementation
lowercase - uppercase
10. 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
11. Primitives and C Structures...
reuse your cells
cannot be added to an array
values
for inheritance - adopting the superclasses implementation
12. Classes describe two things...
attributes - behavior
instance
super - self
only the class and subclasses can access
13. Designated initializer makes sure that every...
%d
instance variable of an object is valid
selector[message]
Model Objects[Factory Worker]
14. 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
15. @property - is using methods...
C Functionn
data source - delegate and view controller
to get and set variables
Generic object wrapper for other non-object data types
16. A view is an...
Abstraction
the array relinquishes ownership of that object and no longer has a pointer to it
unordered collection of objects - objects must be unique
instance of UIView or one of its subclasses
17. 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
rectangular
only the class and subclasses can access
instance
Encapsulation of functionality
18. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
you must import the header file of that class
position
class methods - initializers
19. 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.
its dataSource
implementation
unordered collection of objects - objects must be unique
Instantiation from scratch
20. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Functions
wait until the loop finishes processing the event - at the end release it
Hash table - Look up objects using a key to get a value.
values
21. 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
22. A view represents a _ area
UIView
rectangular
will be ignored
CGFloat
23. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
an object's property
methods for generating an instance
receiver[message]
24. When making a tableView always...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
pointers
reuse your cells
you always return the newly initialized object(return self)
25. Files Owner...
Is a placeholder object
has one root view controller
the array relinquishes ownership of that object and no longer has a pointer to it
%d
26. 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...
class's
setPossessionName
parentViewController
Data Encapsulation
27. initWithFrame: the designated initializer for UIView gives the view
CGFloat
size and position
instance variables
callbacks
28. You use _ to implement the view
Generic object wrapper for other non-object data types
CGRect bounds
the array becomes an owner of that object and has a pointer to it.
initializer
29. 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.
creating an initializer
@interface ClassName:SuperClassName
viewWillDissapear: and viewWillAppear:
is an instance of that class
30. Name of the method to be executed
create a XIB file
collection of collections - NSArray of an NSArray
selector[message]
safety - subclassability and makes code look more consistent with C structs
31. The only reason to temporarily own an object - is...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
to give it someone else - or another object
Hash table - Look up objects using a key to get a value.
C Functionn
32. 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.
Data Encapsulation
Abstraction
is called every time the event occurs
new instances of the class or retrieve some global property of the class.
33. @property declares - and _ implements the setter and getter...
instance variables
Encapsulation of functionality
@synthesize
type - name and value
34. Property List...
Abstraction
Used to find the time right now or to store past or future time/dates
parentViewController
collection of collections - NSArray of an NSArray
35. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
CF - Ref
class's
delegates and dataSources
36. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
instance variables
new instances of the class or retrieve some global property of the class.
draw images
Ready-Made Instance
37. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
data source - delegate and view controller
Controller Objects[Managers]
initializer
object
38. NSDictionary...
new instances of the class or retrieve some global property of the class.
accessors - individually we call them 'getters' and 'setters'
data
Hash table - Look up objects using a key to get a value.
39. Use of class methods - there are three...
receiving and handling events that are associated with it
view
CF - Ref
alloc - singleton - informational utility method?
40. NSString objects are usually sent _ rather than _...
to get and set variables
super - self
copy - retain
do so in viewDidLoad
41. 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
42. 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
in the dealloc - or when a Controller's view is 'unloaded'
a mechanism to enable specific callbacks
Functions
the message release to all its entries
43. 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
only the innermost loop in which the break is executed is terminated
is an instance of that class
CF - Ref
parentViewController
44. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
initializer
instance variables
NSCoder
designated initializer
45. A view is a subclass of _
implementation
instance variables
to get and set variables
UIView
46. A UITableView usually needs three different pieces...
header files declare
in the dealloc - or when a Controller's view is 'unloaded'
CGRect
data source - delegate and view controller
47. 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
48. Defining variables - three parts...
lowercase - uppercase
you always return the newly initialized object(return self)
cannot be added to an array
type - name and value
49. 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]
Maintenance of state
first responder
CGRect bounds
50. Categories are an Objective C way to add _ to an existing class without subclassing
subview(s)
methods
is an instance of that class
creates an instance of NSString that holds the character string