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. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Data Encapsulation
type - name and value
arguments[message]
designated initializer
2. When do you take ownership?...
a single-array can contain objects of different types
pointer - class
Anytime you call a method with new - alloc or copy. You own and must release that object.
subview(s)
3. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
array[class - NSMutableArray]
subview(s)
class methods - initializers
header files declare
4. In Objective C arrays can hold only...
pointer - class
viewWillDissapear: and viewWillAppear:
references to objects
Anytime you call a method with new - alloc or copy. You own and must release that object.
5. An instance is a device for maintaining state. It's a box for _ of data.
storage
ready-made instances - instantiation from scratch - and nib based instantiation
Encapsulation of functionality
is an instance of that class
6. Object Oriented based analogue to a function is called a...
instance variables
arguments[message]
method
Continue
7. In object oriented languages - we call methods that get and set instance variables
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.
instance variables
will be ignored
selector[message]
is called every time the event occurs
9. After accessors have been defined in the header file...
view controller
they need to be defined in the implementation file
only the innermost loop in which the break is executed is terminated
superclass's
10. Also if you send the NSObject the _ message - you own that object.
viewWillDissapear: and viewWillAppear:
retain
(id)initWithFrame:(CGRect)aRect;
Object wrapper around primitive types like int - float - double - BOOl
11. The designated initializer calls the _ designated initializer....
12. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
only the innermost loop in which the break is executed is terminated
Functions
object
size and position
13. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
for inheritance - adopting the superclasses implementation
Instantiation from scratch
attributes - behavior
instance of UIView or one of its subclasses
14. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
(id)initWithFrame:(CGRect)aRect;
Continue
designated initializer
15. Primitives and C Structures...
view controller's initialization method
Is a placeholder object
cannot be added to an array
the array becomes an owner of that object and has a pointer to it.
16. Number one use of protocols in iOS...
delegates and dataSources
You take ownership for an object you want to keep a pointer to
data source - view controller and delegate
Model Objects[Factory Worker]
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Core Graphics Framework
position
Ready-Made Instance
receiver
18. If a break statement is executed from within a set of nested loops...
Object wrapper around primitive types like int - float - double - BOOl
view controller's initialization method
view controller
only the innermost loop in which the break is executed is terminated
19. To load a Xib file manually - you use _
for inheritance - adopting the superclasses implementation
NSBundle
subview(s)
is an instance of that class
20. The class is responsible for what instance variables the instance has - but not the _ of those variables.
NSBundle
values
Object wrapper around primitive types like int - float - double - BOOl
protocol
21. 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 _.
safety - subclassability and makes code look more consistent with C structs
nil
in the dealloc - or when a Controller's view is 'unloaded'
super - self
22. Property List...
class
initializers
super - self
collection of collections - NSArray of an NSArray
23. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Controller Objects[Managers]
Object wrapper around primitive types like int - float - double - BOOl
(id)initWithFrame:(CGRect)aRect;
@interface ClassName:SuperClassName
24. UITableViewController is a subclass of...
pointer to an object
collection of collections - NSArray of an NSArray
UIViewController
Abstraction
25. NSArray - important methods...
class
draw images
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
methods for generating an instance
26. In a class method you cannot access...
Model Objects[Factory Worker]
NSLog routine
the instance variables
causes the program to immediately exit from the loop it is executing - whether its for - while or do
27. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
will be ignored
accessors - individually we call them 'getters' and 'setters'
receiver
28. Classes describe two things...
attributes - behavior
CGRect bounds - GCPoint center - CGRect frame
pointer to an object
header files declare
29. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
30. All objects are accessed using...
size and position
dealloc - is called on the object & the object's memory is returned to the heap
pointers
create a XIB file
31. Just a floating point number - but we always use it for graphics.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
subview(s)
safety - subclassability and makes code look more consistent with C structs
CGFloat
32. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
values
Controller Objects[Managers]
initializers
33. Designated initializer makes sure that every...
unordered collection of objects - objects must be unique
instance variable of an object is valid
to get and set variables
CGRect
34. Center and frame are used to _ your view
Anytime you call a method with new - alloc or copy. You own and must release that object.
position
receiver
CGRect
35. 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.
in the dealloc - or when a Controller's view is 'unloaded'
creating an initializer
the array relinquishes ownership of that object and no longer has a pointer to it
Core Graphics Framework
36. NSValue - class...
creates an instance of NSString that holds the character string
Generic object wrapper for other non-object data types
an object's property
accessors - individually we call them 'getters' and 'setters'
37. id is a...
CGRect
receiver
pointer to an object
NSLog routine
38. Origin of a view's coordinate system is _ left
creates an instance of NSString that holds the character string
viewWillDissapear: and viewWillAppear:
upper
will be ignored
39. A method in a _ is required unless its preceded by an @optional.
receiving and handling events that are associated with it
CGRect bounds - GCPoint center - CGRect frame
protocol
only the innermost loop in which the break is executed is terminated
40. class methods...
has one root view controller
group of global functions already assigned to this class
the array relinquishes ownership of that object and no longer has a pointer to it
view
41. NSString objects are usually sent _ rather than _...
You take ownership for an object you want to keep a pointer to
pointer to an object
array[class - NSMutableArray]
copy - retain
42. Reference Counting...
You take ownership for an object you want to keep a pointer to
an object's property
@synthesize
designated initializer
43. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
methods for generating an instance
Generic object wrapper for other non-object data types
view controller
lowercase - uppercase
44. A pointer to the object being asked to execute a method
storage
receiver[message]
nil
the array becomes an owner of that object and has a pointer to it.
45. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
C Functionn
to give it someone else - or another object
ready-made instances - instantiation from scratch - and nib based instantiation
46. UIImageView is used to...
pointer - class
'getters' and 'setters'
lowercase - uppercase
draw images
47. super - is used...
ready-made instances - instantiation from scratch - and nib based instantiation
for inheritance - adopting the superclasses implementation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
@synthesize
48. 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
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Encapsulation of functionality
initializer
'getters' and 'setters'
49. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
Encapsulation of functionality
to get and set variables
callbacks
50. Hold data and know nothing about the user interface
size and position
Model Objects[Factory Worker]
callbacks
first responder