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 class is responsible for what instance variables the instance has - but not the _ of those variables.
instance of UIView or one of its subclasses
UIViewController
values
copy - retain
2. You use _ to implement the view
CGRect bounds
wait until the loop finishes processing the event - at the end release it
array[class - NSMutableArray]
class's
3. Reducing details to focus on the core concepts
Functions
Abstraction
its dataSource
CGRect
4. A callback is a function that is supplied in advance of an event - and...
to get and set variables
CGRect
initializers
is called every time the event occurs
5. Defining variables - three parts...
type - name and value
Is a placeholder object
group of global functions already assigned to this class
alloc - singleton - informational utility method?
6. Values to be supplied as the parameters to the method
array[class - NSMutableArray]
arguments[message]
in the dealloc - or when a Controller's view is 'unloaded'
designated initializer
7. When an NSMutableArray is deallocated - it sends...
Instantiation from scratch
parentViewController
CGFloat
the message release to all its entries
8. UIImageView is used to...
Data Encapsulation
draw images
causes the program to immediately exit from the loop it is executing - whether its for - while or do
C Functionn
9. When do you take ownership?...
protocol
Object wrapper around primitive types like int - float - double - BOOl
Functions
Anytime you call a method with new - alloc or copy. You own and must release that object.
10. UIViewController has several methods that get called at certain times...
creating an initializer
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
parentViewController
class methods - initializers
11. 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
group of global functions already assigned to this class
Anytime you call a method with new - alloc or copy. You own and must release that object.
protocol
12. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
position
subview(s)
NSLog routine
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
13. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Continue
Maintenance of state
a single-array can contain objects of different types
cannot be added to an array
14. In a class method you cannot access...
collection of collections - NSArray of an NSArray
creates an instance of NSString that holds the character string
only the class and subclasses can access
the instance variables
15. In general - class methods tend to be factory methods - that is...
receiver[message]
instance variables
methods for generating an instance
NSBundle
16. 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....
callbacks
define it in the implemenation file
selector[message]
reuse your cells
17. Just a floating point number - but we always use it for graphics.
CGFloat
selector[message]
Is a placeholder object
@synthesize
18. 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
to get and set variables
subview(s)
is called every time the event occurs
19. A view represents a _ area
receiving and handling events that are associated with it
rectangular
Generic object wrapper for other non-object data types
self
20. If a break statement is executed from within a set of nested loops...
Controller Objects[Managers]
Anytime you call a method with new - alloc or copy. You own and must release that object.
selector[message]
only the innermost loop in which the break is executed is terminated
21. A view is a subclass of _
ready-made instances - instantiation from scratch - and nib based instantiation
selector[message]
UIView
define it in the implemenation file
22. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
subview(s)
storage
is called every time the event occurs
23. All objects are accessed using...
CGRect
new instances of the class or retrieve some global property of the class.
pointers
Generic object wrapper for other non-object data types
24. A command directed to an object is called an...
Continue
superclass's
message
instance variable of an object is valid
25. Primitives and C Structures...
variable scope - if defined within a block
object
Is a placeholder object
cannot be added to an array
26. Asking a class or object to execute a method
the array becomes an owner of that object and has a pointer to it.
message
declaration and initialization of a variable
class
27. Number one use of protocols in iOS...
references to objects
(id)initWithFrame:(CGRect)aRect;
view controller
delegates and dataSources
28. NSSet...
unordered collection of objects - objects must be unique
the array relinquishes ownership of that object and no longer has a pointer to it
receiver - selector - arguments
its dataSource
29. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
implementation
instance variable of an object is valid
instance variables
30. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
(id)initWithFrame:(CGRect)aRect;
nil
class methods - initializers
self
31. Delegation is an object oriented approach to
unordered collection of objects - objects must be unique
callbacks
C Functionn
the message release to all its entries
32. 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
UIViewController
nil
@synthesize
33. Why properties?
safety - subclassability and makes code look more consistent with C structs
array[class - NSMutableArray]
viewWillDissapear: and viewWillAppear:
header files declare
34. Views have three properties related to their location and size: @property _ _;
do so in viewDidLoad
instance
CGRect bounds - GCPoint center - CGRect frame
is an instance of that class
35. NSDate - class...
Used to find the time right now or to store past or future time/dates
causes the program to immediately exit from the loop it is executing - whether its for - while or do
@synthesize
data source - view controller and delegate
36. Classes describe two things...
attributes - behavior
methods for generating an instance
the instance variables
methods
37. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Hash table - Look up objects using a key to get a value.
designated initializer
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
You take ownership for an object you want to keep a pointer to
38. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
the array relinquishes ownership of that object and no longer has a pointer to it
class methods - initializers
@interface ClassName:SuperClassName
references to objects
39. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
40. Files Owner...
methods
designated initializer
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Is a placeholder object
41. Also if you send the NSObject the _ message - you own that object.
retain
group of global functions already assigned to this class
Anytime you call a method with new - alloc or copy. You own and must release that object.
to get and set variables
42. When do we need to release our outlets?
43. Hold data and know nothing about the user interface
the array becomes an owner of that object and has a pointer to it.
methods
declaration and initialization of a variable
Model Objects[Factory Worker]
44. 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.
creates an instance of NSString that holds the character string
values
data
instance variables
45. Any individual object belonging to any class...
first responder
CGRect bounds
is an instance of that class
the instance variables
46. NSArray - class...
header files declare
pointer - class
cannot be added to an array
ordered collection of objects - immutable
47. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
cannot be added to an array
instance variable of an object is valid
Continue
48. A collection object - an ordered list of objects that can be accesed by an index
self
array[class - NSMutableArray]
message
Core Graphics Framework
49. A pointer to the object being asked to execute a method
@interface ClassName:SuperClassName
wait until the loop finishes processing the event - at the end release it
in the dealloc - or when a Controller's view is 'unloaded'
receiver[message]
50. super - is used...
define it in the implemenation file
Generic object wrapper for other non-object data types
for inheritance - adopting the superclasses implementation
only the class and subclasses can access