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. Also if you send the NSObject the _ message - you own that object.
reuse your cells
data
%d
retain
2. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
nil
instance
class methods - initializers
self
3. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Encapsulation of functionality
Core Graphics Framework
initializer
instance variables
4. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
new instances of the class or retrieve some global property of the class.
@interface ClassName:SuperClassName
Core Graphics Framework
instance variables
5. Defining variables - three parts...
attributes - behavior
type - name and value
do so in viewDidLoad
@synthesize
6. Designated initializer makes sure that every...
for inheritance - adopting the superclasses implementation
instance variable of an object is valid
first responder
view controller's initialization method
7. In general - class methods tend to be factory methods - that is...
Abstraction
methods for generating an instance
has one root view controller
CGRect bounds
8. If a break statement is executed from within a set of nested loops...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
initializers
UIView
only the innermost loop in which the break is executed is terminated
9. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
'getters' and 'setters'
CGFloat
lowercase - uppercase
NSCoder
10. When do we need to release our outlets?
11. 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
do so in viewDidLoad
Maintenance of state
object
a mechanism to enable specific callbacks
12. When do you take ownership?...
methods
Anytime you call a method with new - alloc or copy. You own and must release that object.
the message release to all its entries
cannot be added to an array
13. super - is used...
for inheritance - adopting the superclasses implementation
class
methods for generating an instance
attributes - behavior
14. NSString *s = @'Hello - World'; is an example of...
Used to find the time right now or to store past or future time/dates
declaration and initialization of a variable
superclass's
C Functionn
15. 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.
pointer to an object
instance variables
draw images
Maintenance of state
16. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
data
only the innermost loop in which the break is executed is terminated
copy - retain
subview(s)
17. To load a Xib file manually - you use _
only the innermost loop in which the break is executed is terminated
NSBundle
subview(s)
Data Encapsulation
18. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
new instances of the class or retrieve some global property of the class.
CF - Ref
wait until the loop finishes processing the event - at the end release it
19. Values to be supplied as the parameters to the method
arguments[message]
view
super - self
UIView
20. A view is a subclass of _
to give it someone else - or another object
data
CGRect bounds
UIView
21. 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.
implementation
(id)initWithFrame:(CGRect)aRect;
message
CGFloat
22. 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....
pointer - class
ready-made instances - instantiation from scratch - and nib based instantiation
define it in the implemenation file
new instances of the class or retrieve some global property of the class.
23. A collection object - an ordered list of objects that can be accesed by an index
its dataSource
attributes - behavior
creates an instance of NSString that holds the character string
array[class - NSMutableArray]
24. The integer prefix is...
references to objects
do so in viewDidLoad
implementation
%d
25. In Cocoa Touch - the table view asks another object _ what it should display...
UIView
callbacks
group of global functions already assigned to this class
its dataSource
26. 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.
dealloc - is called on the object & the object's memory is returned to the heap
NSCoder
values
Data Encapsulation
27. if you implemented both the setter and getter - the @synthesize method...
class
will be ignored
UIViewController
wait until the loop finishes processing the event - at the end release it
28. @property declares - and _ implements the setter and getter...
instance of UIView or one of its subclasses
@synthesize
its dataSource
define it in the implemenation file
29. 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]
declaration and initialization of a variable
delegates and dataSources
class methods - initializers
30. Center and frame are used to _ your view
Maintenance of state
reuse your cells
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
position
31. 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 _.
for inheritance - adopting the superclasses implementation
position
nil
the message release to all its entries
32. NSNumber - class...
protocol
Object wrapper around primitive types like int - float - double - BOOl
group of global functions already assigned to this class
you always return the newly initialized object(return self)
33. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CGRect bounds
class methods - initializers
wait until the loop finishes processing the event - at the end release it
34. We can use dot notation to reference...
35. UITableViewController is a subclass of...
methods for generating an instance
lowercase - uppercase
view controller
UIViewController
36. A method in a _ is required unless its preceded by an @optional.
its dataSource
variable scope - if defined within a block
protocol
Used to find the time right now or to store past or future time/dates
37. The root view controller typically creates the next view controller - and the next _ creates the one after that
superclass's
@interface ClassName:SuperClassName
data source - delegate and view controller
view controller
38. Use of class methods - there are three...
alloc - singleton - informational utility method?
an object's property
protocol
draw images
39. A UITableView usually needs three different pieces...
'getters' and 'setters'
UIViewController
data source - delegate and view controller
pointer - class
40. Never access a view controller's view in that...
41. NSDictionary...
Hash table - Look up objects using a key to get a value.
arguments[message]
unordered collection of objects - objects must be unique
alloc - singleton - informational utility method?
42. 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 _.
protocol
variable scope - if defined within a block
Generic object wrapper for other non-object data types
subview(s)
43. In a class method you cannot access...
the instance variables
will be ignored
creating an initializer
CGFloat
44. 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
message
unordered collection of objects - objects must be unique
parentViewController
variable scope - if defined within a block
45. Object Oriented based analogue to a function is called a...
reuse your cells
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
method
C Functionn
46. In Objective C arrays can hold only...
references to objects
copy - retain
create a XIB file
values
47. A callback is a function that is supplied in advance of an event - and...
Is a placeholder object
UIView
is called every time the event occurs
class
48. class methods...
only the class and subclasses can access
group of global functions already assigned to this class
retain
message
49. NSValue - class...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Generic object wrapper for other non-object data types
lowercase - uppercase
accessors - individually we call them 'getters' and 'setters'
50. Class methods do not operate on an _ or have any access to _ variables....
delegates and dataSources
instance
UIView
safety - subclassability and makes code look more consistent with C structs