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. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
type - name and value
implementation
2. Values to be supplied as the parameters to the method
super - self
the message release to all its entries
class methods - initializers
arguments[message]
3. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
header files declare
instance of UIView or one of its subclasses
cannot be added to an array
Ready-Made Instance
4. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
5. A UITableView usually needs three different pieces...
object
Object wrapper around primitive types like int - float - double - BOOl
a mechanism to enable specific callbacks
data source - delegate and view controller
6. 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
arguments[message]
subview(s)
designated initializer
a mechanism to enable specific callbacks
7. When do you take ownership?...
message
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
safety - subclassability and makes code look more consistent with C structs
8. 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.
Hash table - Look up objects using a key to get a value.
array[class - NSMutableArray]
size and position
instance variables
9. 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 _.
instance
Continue
pointer - class
safety - subclassability and makes code look more consistent with C structs
10. Class methods do not operate on an _ or have any access to _ variables....
Generic object wrapper for other non-object data types
receiving and handling events that are associated with it
instance
Instantiation from scratch
11. Any other initializer a class has calls the _ designated initializer....
12. @property - is using methods...
protocol
C Functionn
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
to get and set variables
13. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
an object's property
designated initializer
receiving and handling events that are associated with it
subview(s)
14. Prefixing a character string with an @ symbol [specific - NSString class]...
@interface ClassName:SuperClassName
CGRect bounds - GCPoint center - CGRect frame
creates an instance of NSString that holds the character string
in the dealloc - or when a Controller's view is 'unloaded'
15. Reducing details to focus on the core concepts
new instances of the class or retrieve some global property of the class.
you always return the newly initialized object(return self)
Abstraction
Generic object wrapper for other non-object data types
16. NSString objects are usually sent _ rather than _...
you always return the newly initialized object(return self)
view controller
self
copy - retain
17. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
view controller's initialization method
Controller Objects[Managers]
object
methods for generating an instance
18. Ready-made instances...
calling code that does the instantiation for you
You take ownership for an object you want to keep a pointer to
creates an instance of NSString that holds the character string
Is a placeholder object
19. Why properties?
safety - subclassability and makes code look more consistent with C structs
self
subview(s)
object
20. If you have extra work you want to do on the view...
view controller's initialization method
implementation
do so in viewDidLoad
UIView
21. Property List...
view controller
collection of collections - NSArray of an NSArray
instance
calling code that does the instantiation for you
22. 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
view
initializers
cannot be added to an array
23. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
@interface ClassName:SuperClassName
Ready-Made Instance
@synthesize
24. id is a...
selector[message]
pointer to an object
methods for generating an instance
draw images
25. Primitives and C Structures...
cannot be added to an array
NSLog routine
causes the program to immediately exit from the loop it is executing - whether its for - while or do
rectangular
26. The class is responsible for what instance variables the instance has - but not the _ of those variables.
is an instance of that class
values
class methods - initializers
first responder
27. [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.
designated initializer
class methods - initializers
object
data
28. Class methods typically either create
CGRect bounds
new instances of the class or retrieve some global property of the class.
cannot be added to an array
NSCoder
29. Just a floating point number - but we always use it for graphics.
you must import the header file of that class
a single-array can contain objects of different types
CGFloat
type - name and value
30. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
receiver[message]
accessors - individually we call them 'getters' and 'setters'
CGRect bounds - GCPoint center - CGRect frame
31. When an object is removed from an NSMutableArray - that object is sent the message release;...
do so in viewDidLoad
the array relinquishes ownership of that object and no longer has a pointer to it
Functions
pointers
32. 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
Encapsulation of functionality
class methods - initializers
instance variables
to give it someone else - or another object
33. class methods...
group of global functions already assigned to this class
instance variables
pointer to an object
nil
34. When an object is added to a NSMutableArray - that object is sent the message to retain;...
You take ownership for an object you want to keep a pointer to
for inheritance - adopting the superclasses implementation
the array becomes an owner of that object and has a pointer to it.
copy - retain
35. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
you must import the header file of that class
define it in the implemenation file
callbacks
36. NSDictionary...
Hash table - Look up objects using a key to get a value.
NSCoder
object
you always return the newly initialized object(return self)
37. Also - because arrays only hold a pointer to an object...
a mechanism to enable specific callbacks
UIViewController
receiver[message]
a single-array can contain objects of different types
38. Instance Variables by default are called @protected meaning...
Generic object wrapper for other non-object data types
only the class and subclasses can access
Abstraction
subview(s)
39. What happens when the last owner calls release?
40. Name of the method to be executed
receiver - selector - arguments
parentViewController
UIView
selector[message]
41. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
receiver
initializers
the message release to all its entries
UIView
42. When an NSMutableArray is deallocated - it sends...
data source - view controller and delegate
a mechanism to enable specific callbacks
Used to find the time right now or to store past or future time/dates
the message release to all its entries
43. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
designated initializer
the array becomes an owner of that object and has a pointer to it.
lowercase - uppercase
the instance variables
44. 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...
for inheritance - adopting the superclasses implementation
instance of UIView or one of its subclasses
setPossessionName
reuse your cells
45. NSString *s = @'Hello - World'; is an example of...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
only the class and subclasses can access
instance variable of an object is valid
declaration and initialization of a variable
46. Object Oriented based analogue to a function is called a...
setPossessionName
lowercase - uppercase
method
NSLog routine
47. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
creating an initializer
callbacks
NSBundle
48. An instance is a device for maintaining state. It's a box for _ of data.
Generic object wrapper for other non-object data types
nil
storage
a mechanism to enable specific callbacks
49. Hold data and know nothing about the user interface
ordered collection of objects - immutable
Model Objects[Factory Worker]
receiver[message]
Ready-Made Instance
50. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
super - self
size and position
safety - subclassability and makes code look more consistent with C structs