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. UIView - designated initializer...
references to objects
data
Core Graphics Framework
(id)initWithFrame:(CGRect)aRect;
2. class methods...
message
super - self
view controller
group of global functions already assigned to this class
3. Hold data and know nothing about the user interface
initializer
Data Encapsulation
Model Objects[Factory Worker]
references to objects
4. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
subview(s)
designated initializer
super - self
Generic object wrapper for other non-object data types
5. Categories are an Objective C way to add _ to an existing class without subclassing
methods
view
in the dealloc - or when a Controller's view is 'unloaded'
declaration and initialization of a variable
6. A method in a _ is required unless its preceded by an @optional.
dealloc - is called on the object & the object's memory is returned to the heap
you always return the newly initialized object(return self)
protocol
Anytime you call a method with new - alloc or copy. You own and must release that object.
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
the array relinquishes ownership of that object and no longer has a pointer to it
C Functionn
Maintenance of state
accessors - individually we call them 'getters' and 'setters'
8. A _ handles touch events.
view
instance variables
Used to find the time right now or to store past or future time/dates
@synthesize
9. initWithFrame: the designated initializer for UIView gives the view
size and position
has one root view controller
self
subview(s)
10. 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
Core Graphics Framework
position
parentViewController
CGRect bounds
11. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
to give it someone else - or another object
upper
safety - subclassability and makes code look more consistent with C structs
12. NSDate - class...
initializer
Used to find the time right now or to store past or future time/dates
is an instance of that class
'getters' and 'setters'
13. Also - because arrays only hold a pointer to an object...
dealloc - is called on the object & the object's memory is returned to the heap
a single-array can contain objects of different types
view
is called every time the event occurs
14. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
parentViewController
collection of collections - NSArray of an NSArray
data source - view controller and delegate
15. Classes describe two things...
unordered collection of objects - objects must be unique
NSBundle
attributes - behavior
ready-made instances - instantiation from scratch - and nib based instantiation
16. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
is called every time the event occurs
Functions
delegates and dataSources
17. NSArray - class...
ordered collection of objects - immutable
UIView
setPossessionName
instance of UIView or one of its subclasses
18. All objects are accessed using...
storage
Hash table - Look up objects using a key to get a value.
Functions
pointers
19. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Controller Objects[Managers]
CF - Ref
C Functionn
do so in viewDidLoad
20. Class methods typically either create
you always return the newly initialized object(return self)
rectangular
new instances of the class or retrieve some global property of the class.
a mechanism to enable specific callbacks
21. Typically the designated initializer has parameters for the most important and frequently used _ of an object
initializer
parentViewController
header files declare
instance variables
22. NSSet...
its dataSource
create a XIB file
unordered collection of objects - objects must be unique
UIViewController
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 _.
subview(s)
accessors - individually we call them 'getters' and 'setters'
instance of UIView or one of its subclasses
Encapsulation of functionality
24. 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 _.
the array relinquishes ownership of that object and no longer has a pointer to it
nil
UIView
is an instance of that class
25. Name of the method to be executed
initializer
rectangular
define it in the implemenation file
selector[message]
26. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
to get and set variables
methods for generating an instance
C Functionn
27. NSString objects are usually sent _ rather than _...
instance variables
creating an initializer
CGFloat
copy - retain
28. Only exists within the statement block there defined - outside of the block is fine
message
variable scope - if defined within a block
receiver - selector - arguments
@synthesize
29. 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
30. When making a tableView always...
a single-array can contain objects of different types
methods for generating an instance
initializers
reuse your cells
31. if you implemented both the setter and getter - the @synthesize method...
'getters' and 'setters'
will be ignored
declaration and initialization of a variable
you always return the newly initialized object(return self)
32. Each _ has a 'designated' initializer method....
unordered collection of objects - objects must be unique
type - name and value
class
they need to be defined in the implementation file
33. NSArray - important methods...
delegates and dataSources
Object wrapper around primitive types like int - float - double - BOOl
copy - retain
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
34. The integer prefix is...
ordered collection of objects - immutable
%d
wait until the loop finishes processing the event - at the end release it
the message release to all its entries
35. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
position
upper
receiver - selector - arguments
36. Delegation is an object oriented approach to
UIView
wait until the loop finishes processing the event - at the end release it
pointer - class
callbacks
37. Class methods do not operate on an _ or have any access to _ variables....
Generic object wrapper for other non-object data types
ordered collection of objects - immutable
instance
methods for generating an instance
38. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
ordered collection of objects - immutable
you must import the header file of that class
Model Objects[Factory Worker]
header files declare
39. An instance is a device for maintaining state. It's a box for _ of data.
storage
(id)initWithFrame:(CGRect)aRect;
Data Encapsulation
method
40. When an object is added to a NSMutableArray - that object is sent the message to retain;...
create a XIB file
the array becomes an owner of that object and has a pointer to it.
protocol
view controller
41. The root view controller typically creates the next view controller - and the next _ creates the one after that
has one root view controller
pointers
upper
view controller
42. 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....
storage
data
super - self
define it in the implemenation file
43. Values to be supplied as the parameters to the method
Hash table - Look up objects using a key to get a value.
arguments[message]
initializers
CGRect bounds
44. 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
45. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
receiver
its dataSource
class's
46. Property List...
(id)initWithFrame:(CGRect)aRect;
collection of collections - NSArray of an NSArray
subview(s)
define it in the implemenation file
47. A view is a subclass of _
UIView
is called every time the event occurs
receiver - selector - arguments
self
48. Designated initializer makes sure that every...
instance variable of an object is valid
CGRect
position
class's
49. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
has one root view controller
Hash table - Look up objects using a key to get a value.
Anytime you call a method with new - alloc or copy. You own and must release that object.
Controller Objects[Managers]
50. When an object is removed from an NSMutableArray - that object is sent the message release;...
parentViewController
array[class - NSMutableArray]
NSCoder
the array relinquishes ownership of that object and no longer has a pointer to it