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. 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
2. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
3. Each _ has a 'designated' initializer method....
the array relinquishes ownership of that object and no longer has a pointer to it
Controller Objects[Managers]
UIViewController
class
4. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
receiver[message]
declaration and initialization of a variable
delegates and dataSources
first responder
5. In Cocoa Touch - the table view asks another object _ what it should display...
protocol
methods for generating an instance
its dataSource
Encapsulation of functionality
6. Categories are an Objective C way to add _ to an existing class without subclassing
Model Objects[Factory Worker]
designated initializer
first responder
methods
7. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
you must import the header file of that class
C Functionn
NSCoder
8. UIImageView is used to...
draw images
wait until the loop finishes processing the event - at the end release it
the array becomes an owner of that object and has a pointer to it.
initializers
9. At the top of any implementation file...
data source - view controller and delegate
you must import the header file of that class
'getters' and 'setters'
NSBundle
10. How do I implement my drawRect?
Core Graphics Framework
declaration and initialization of a variable
CGRect
Encapsulation of functionality
11. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
CGRect
NSBundle
'getters' and 'setters'
12. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
to give it someone else - or another object
variable scope - if defined within a block
ordered collection of objects - immutable
13. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
CGRect bounds - GCPoint center - CGRect frame
object
Is a placeholder object
14. Files Owner...
a single-array can contain objects of different types
Is a placeholder object
Ready-Made Instance
rectangular
15. The only reason to temporarily own an object - is...
super - self
to give it someone else - or another object
subview(s)
@interface ClassName:SuperClassName
16. Delegation is an object oriented approach to
callbacks
ordered collection of objects - immutable
safety - subclassability and makes code look more consistent with C structs
you always return the newly initialized object(return self)
17. A method in a _ is required unless its preceded by an @optional.
view controller's initialization method
protocol
the message release to all its entries
CGRect bounds - GCPoint center - CGRect frame
18. In a class method you cannot access...
an object's property
the instance variables
subview(s)
instance variables
19. class methods...
group of global functions already assigned to this class
super - self
UIViewController
unordered collection of objects - objects must be unique
20. UIView - designated initializer...
references to objects
(id)initWithFrame:(CGRect)aRect;
declaration and initialization of a variable
CF - Ref
21. Class methods do not operate on an _ or have any access to _ variables....
subview(s)
instance
Functions
designated initializer
22. Just a floating point number - but we always use it for graphics.
CGFloat
data source - view controller and delegate
references to objects
@interface ClassName:SuperClassName
23. Why properties?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
safety - subclassability and makes code look more consistent with C structs
reuse your cells
only the innermost loop in which the break is executed is terminated
24. 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
instance variables
parentViewController
CGRect bounds
CGRect bounds - GCPoint center - CGRect frame
25. To load a Xib file manually - you use _
methods
safety - subclassability and makes code look more consistent with C structs
NSBundle
Model Objects[Factory Worker]
26. When an object is added to a NSMutableArray - that object is sent the message to retain;...
NSLog routine
the array becomes an owner of that object and has a pointer to it.
view
CGRect bounds - GCPoint center - CGRect frame
27. A view represents a _ area
CF - Ref
message
rectangular
causes the program to immediately exit from the loop it is executing - whether its for - while or do
28. NSDictionary...
copy - retain
an object's property
Hash table - Look up objects using a key to get a value.
a mechanism to enable specific callbacks
29. Whenever a UINavigationController is about to swap views - it sends out two messages
type - name and value
@synthesize
viewWillDissapear: and viewWillAppear:
self
30. id is a...
pointer to an object
delegates and dataSources
the array relinquishes ownership of that object and no longer has a pointer to it
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
31. Object Oriented based analogue to a function is called a...
delegates and dataSources
message
method
callbacks
32. Each class picks one _ as it's designated initializer....
initializer
'getters' and 'setters'
callbacks
@synthesize
33. UITableViewController is a subclass of...
references to objects
is called every time the event occurs
UIViewController
Continue
34. Origin of a view's coordinate system is _ left
upper
position
dealloc - is called on the object & the object's memory is returned to the heap
message
35. An instance is a device for maintaining state. It's a box for _ of data.
position
wait until the loop finishes processing the event - at the end release it
storage
@interface ClassName:SuperClassName
36. A _ handles touch events.
wait until the loop finishes processing the event - at the end release it
parentViewController
view
designated initializer
37. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
storage
Is a placeholder object
lowercase - uppercase
38. A UITableViewController can fill all three roles of...
do so in viewDidLoad
data source - view controller and delegate
size and position
NSLog routine
39. A function in the objective c library that simply displays or logs it's argument
new instances of the class or retrieve some global property of the class.
selector[message]
NSLog routine
draw images
40. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
(id)initWithFrame:(CGRect)aRect;
NSBundle
Ready-Made Instance
class's
41. 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....
retain
define it in the implemenation file
data source - delegate and view controller
in the dealloc - or when a Controller's view is 'unloaded'
42. Proceed through the loop - jump back to the top and check again
class
initializers
wait until the loop finishes processing the event - at the end release it
Continue
43. 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.
@interface ClassName:SuperClassName
Used to find the time right now or to store past or future time/dates
implementation
methods
44. Three ways instances are created...
Abstraction
parentViewController
ready-made instances - instantiation from scratch - and nib based instantiation
is an instance of that class
45. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
nil
attributes - behavior
pointer - class
Maintenance of state
46. NSSet...
Controller Objects[Managers]
unordered collection of objects - objects must be unique
receiver - selector - arguments
Ready-Made Instance
47. @property declares - and _ implements the setter and getter...
instance
for inheritance - adopting the superclasses implementation
@synthesize
in the dealloc - or when a Controller's view is 'unloaded'
48. A view is a subclass of _
superclass's
methods for generating an instance
UIView
causes the program to immediately exit from the loop it is executing - whether its for - while or do
49. 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
50. 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
an object's property
reuse your cells
Encapsulation of functionality
pointer - class