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. A UITableView usually needs three different pieces...
message
a mechanism to enable specific callbacks
data source - delegate and view controller
self
2. Each _ has a 'designated' initializer method....
class
Controller Objects[Managers]
class methods - initializers
message
3. Three ways instances are created...
CGFloat
ready-made instances - instantiation from scratch - and nib based instantiation
position
ordered collection of objects - immutable
4. Class methods typically either create
new instances of the class or retrieve some global property of the class.
Controller Objects[Managers]
NSBundle
instance variables
5. Delegation is an object oriented approach to
define it in the implemenation file
callbacks
Ready-Made Instance
safety - subclassability and makes code look more consistent with C structs
6. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
view controller's initialization method
the message release to all its entries
protocol
NSCoder
7. How do I implement my drawRect?
parentViewController
will be ignored
Core Graphics Framework
safety - subclassability and makes code look more consistent with C structs
8. Only exists within the statement block there defined - outside of the block is fine
group of global functions already assigned to this class
create a XIB file
you must import the header file of that class
variable scope - if defined within a block
9. 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
callbacks
parentViewController
Maintenance of state
NSBundle
10. At the top of any implementation file...
you must import the header file of that class
header files declare
Generic object wrapper for other non-object data types
class
11. When an object is removed from an NSMutableArray - that object is sent the message release;...
CF - Ref
the array relinquishes ownership of that object and no longer has a pointer to it
pointer to an object
an object's property
12. Any individual object belonging to any class...
Instantiation from scratch
has one root view controller
ordered collection of objects - immutable
is an instance of that class
13. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
instance of UIView or one of its subclasses
message
(id)initWithFrame:(CGRect)aRect;
CGRect
14. Whenever a UINavigationController is about to swap views - it sends out two messages
initializers
self
viewWillDissapear: and viewWillAppear:
(id)initWithFrame:(CGRect)aRect;
15. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
the instance variables
only the class and subclasses can access
lowercase - uppercase
16. Values to be supplied as the parameters to the method
create a XIB file
Data Encapsulation
arguments[message]
collection of collections - NSArray of an NSArray
17. 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
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
has one root view controller
parentViewController
its dataSource
18. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
the instance variables
@interface ClassName:SuperClassName
view controller
receiver
19. 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
20. super - is used...
safety - subclassability and makes code look more consistent with C structs
dealloc - is called on the object & the object's memory is returned to the heap
for inheritance - adopting the superclasses implementation
create a XIB file
21. Typically the designated initializer has parameters for the most important and frequently used _ of an object
for inheritance - adopting the superclasses implementation
define it in the implemenation file
instance variables
data
22. @property - is using methods...
UIViewController
only the innermost loop in which the break is executed is terminated
to get and set variables
receiver[message]
23. Files Owner...
reuse your cells
to get and set variables
header files declare
Is a placeholder object
24. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Continue
super - self
viewWillDissapear: and viewWillAppear:
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
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. Property List...
storage
collection of collections - NSArray of an NSArray
receiver
the array becomes an owner of that object and has a pointer to it.
27. In any application with UINavigationController - the navigation controller...
wait until the loop finishes processing the event - at the end release it
Is a placeholder object
has one root view controller
view controller's initialization method
28. The integer prefix is...
a mechanism to enable specific callbacks
NSCoder
receiver
%d
29. 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.
initializers
You take ownership for an object you want to keep a pointer to
message
implementation
30. Each class picks one _ as it's designated initializer....
view controller's initialization method
initializer
has one root view controller
data source - delegate and view controller
31. Number one use of protocols in iOS...
data source - delegate and view controller
for inheritance - adopting the superclasses implementation
header files declare
delegates and dataSources
32. A pointer to the object being asked to execute a method
Object wrapper around primitive types like int - float - double - BOOl
protocol
receiver[message]
CGRect bounds - GCPoint center - CGRect frame
33. Execution of the break statement...
pointer to an object
values
causes the program to immediately exit from the loop it is executing - whether its for - while or do
You take ownership for an object you want to keep a pointer to
34. In the last line of an init method...
you always return the newly initialized object(return self)
array[class - NSMutableArray]
only the innermost loop in which the break is executed is terminated
Continue
35. NSDate - class...
super - self
Used to find the time right now or to store past or future time/dates
Generic object wrapper for other non-object data types
to give it someone else - or another object
36. A _ handles touch events.
CGFloat
type - name and value
view
instance
37. 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 _.
NSLog routine
self
nil
data source - delegate and view controller
38. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the instance variables
calling code that does the instantiation for you
pointer to an object
39. 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
40. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
Instantiation from scratch
protocol
unordered collection of objects - objects must be unique
41. In general - class methods tend to be factory methods - that is...
unordered collection of objects - objects must be unique
UIView
view
methods for generating an instance
42. Also - because arrays only hold a pointer to an object...
rectangular
a single-array can contain objects of different types
Object wrapper around primitive types like int - float - double - BOOl
ordered collection of objects - immutable
43. 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
Data Encapsulation
a mechanism to enable specific callbacks
UIViewController
to get and set variables
44. initWithFrame: the designated initializer for UIView gives the view
they need to be defined in the implementation file
size and position
message
draw images
45. A view is an...
in the dealloc - or when a Controller's view is 'unloaded'
size and position
for inheritance - adopting the superclasses implementation
instance of UIView or one of its subclasses
46. @property declares - and _ implements the setter and getter...
do so in viewDidLoad
@synthesize
instance variables
creates an instance of NSString that holds the character string
47. You use _ to implement the view
position
Data Encapsulation
CGRect bounds
type - name and value
48. Why properties?
creating an initializer
is called every time the event occurs
instance variables
safety - subclassability and makes code look more consistent with C structs
49. 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...
setPossessionName
you always return the newly initialized object(return self)
the message release to all its entries
attributes - behavior
50. A responder is responsible for...
ordered collection of objects - immutable
new instances of the class or retrieve some global property of the class.
values
receiving and handling events that are associated with it