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...
CGRect
calling code that does the instantiation for you
the instance variables
%d
2. In Cocoa Touch - the table view asks another object _ what it should display...
@interface ClassName:SuperClassName
dealloc - is called on the object & the object's memory is returned to the heap
do so in viewDidLoad
its dataSource
3. The designated initializer calls the _ designated initializer....
4. Reference Counting...
accessors - individually we call them 'getters' and 'setters'
You take ownership for an object you want to keep a pointer to
its dataSource
CF - Ref
5. The only reason to temporarily own an object - is...
protocol
viewWillDissapear: and viewWillAppear:
implementation
to give it someone else - or another object
6. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
type - name and value
data source - view controller and delegate
CGFloat
7. What happens when the last owner calls release?
8. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Used to find the time right now or to store past or future time/dates
parentViewController
the array becomes an owner of that object and has a pointer to it.
callbacks
9. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
10. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
initializers
the instance variables
message
11. Any individual object belonging to any class...
self
super - self
UIView
is an instance of that class
12. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
method
Data Encapsulation
header files declare
is an instance of that class
13. @property declares - and _ implements the setter and getter...
Controller Objects[Managers]
@synthesize
the instance variables
copy - retain
14. NSArray - class...
create a XIB file
references to objects
define it in the implemenation file
ordered collection of objects - immutable
15. @property - is using methods...
only the innermost loop in which the break is executed is terminated
Used to find the time right now or to store past or future time/dates
to get and set variables
instance variable of an object is valid
16. If a break statement is executed from within a set of nested loops...
upper
you must import the header file of that class
only the innermost loop in which the break is executed is terminated
arguments[message]
17. Categories are an Objective C way to add _ to an existing class without subclassing
CGRect bounds
methods
Controller Objects[Managers]
to give it someone else - or another object
18. UITableViewController is a subclass of...
first responder
UIViewController
class
CGFloat
19. 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
pointer - class
super - self
a mechanism to enable specific callbacks
they need to be defined in the implementation file
20. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
%d
self
will be ignored
'getters' and 'setters'
21. To load a Xib file manually - you use _
NSBundle
rectangular
has one root view controller
Instantiation from scratch
22. id is a...
pointer to an object
cannot be added to an array
methods for generating an instance
define it in the implemenation file
23. Instance Variables by default are called @protected meaning...
variable scope - if defined within a block
class methods - initializers
only the class and subclasses can access
first responder
24. Typically the designated initializer has parameters for the most important and frequently used _ of an object
cannot be added to an array
instance variables
object
protocol
25. In any application with UINavigationController - the navigation controller...
has one root view controller
viewWillDissapear: and viewWillAppear:
they need to be defined in the implementation file
parentViewController
26. A UITableView usually needs three different pieces...
data source - delegate and view controller
data
header files declare
Data Encapsulation
27. Also if you send the NSObject the _ message - you own that object.
view controller
UIViewController
Generic object wrapper for other non-object data types
retain
28. 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.
Ready-Made Instance
to get and set variables
instance variables
instance of UIView or one of its subclasses
29. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
message
initializer
safety - subclassability and makes code look more consistent with C structs
30. A view is an...
CGRect bounds
class's
NSCoder
instance of UIView or one of its subclasses
31. A responder is responsible for...
message
receiving and handling events that are associated with it
Anytime you call a method with new - alloc or copy. You own and must release that object.
data source - delegate and view controller
32. Number one use of protocols in iOS...
reuse your cells
Maintenance of state
delegates and dataSources
is an instance of that class
33. A view represents a _ area
callbacks
rectangular
storage
calling code that does the instantiation for you
34. Whenever a UINavigationController is about to swap views - it sends out two messages
@synthesize
create a XIB file
viewWillDissapear: and viewWillAppear:
instance variables
35. You use _ to implement the view
CGRect bounds
Continue
@interface ClassName:SuperClassName
NSBundle
36. 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.
class
superclass's
subview(s)
Data Encapsulation
37. We can use dot notation to reference...
38. The integer prefix is...
new instances of the class or retrieve some global property of the class.
(id)initWithFrame:(CGRect)aRect;
%d
C Functionn
39. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
protocol
selector[message]
@interface ClassName:SuperClassName
40. NSValue - class...
will be ignored
Generic object wrapper for other non-object data types
Is a placeholder object
class methods - initializers
41. If the view has no subviews - create it programmatically; if it has subviews
declaration and initialization of a variable
create a XIB file
to get and set variables
@interface ClassName:SuperClassName
42. Center and frame are used to _ your view
CGFloat
UIView
position
create a XIB file
43. Files Owner...
rectangular
Data Encapsulation
Controller Objects[Managers]
Is a placeholder object
44. An instance is a device for maintaining state. It's a box for _ of data.
storage
class's
creates an instance of NSString that holds the character string
selector[message]
45. After accessors have been defined in the header file...
they need to be defined in the implementation file
create a XIB file
define it in the implemenation file
collection of collections - NSArray of an NSArray
46. Object Oriented based analogue to a function is called a...
copy - retain
UIView
creating an initializer
method
47. 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 _.
pointer - class
new instances of the class or retrieve some global property of the class.
creating an initializer
initializers
48. NSString *s = @'Hello - World'; is an example of...
instance of UIView or one of its subclasses
declaration and initialization of a variable
methods
Maintenance of state
49. Class methods do not operate on an _ or have any access to _ variables....
Generic object wrapper for other non-object data types
CGRect bounds - GCPoint center - CGRect frame
CGFloat
instance
50. Core foundation classes are prefixed with _ and suffixed with _
attributes - behavior
(id)initWithFrame:(CGRect)aRect;
CF - Ref
view controller's initialization method