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. NSString *s = @'Hello - World'; is an example of...
will be ignored
declaration and initialization of a variable
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
2. Primitives and C Structures...
cannot be added to an array
values
define it in the implemenation file
you must import the header file of that class
3. super - is used...
variable scope - if defined within a block
Controller Objects[Managers]
for inheritance - adopting the superclasses implementation
in the dealloc - or when a Controller's view is 'unloaded'
4. Never access a view controller's view in that...
5. A UITableView usually needs three different pieces...
data source - delegate and view controller
new instances of the class or retrieve some global property of the class.
instance of UIView or one of its subclasses
self
6. initWithFrame: the designated initializer for UIView gives the view
receiver[message]
size and position
the array relinquishes ownership of that object and no longer has a pointer to it
viewWillDissapear: and viewWillAppear:
7. In general - class methods tend to be factory methods - that is...
CGRect bounds
view controller
UIView
methods for generating an instance
8. 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
CGRect
do so in viewDidLoad
a mechanism to enable specific callbacks
the array becomes an owner of that object and has a pointer to it.
9. If the view has no subviews - create it programmatically; if it has subviews
data source - delegate and view controller
Data Encapsulation
header files declare
create a XIB file
10. Only exists within the statement block there defined - outside of the block is fine
instance
variable scope - if defined within a block
cannot be added to an array
method
11. NSNumber - class...
position
attributes - behavior
draw images
Object wrapper around primitive types like int - float - double - BOOl
12. You use _ to implement the view
pointer - class
dealloc - is called on the object & the object's memory is returned to the heap
to give it someone else - or another object
CGRect bounds
13. 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
instance variables
first responder
message
14. Designated initializer makes sure that every...
arguments[message]
instance variable of an object is valid
view
the array becomes an owner of that object and has a pointer to it.
15. NSDictionary...
Hash table - Look up objects using a key to get a value.
C Functionn
lowercase - uppercase
you always return the newly initialized object(return self)
16. NSDate - class...
Used to find the time right now or to store past or future time/dates
they need to be defined in the implementation file
first responder
has one root view controller
17. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
the array relinquishes ownership of that object and no longer has a pointer to it
creating an initializer
initializer
18. Number one use of protocols in iOS...
designated initializer
delegates and dataSources
Object wrapper around primitive types like int - float - double - BOOl
creating an initializer
19. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
nil
Generic object wrapper for other non-object data types
you must import the header file of that class
20. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
You take ownership for an object you want to keep a pointer to
define it in the implemenation file
storage
21. A pointer to the object being asked to execute a method
method
receiver[message]
self
calling code that does the instantiation for you
22. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
has one root view controller
setPossessionName
subview(s)
23. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
data
class methods - initializers
instance variables
causes the program to immediately exit from the loop it is executing - whether its for - while or do
24. Values to be supplied as the parameters to the method
the message release to all its entries
CGFloat
arguments[message]
data source - view controller and delegate
25. 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
a mechanism to enable specific callbacks
Ready-Made Instance
parentViewController
you always return the newly initialized object(return self)
26. [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.
instance
calling code that does the instantiation for you
data
safety - subclassability and makes code look more consistent with C structs
27. A view represents a _ area
rectangular
initializer
lowercase - uppercase
class
28. A command directed to an object is called an...
in the dealloc - or when a Controller's view is 'unloaded'
safety - subclassability and makes code look more consistent with C structs
message
upper
29. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
will be ignored
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
Instantiation from scratch
30. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
define it in the implemenation file
receiver - selector - arguments
Ready-Made Instance
receiver
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....
variable scope - if defined within a block
super - self
upper
first responder
32. Typically the designated initializer has parameters for the most important and frequently used _ of an object
a mechanism to enable specific callbacks
Ready-Made Instance
instance variables
data source - view controller and delegate
33. Center and frame are used to _ your view
position
only the class and subclasses can access
to give it someone else - or another object
message
34. 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.
setPossessionName
subview(s)
NSCoder
Data Encapsulation
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
CGFloat
@interface ClassName:SuperClassName
Data Encapsulation
header files declare
36. After accessors have been defined in the header file...
declaration and initialization of a variable
they need to be defined in the implementation file
class's
attributes - behavior
37. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
designated initializer
ordered collection of objects - immutable
you must import the header file of that class
C Functionn
38. NSArray - important methods...
CGFloat
instance variable of an object is valid
(id)initWithFrame:(CGRect)aRect;
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
39. Core foundation classes are prefixed with _ and suffixed with _
new instances of the class or retrieve some global property of the class.
CF - Ref
values
creating an initializer
40. 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....
Continue
creating an initializer
define it in the implemenation file
instance variable of an object is valid
41. NSValue - class...
Generic object wrapper for other non-object data types
its dataSource
@interface ClassName:SuperClassName
nil
42. When do you take ownership?...
accessors - individually we call them 'getters' and 'setters'
Anytime you call a method with new - alloc or copy. You own and must release that object.
a mechanism to enable specific callbacks
Continue
43. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
an object's property
selector[message]
@synthesize
object
44. A message is always contained in square brackets - and has three parts
super - self
receiver - selector - arguments
data source - view controller and delegate
Continue
45. class methods...
calling code that does the instantiation for you
implementation
group of global functions already assigned to this class
NSCoder
46. 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
NSCoder
UIView
47. Origin of a view's coordinate system is _ left
Model Objects[Factory Worker]
upper
you always return the newly initialized object(return self)
class
48. A view is an...
alloc - singleton - informational utility method?
instance of UIView or one of its subclasses
Core Graphics Framework
values
49. @property - is using methods...
create a XIB file
to get and set variables
data source - view controller and delegate
arguments[message]
50. Property List...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
implementation
@synthesize
collection of collections - NSArray of an NSArray