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. 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....
delegates and dataSources
cannot be added to an array
C Functionn
define it in the implemenation file
2. Values to be supplied as the parameters to the method
receiver
arguments[message]
Abstraction
NSCoder
3. 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
a mechanism to enable specific callbacks
declaration and initialization of a variable
UIViewController
%d
4. In the last line of an init method...
storage
you always return the newly initialized object(return self)
receiving and handling events that are associated with it
Object wrapper around primitive types like int - float - double - BOOl
5. Proceed through the loop - jump back to the top and check again
rectangular
data
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Continue
6. A command directed to an object is called an...
message
implementation
receiver
Instantiation from scratch
7. If the view has no subviews - create it programmatically; if it has subviews
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the instance variables
superclass's
create a XIB file
8. Files Owner...
Is a placeholder object
the array becomes an owner of that object and has a pointer to it.
is an instance of that class
UIView
9. Ready-made instances...
Model Objects[Factory Worker]
a mechanism to enable specific callbacks
calling code that does the instantiation for you
callbacks
10. How do I implement my drawRect?
methods
Core Graphics Framework
CGRect
they need to be defined in the implementation file
11. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
(id)initWithFrame:(CGRect)aRect;
Instantiation from scratch
message
UIViewController
12. Just a floating point number - but we always use it for graphics.
alloc - singleton - informational utility method?
an object's property
creating an initializer
CGFloat
13. Each _ has a 'designated' initializer method....
alloc - singleton - informational utility method?
attributes - behavior
You take ownership for an object you want to keep a pointer to
class
14. The class is responsible for what instance variables the instance has - but not the _ of those variables.
callbacks
values
CGRect bounds
lowercase - uppercase
15. Views have three properties related to their location and size: @property _ _;
type - name and value
unordered collection of objects - objects must be unique
lowercase - uppercase
CGRect bounds - GCPoint center - CGRect frame
16. UIView - designated initializer...
accessors - individually we call them 'getters' and 'setters'
receiver[message]
CGRect bounds - GCPoint center - CGRect frame
(id)initWithFrame:(CGRect)aRect;
17. UIViewController has several methods that get called at certain times...
initializer
the instance variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
safety - subclassability and makes code look more consistent with C structs
18. In general - class methods tend to be factory methods - that is...
C Functionn
upper
methods for generating an instance
initializer
19. Property List...
Core Graphics Framework
collection of collections - NSArray of an NSArray
methods
data
20. Asking a class or object to execute a method
an object's property
Instantiation from scratch
declaration and initialization of a variable
message
21. NSValue - class...
instance variables
an object's property
Generic object wrapper for other non-object data types
values
22. The only reason to temporarily own an object - is...
for inheritance - adopting the superclasses implementation
to give it someone else - or another object
a single-array can contain objects of different types
retain
23. When making a tableView always...
Functions
NSBundle
reuse your cells
data
24. 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 _.
NSCoder
pointers
pointer - class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
25. Name of the method to be executed
selector[message]
Maintenance of state
subview(s)
class methods - initializers
26. super - is used...
for inheritance - adopting the superclasses implementation
the instance variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
creates an instance of NSString that holds the character string
27. UITableViewController is a subclass of...
pointer to an object
UIViewController
header files declare
dealloc - is called on the object & the object's memory is returned to the heap
28. In Cocoa Touch - the table view asks another object _ what it should display...
size and position
its dataSource
define it in the implemenation file
lowercase - uppercase
29. 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
subview(s)
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
size and position
30. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
declaration and initialization of a variable
lowercase - uppercase
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
31. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
pointer - class
Used to find the time right now or to store past or future time/dates
selector[message]
32. NSArray - important methods...
they need to be defined in the implementation file
Instantiation from scratch
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
instance variable of an object is valid
33. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
references to objects
position
group of global functions already assigned to this class
header files declare
34. Class methods typically either create
instance variables
pointers
new instances of the class or retrieve some global property of the class.
dealloc - is called on the object & the object's memory is returned to the heap
35. In a class method you cannot access...
Abstraction
class's
only the class and subclasses can access
the instance variables
36. NSDate - class...
Used to find the time right now or to store past or future time/dates
instance of UIView or one of its subclasses
arguments[message]
pointers
37. Reference Counting...
in the dealloc - or when a Controller's view is 'unloaded'
rectangular
retain
You take ownership for an object you want to keep a pointer to
38. Class methods do not operate on an _ or have any access to _ variables....
pointer to an object
message
@synthesize
instance
39. A pointer to the object being asked to execute a method
pointer to an object
receiver[message]
Used to find the time right now or to store past or future time/dates
an object's property
40. A UITableViewController can fill all three roles of...
ordered collection of objects - immutable
data source - view controller and delegate
CGRect bounds - GCPoint center - CGRect frame
UIView
41. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
cannot be added to an array
object
ordered collection of objects - immutable
protocol
42. Delegation is an object oriented approach to
delegates and dataSources
UIViewController
instance variables
callbacks
43. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
creates an instance of NSString that holds the character string
CGFloat
Core Graphics Framework
44. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
arguments[message]
you always return the newly initialized object(return self)
@interface ClassName:SuperClassName
only the class and subclasses can access
45. NSString *s = @'Hello - World'; is an example of...
Data Encapsulation
instance variables
declaration and initialization of a variable
array[class - NSMutableArray]
46. initWithFrame: the designated initializer for UIView gives the view
Anytime you call a method with new - alloc or copy. You own and must release that object.
calling code that does the instantiation for you
size and position
to give it someone else - or another object
47. 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.
CF - Ref
header files declare
instance variables
creating an initializer
48. 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
C Functionn
Encapsulation of functionality
NSBundle
49. Origin of a view's coordinate system is _ left
nil
upper
for inheritance - adopting the superclasses implementation
Maintenance of state
50. You use _ to implement the view
instance of UIView or one of its subclasses
calling code that does the instantiation for you
a single-array can contain objects of different types
CGRect bounds