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. Delegation is an object oriented approach to
callbacks
alloc - singleton - informational utility method?
Instantiation from scratch
draw images
2. 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
3. Object Oriented based analogue to a function is called a...
CF - Ref
define it in the implemenation file
method
pointer to an object
4. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. In Objective C arrays can hold only...
Functions
is an instance of that class
references to objects
subview(s)
6. 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....
object
define it in the implemenation file
Core Graphics Framework
instance variables
7. Origin of a view's coordinate system is _ left
receiver - selector - arguments
Controller Objects[Managers]
initializers
upper
8. id is a...
methods
group of global functions already assigned to this class
instance variable of an object is valid
pointer to an object
9. A view is an...
a single-array can contain objects of different types
selector[message]
group of global functions already assigned to this class
instance of UIView or one of its subclasses
10. Whenever a UINavigationController is about to swap views - it sends out two messages
storage
only the class and subclasses can access
viewWillDissapear: and viewWillAppear:
data source - view controller and delegate
11. The class is responsible for what instance variables the instance has - but not the _ of those variables.
message
size and position
wait until the loop finishes processing the event - at the end release it
values
12. How do I implement my drawRect?
array[class - NSMutableArray]
Core Graphics Framework
view
ordered collection of objects - immutable
13. A callback is a function that is supplied in advance of an event - and...
(id)initWithFrame:(CGRect)aRect;
super - self
CGRect bounds
is called every time the event occurs
14. Reference Counting...
Functions
class
You take ownership for an object you want to keep a pointer to
calling code that does the instantiation for you
15. Only exists within the statement block there defined - outside of the block is fine
position
'getters' and 'setters'
variable scope - if defined within a block
to get and set variables
16. A function in the objective c library that simply displays or logs it's argument
NSLog routine
@synthesize
Model Objects[Factory Worker]
parentViewController
17. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
super - self
its dataSource
upper
header files declare
18. Use of class methods - there are three...
an object's property
data source - view controller and delegate
selector[message]
alloc - singleton - informational utility method?
19. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Generic object wrapper for other non-object data types
CGRect bounds
object
first responder
20. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
CGRect
references to objects
alloc - singleton - informational utility method?
21. All objects are accessed using...
pointers
only the class and subclasses can access
Generic object wrapper for other non-object data types
Abstraction
22. Designated initializer makes sure that every...
for inheritance - adopting the superclasses implementation
instance variable of an object is valid
retain
in the dealloc - or when a Controller's view is 'unloaded'
23. Center and frame are used to _ your view
Generic object wrapper for other non-object data types
position
ready-made instances - instantiation from scratch - and nib based instantiation
they need to be defined in the implementation file
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
do so in viewDidLoad
CGRect
25. 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
26. Class methods do not operate on an _ or have any access to _ variables....
instance
superclass's
only the class and subclasses can access
copy - retain
27. A _ handles touch events.
class
for inheritance - adopting the superclasses implementation
position
view
28. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
receiver - selector - arguments
class methods - initializers
subview(s)
first responder
29. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
callbacks
safety - subclassability and makes code look more consistent with C structs
calling code that does the instantiation for you
30. When do you take ownership?...
array[class - NSMutableArray]
Anytime you call a method with new - alloc or copy. You own and must release that object.
lowercase - uppercase
first responder
31. In the last line of an init method...
you always return the newly initialized object(return self)
rectangular
NSCoder
@interface ClassName:SuperClassName
32. Three ways instances are created...
data source - delegate and view controller
has one root view controller
ready-made instances - instantiation from scratch - and nib based instantiation
instance of UIView or one of its subclasses
33. class methods...
group of global functions already assigned to this class
'getters' and 'setters'
Generic object wrapper for other non-object data types
creates an instance of NSString that holds the character string
34. Instance Variables by default are called @protected meaning...
a mechanism to enable specific callbacks
only the class and subclasses can access
class methods - initializers
upper
35. 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
Encapsulation of functionality
in the dealloc - or when a Controller's view is 'unloaded'
instance variables
group of global functions already assigned to this class
36. NSSet...
unordered collection of objects - objects must be unique
upper
storage
create a XIB file
37. When an object is added to a NSMutableArray - that object is sent the message to retain;...
in the dealloc - or when a Controller's view is 'unloaded'
@interface ClassName:SuperClassName
Model Objects[Factory Worker]
the array becomes an owner of that object and has a pointer to it.
38. Why properties?
receiving and handling events that are associated with it
safety - subclassability and makes code look more consistent with C structs
'getters' and 'setters'
a single-array can contain objects of different types
39. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
pointers
Instantiation from scratch
setPossessionName
UIView
40. In any application with UINavigationController - the navigation controller...
retain
UIView
creates an instance of NSString that holds the character string
has one root view controller
41. NSArray - class...
variable scope - if defined within a block
NSBundle
ordered collection of objects - immutable
delegates and dataSources
42. Defining variables - three parts...
receiver - selector - arguments
instance variables
self
type - name and value
43. 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
44. 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
45. NSNumber - class...
only the class and subclasses can access
receiving and handling events that are associated with it
Object wrapper around primitive types like int - float - double - BOOl
to give it someone else - or another object
46. NSDate - class...
declaration and initialization of a variable
the array relinquishes ownership of that object and no longer has a pointer to it
Used to find the time right now or to store past or future time/dates
Maintenance of state
47. UITableViewController is a subclass of...
wait until the loop finishes processing the event - at the end release it
UIViewController
Model Objects[Factory Worker]
the array relinquishes ownership of that object and no longer has a pointer to it
48. If the view has no subviews - create it programmatically; if it has subviews
class methods - initializers
type - name and value
create a XIB file
an object's property
49. 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.
Data Encapsulation
instance
viewWillDissapear: and viewWillAppear:
variable scope - if defined within a block
50. super - is used...
collection of collections - NSArray of an NSArray
Continue
for inheritance - adopting the superclasses implementation
self