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 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.
type - name and value
Data Encapsulation
calling code that does the instantiation for you
dealloc - is called on the object & the object's memory is returned to the heap
2. NSNumber - class...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Object wrapper around primitive types like int - float - double - BOOl
class methods - initializers
declaration and initialization of a variable
3. A view is a subclass of _
receiving and handling events that are associated with it
UIView
pointer to an object
group of global functions already assigned to this class
4. When do you take ownership?...
pointer - class
Data Encapsulation
Controller Objects[Managers]
Anytime you call a method with new - alloc or copy. You own and must release that object.
5. A command directed to an object is called an...
pointers
unordered collection of objects - objects must be unique
Encapsulation of functionality
message
6. A responder is responsible for...
'getters' and 'setters'
receiving and handling events that are associated with it
UIViewController
create a XIB file
7. 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 _.
subview(s)
Anytime you call a method with new - alloc or copy. You own and must release that object.
method
data source - delegate and view controller
8. An instance is a device for maintaining state. It's a box for _ of data.
selector[message]
NSLog routine
storage
copy - retain
9. Delegation is an object oriented approach to
pointer - class
callbacks
message
unordered collection of objects - objects must be unique
10. 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
11. Any individual object belonging to any class...
safety - subclassability and makes code look more consistent with C structs
Functions
is an instance of that class
size and position
12. NSString objects are usually sent _ rather than _...
lowercase - uppercase
copy - retain
Encapsulation of functionality
a mechanism to enable specific callbacks
13. In Objective C arrays can hold only...
@interface ClassName:SuperClassName
calling code that does the instantiation for you
Hash table - Look up objects using a key to get a value.
references to objects
14. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
do so in viewDidLoad
C Functionn
an object's property
15. What does autorelease mean?
arguments[message]
Maintenance of state
wait until the loop finishes processing the event - at the end release it
do so in viewDidLoad
16. Reducing details to focus on the core concepts
ordered collection of objects - immutable
methods
object
Abstraction
17. Prefixing a character string with an @ symbol [specific - NSString class]...
(id)initWithFrame:(CGRect)aRect;
creates an instance of NSString that holds the character string
'getters' and 'setters'
view controller's initialization method
18. In the last line of an init method...
first responder
CGRect
you always return the newly initialized object(return self)
you must import the header file of that class
19. After accessors have been defined in the header file...
superclass's
they need to be defined in the implementation file
create a XIB file
the array becomes an owner of that object and has a pointer to it.
20. You use _ to implement the view
dealloc - is called on the object & the object's memory is returned to the heap
CGRect bounds
Ready-Made Instance
the message release to all its entries
21. A function in the objective c library that simply displays or logs it's argument
Instantiation from scratch
first responder
class
NSLog routine
22. A method in a _ is required unless its preceded by an @optional.
declaration and initialization of a variable
protocol
for inheritance - adopting the superclasses implementation
message
23. A pointer to the object being asked to execute a method
view
array[class - NSMutableArray]
the instance variables
receiver[message]
24. The only reason to temporarily own an object - is...
instance of UIView or one of its subclasses
upper
arguments[message]
to give it someone else - or another object
25. Files Owner...
only the class and subclasses can access
array[class - NSMutableArray]
Is a placeholder object
Object wrapper around primitive types like int - float - double - BOOl
26. Instance Variables by default are called @protected meaning...
@synthesize
pointer - class
values
only the class and subclasses can access
27. Origin of a view's coordinate system is _ left
upper
method
storage
in the dealloc - or when a Controller's view is 'unloaded'
28. If you have extra work you want to do on the view...
has one root view controller
first responder
do so in viewDidLoad
retain
29. Typically the designated initializer has parameters for the most important and frequently used _ of an object
a mechanism to enable specific callbacks
receiver - selector - arguments
instance variables
variable scope - if defined within a block
30. NSString *s = @'Hello - World'; is an example of...
define it in the implemenation file
Generic object wrapper for other non-object data types
storage
declaration and initialization of a variable
31. Proceed through the loop - jump back to the top and check again
instance variables
Continue
a mechanism to enable specific callbacks
CGRect bounds - GCPoint center - CGRect frame
32. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
calling code that does the instantiation for you
copy - retain
the instance variables
33. Why properties?
safety - subclassability and makes code look more consistent with C structs
variable scope - if defined within a block
receiver[message]
Encapsulation of functionality
34. NSSet...
new instances of the class or retrieve some global property of the class.
self
data
unordered collection of objects - objects must be unique
35. class methods...
data
group of global functions already assigned to this class
they need to be defined in the implementation file
a single-array can contain objects of different types
36. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
37. A UITableView usually needs three different pieces...
accessors - individually we call them 'getters' and 'setters'
the instance variables
data source - delegate and view controller
Ready-Made Instance
38. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
39. 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.
pointer to an object
NSCoder
creating an initializer
instance variable of an object is valid
40. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
you must import the header file of that class
CF - Ref
method
41. To load a Xib file manually - you use _
receiving and handling events that are associated with it
reuse your cells
lowercase - uppercase
NSBundle
42. Also - because arrays only hold a pointer to an object...
creates an instance of NSString that holds the character string
methods for generating an instance
pointers
a single-array can contain objects of different types
43. 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
44. In general - class methods tend to be factory methods - that is...
Encapsulation of functionality
methods for generating an instance
%d
subview(s)
45. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
protocol
self
parentViewController
viewWillDissapear: and viewWillAppear:
46. Designated initializer makes sure that every...
wait until the loop finishes processing the event - at the end release it
instance variables
instance variable of an object is valid
unordered collection of objects - objects must be unique
47. In any application with UINavigationController - the navigation controller...
to give it someone else - or another object
has one root view controller
Functions
group of global functions already assigned to this class
48. 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.
implementation
collection of collections - NSArray of an NSArray
instance variables
variable scope - if defined within a block
49. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Functions
object
Ready-Made Instance
arguments[message]
50. The class is responsible for what instance variables the instance has - but not the _ of those variables.
@synthesize
values
reuse your cells
the array relinquishes ownership of that object and no longer has a pointer to it