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. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
references to objects
has one root view controller
protocol
2. Defining variables - three parts...
storage
type - name and value
(id)initWithFrame:(CGRect)aRect;
CGRect bounds - GCPoint center - CGRect frame
3. if you implemented both the setter and getter - the @synthesize method...
will be ignored
group of global functions already assigned to this class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
initializer
4. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
you always return the newly initialized object(return self)
instance variable of an object is valid
designated initializer
unordered collection of objects - objects must be unique
5. 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....
only the class and subclasses can access
class
define it in the implemenation file
they need to be defined in the implementation file
6. At the top of any implementation file...
ready-made instances - instantiation from scratch - and nib based instantiation
you must import the header file of that class
CGRect
the array becomes an owner of that object and has a pointer to it.
7. To load a Xib file manually - you use _
has one root view controller
NSBundle
receiving and handling events that are associated with it
parentViewController
8. Reference Counting...
copy - retain
superclass's
You take ownership for an object you want to keep a pointer to
only the class and subclasses can access
9. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
create a XIB file
Instantiation from scratch
callbacks
method
10. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
an object's property
Object wrapper around primitive types like int - float - double - BOOl
pointer - class
11. Also - because arrays only hold a pointer to an object...
Object wrapper around primitive types like int - float - double - BOOl
new instances of the class or retrieve some global property of the class.
a single-array can contain objects of different types
lowercase - uppercase
12. NSString objects are usually sent _ rather than _...
Generic object wrapper for other non-object data types
receiver
first responder
copy - retain
13. Use of class methods - there are three...
alloc - singleton - informational utility method?
Data Encapsulation
accessors - individually we call them 'getters' and 'setters'
new instances of the class or retrieve some global property of the class.
14. 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
(id)initWithFrame:(CGRect)aRect;
UIViewController
%d
15. The only reason to temporarily own an object - is...
to give it someone else - or another object
Anytime you call a method with new - alloc or copy. You own and must release that object.
to get and set variables
declaration and initialization of a variable
16. 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
17. Instance Variables by default are called @protected meaning...
class's
the message release to all its entries
methods for generating an instance
only the class and subclasses can access
18. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
receiver
class methods - initializers
instance variables
data
19. A view is an...
type - name and value
copy - retain
instance of UIView or one of its subclasses
instance variable of an object is valid
20. 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 _.
data source - delegate and view controller
lowercase - uppercase
viewWillDissapear: and viewWillAppear:
nil
21. 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
You take ownership for an object you want to keep a pointer to
for inheritance - adopting the superclasses implementation
Encapsulation of functionality
initializer
22. initWithFrame: the designated initializer for UIView gives the view
UIView
size and position
a mechanism to enable specific callbacks
object
23. 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 _.
type - name and value
subview(s)
collection of collections - NSArray of an NSArray
unordered collection of objects - objects must be unique
24. Proceed through the loop - jump back to the top and check again
initializer
references to objects
Continue
Encapsulation of functionality
25. NSDate - class...
values
Used to find the time right now or to store past or future time/dates
accessors - individually we call them 'getters' and 'setters'
the instance variables
26. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
selector[message]
CF - Ref
do so in viewDidLoad
27. Center and frame are used to _ your view
Controller Objects[Managers]
position
has one root view controller
(id)initWithFrame:(CGRect)aRect;
28. If a break statement is executed from within a set of nested loops...
a single-array can contain objects of different types
only the innermost loop in which the break is executed is terminated
the array relinquishes ownership of that object and no longer has a pointer to it
first responder
29. 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.
message
Data Encapsulation
receiver - selector - arguments
self
30. A collection object - an ordered list of objects that can be accesed by an index
implementation
retain
copy - retain
array[class - NSMutableArray]
31. The integer prefix is...
%d
self
'getters' and 'setters'
to give it someone else - or another object
32. A UITableViewController can fill all three roles of...
new instances of the class or retrieve some global property of the class.
lowercase - uppercase
data source - view controller and delegate
C Functionn
33. Files Owner...
in the dealloc - or when a Controller's view is 'unloaded'
class methods - initializers
calling code that does the instantiation for you
Is a placeholder object
34. NSArray - important methods...
Core Graphics Framework
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
will be ignored
an object's property
35. 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
36. After accessors have been defined in the header file...
Core Graphics Framework
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
they need to be defined in the implementation file
the message release to all its entries
37. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
38. 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
39. 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
40. If the view has no subviews - create it programmatically; if it has subviews
@interface ClassName:SuperClassName
create a XIB file
UIViewController
you must import the header file of that class
41. Hold data and know nothing about the user interface
'getters' and 'setters'
Model Objects[Factory Worker]
only the innermost loop in which the break is executed is terminated
creates an instance of NSString that holds the character string
42. A command directed to an object is called an...
the array relinquishes ownership of that object and no longer has a pointer to it
safety - subclassability and makes code look more consistent with C structs
collection of collections - NSArray of an NSArray
message
43. NSDictionary...
reuse your cells
Hash table - Look up objects using a key to get a value.
protocol
cannot be added to an array
44. Whenever a UINavigationController is about to swap views - it sends out two messages
lowercase - uppercase
type - name and value
viewWillDissapear: and viewWillAppear:
its dataSource
45. In Objective C arrays can hold only...
in the dealloc - or when a Controller's view is 'unloaded'
the message release to all its entries
references to objects
an object's property
46. 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.
initializer
Instantiation from scratch
creating an initializer
Model Objects[Factory Worker]
47. An instance is a device for maintaining state. It's a box for _ of data.
arguments[message]
Continue
variable scope - if defined within a block
storage
48. When an object is added to a NSMutableArray - that object is sent the message to retain;...
dealloc - is called on the object & the object's memory is returned to the heap
view controller
the array becomes an owner of that object and has a pointer to it.
Used to find the time right now or to store past or future time/dates
49. Core foundation classes are prefixed with _ and suffixed with _
the message release to all its entries
CF - Ref
ordered collection of objects - immutable
view controller
50. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
data source - view controller and delegate
initializers
receiving and handling events that are associated with it
callbacks