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. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
arguments[message]
its dataSource
causes the program to immediately exit from the loop it is executing - whether its for - while or do
2. All objects are accessed using...
pointers
data
data source - view controller and delegate
wait until the loop finishes processing the event - at the end release it
3. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
message
view controller
instance variables
4. Three ways instances are created...
Model Objects[Factory Worker]
object
Maintenance of state
ready-made instances - instantiation from scratch - and nib based instantiation
5. Reference Counting...
instance variables
You take ownership for an object you want to keep a pointer to
variable scope - if defined within a block
Core Graphics Framework
6. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
in the dealloc - or when a Controller's view is 'unloaded'
Encapsulation of functionality
Controller Objects[Managers]
CGRect bounds - GCPoint center - CGRect frame
7. 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
Maintenance of state
message
CF - Ref
is called every time the event occurs
8. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
pointer - class
a mechanism to enable specific callbacks
parentViewController
9. In the last line of an init method...
pointers
you always return the newly initialized object(return self)
instance variable of an object is valid
viewWillDissapear: and viewWillAppear:
10. A callback is a function that is supplied in advance of an event - and...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
declaration and initialization of a variable
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
is called every time the event occurs
11. 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
Anytime you call a method with new - alloc or copy. You own and must release that object.
%d
parentViewController
size and position
12. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. After accessors have been defined in the header file...
they need to be defined in the implementation file
Core Graphics Framework
define it in the implemenation file
unordered collection of objects - objects must be unique
14. Property List...
Encapsulation of functionality
collection of collections - NSArray of an NSArray
Maintenance of state
its dataSource
15. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
data source - delegate and view controller
a single-array can contain objects of different types
header files declare
CGRect
16. Primitives and C Structures...
they need to be defined in the implementation file
cannot be added to an array
Data Encapsulation
lowercase - uppercase
17. Object Oriented based analogue to a function is called a...
method
copy - retain
receiving and handling events that are associated with it
storage
18. UIImageView is used to...
is called every time the event occurs
CF - Ref
storage
draw images
19. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
retain
you always return the newly initialized object(return self)
super - self
initializers
20. When an object is removed from an NSMutableArray - that object is sent the message release;...
CGRect bounds - GCPoint center - CGRect frame
the array relinquishes ownership of that object and no longer has a pointer to it
super - self
is called every time the event occurs
21. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
declaration and initialization of a variable
Model Objects[Factory Worker]
C Functionn
viewWillDissapear: and viewWillAppear:
22. Each _ has a 'designated' initializer method....
group of global functions already assigned to this class
class
Encapsulation of functionality
the message release to all its entries
23. The only reason to temporarily own an object - is...
Data Encapsulation
a single-array can contain objects of different types
to give it someone else - or another object
Hash table - Look up objects using a key to get a value.
24. Categories are an Objective C way to add _ to an existing class without subclassing
methods
Encapsulation of functionality
selector[message]
data
25. Delegation is an object oriented approach to
Instantiation from scratch
dealloc - is called on the object & the object's memory is returned to the heap
instance of UIView or one of its subclasses
callbacks
26. Ready-made instances...
pointer - class
calling code that does the instantiation for you
Anytime you call a method with new - alloc or copy. You own and must release that object.
class
27. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
28. A UITableView usually needs three different pieces...
rectangular
data source - delegate and view controller
the message release to all its entries
do so in viewDidLoad
29. Just a floating point number - but we always use it for graphics.
message
an object's property
reuse your cells
CGFloat
30. How do I implement my drawRect?
self
class
arguments[message]
Core Graphics Framework
31. Each class picks one _ as it's designated initializer....
calling code that does the instantiation for you
first responder
initializer
class
32. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
CGRect bounds
viewWillDissapear: and viewWillAppear:
self
CGRect bounds - GCPoint center - CGRect frame
33. In Objective C arrays can hold only...
rectangular
CGRect bounds
'getters' and 'setters'
references to objects
34. Also if you send the NSObject the _ message - you own that object.
values
retain
Core Graphics Framework
position
35. When an object is added to a NSMutableArray - that object is sent the message to retain;...
reuse your cells
(id)initWithFrame:(CGRect)aRect;
the array becomes an owner of that object and has a pointer to it.
pointers
36. NSArray - important methods...
CGRect
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
NSBundle
instance of UIView or one of its subclasses
37. 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
for inheritance - adopting the superclasses implementation
Abstraction
object
38. When making a tableView always...
reuse your cells
size and position
pointer - class
only the innermost loop in which the break is executed is terminated
39. Files Owner...
subview(s)
first responder
Maintenance of state
Is a placeholder object
40. NSValue - class...
superclass's
Generic object wrapper for other non-object data types
group of global functions already assigned to this class
selector[message]
41. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
storage
C Functionn
reuse your cells
42. Classes describe two things...
you always return the newly initialized object(return self)
attributes - behavior
superclass's
self
43. Defining variables - three parts...
Encapsulation of functionality
selector[message]
NSCoder
type - name and value
44. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
a single-array can contain objects of different types
object
to give it someone else - or another object
its dataSource
45. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
designated initializer
@interface ClassName:SuperClassName
initializer
46. In a class method you cannot access...
designated initializer
subview(s)
CGFloat
the instance variables
47. UIViewController has several methods that get called at certain times...
in the dealloc - or when a Controller's view is 'unloaded'
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
view controller's initialization method
Hash table - Look up objects using a key to get a value.
48. [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.
data
UIViewController
size and position
variable scope - if defined within a block
49. Number one use of protocols in iOS...
receiver
Ready-Made Instance
delegates and dataSources
data source - view controller and delegate
50. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
NSBundle
header files declare
causes the program to immediately exit from the loop it is executing - whether its for - while or do
class's