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. Number one use of protocols in iOS...
position
delegates and dataSources
the message release to all its entries
dealloc - is called on the object & the object's memory is returned to the heap
2. 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.
alloc - singleton - informational utility method?
instance variables
ordered collection of objects - immutable
pointer to an object
3. Classes describe two things...
attributes - behavior
header files declare
data
@synthesize
4. 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....
draw images
CGRect
creates an instance of NSString that holds the character string
define it in the implemenation file
5. Use of class methods - there are three...
Hash table - Look up objects using a key to get a value.
alloc - singleton - informational utility method?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
data source - view controller and delegate
6. 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.
view
Data Encapsulation
attributes - behavior
collection of collections - NSArray of an NSArray
7. The designated initializer calls the _ designated initializer....
8. Categories are an Objective C way to add _ to an existing class without subclassing
CGRect bounds - GCPoint center - CGRect frame
methods
Generic object wrapper for other non-object data types
CF - Ref
9. @property - is using methods...
safety - subclassability and makes code look more consistent with C structs
to get and set variables
protocol
Data Encapsulation
10. The only reason to temporarily own an object - is...
creating an initializer
a single-array can contain objects of different types
safety - subclassability and makes code look more consistent with C structs
to give it someone else - or another object
11. NSString *s = @'Hello - World'; is an example of...
object
declaration and initialization of a variable
Anytime you call a method with new - alloc or copy. You own and must release that object.
@synthesize
12. How do I implement my drawRect?
Core Graphics Framework
cannot be added to an array
class's
unordered collection of objects - objects must be unique
13. All objects are accessed using...
Object wrapper around primitive types like int - float - double - BOOl
pointers
callbacks
instance variables
14. class methods...
group of global functions already assigned to this class
setPossessionName
data source - view controller and delegate
receiving and handling events that are associated with it
15. A view is an...
group of global functions already assigned to this class
parentViewController
instance of UIView or one of its subclasses
reuse your cells
16. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
view controller's initialization method
C Functionn
designated initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
17. Instance Variables by default are called @protected meaning...
setPossessionName
variable scope - if defined within a block
only the class and subclasses can access
the array relinquishes ownership of that object and no longer has a pointer to it
18. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
causes the program to immediately exit from the loop it is executing - whether its for - while or do
retain
19. A message is always contained in square brackets - and has three parts
selector[message]
data source - view controller and delegate
receiver - selector - arguments
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
20. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
its dataSource
initializers
the array relinquishes ownership of that object and no longer has a pointer to it
subview(s)
21. Also if you send the NSObject the _ message - you own that object.
calling code that does the instantiation for you
draw images
receiving and handling events that are associated with it
retain
22. Each class picks one _ as it's designated initializer....
creating an initializer
cannot be added to an array
Controller Objects[Managers]
initializer
23. NSValue - class...
class
pointer - class
Hash table - Look up objects using a key to get a value.
Generic object wrapper for other non-object data types
24. NSDictionary...
calling code that does the instantiation for you
values
Hash table - Look up objects using a key to get a value.
instance variables
25. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
arguments[message]
array[class - NSMutableArray]
you always return the newly initialized object(return self)
26. In Objective C arrays can hold only...
lowercase - uppercase
header files declare
CGRect
references to objects
27. In general - class methods tend to be factory methods - that is...
Data Encapsulation
variable scope - if defined within a block
methods for generating an instance
has one root view controller
28. NSSet...
has one root view controller
data source - delegate and view controller
unordered collection of objects - objects must be unique
view
29. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
an object's property
CGRect
ordered collection of objects - immutable
super - self
30. If you have extra work you want to do on the view...
protocol
attributes - behavior
do so in viewDidLoad
Used to find the time right now or to store past or future time/dates
31. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
cannot be added to an array
receiver - selector - arguments
first responder
lowercase - uppercase
32. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
the array relinquishes ownership of that object and no longer has a pointer to it
do so in viewDidLoad
cannot be added to an array
Functions
33. A view is a subclass of _
initializer
draw images
UIView
data source - view controller and delegate
34. When do we need to release our outlets?
35. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
collection of collections - NSArray of an NSArray
arguments[message]
ready-made instances - instantiation from scratch - and nib based instantiation
36. At the top of any implementation file...
dealloc - is called on the object & the object's memory is returned to the heap
you must import the header file of that class
NSLog routine
declaration and initialization of a variable
37. Class methods typically either create
type - name and value
ordered collection of objects - immutable
view controller's initialization method
new instances of the class or retrieve some global property of the class.
38. What happens when the last owner calls release?
39. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
selector[message]
you always return the newly initialized object(return self)
Encapsulation of functionality
40. A view represents a _ area
CGRect bounds - GCPoint center - CGRect frame
arguments[message]
rectangular
UIView
41. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
data source - view controller and delegate
calling code that does the instantiation for you
to get and set variables
42. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
C Functionn
view controller's initialization method
@synthesize
43. 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
collection of collections - NSArray of an NSArray
calling code that does the instantiation for you
upper
44. In any application with UINavigationController - the navigation controller...
has one root view controller
cannot be added to an array
is an instance of that class
variable scope - if defined within a block
45. Proceed through the loop - jump back to the top and check again
Continue
implementation
super - self
creating an initializer
46. 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.
creating an initializer
subview(s)
super - self
a mechanism to enable specific callbacks
47. Center and frame are used to _ your view
position
receiver - selector - arguments
safety - subclassability and makes code look more consistent with C structs
CGRect bounds
48. Prefixing a character string with an @ symbol [specific - NSString class]...
has one root view controller
group of global functions already assigned to this class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
creates an instance of NSString that holds the character string
49. Typically the designated initializer has parameters for the most important and frequently used _ of an object
an object's property
its dataSource
they need to be defined in the implementation file
instance variables
50. The class is responsible for what instance variables the instance has - but not the _ of those variables.
an object's property
alloc - singleton - informational utility method?
values
Encapsulation of functionality