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. NSArray - class...
unordered collection of objects - objects must be unique
ordered collection of objects - immutable
you always return the newly initialized object(return self)
Is a placeholder object
2. UIView - designated initializer...
a mechanism to enable specific callbacks
message
view controller's initialization method
(id)initWithFrame:(CGRect)aRect;
3. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
Object wrapper around primitive types like int - float - double - BOOl
Encapsulation of functionality
to get and set variables
4. A message is always contained in square brackets - and has three parts
safety - subclassability and makes code look more consistent with C structs
You take ownership for an object you want to keep a pointer to
the array becomes an owner of that object and has a pointer to it.
receiver - selector - arguments
5. 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.
Core Graphics Framework
draw images
creating an initializer
header files declare
6. if you implemented both the setter and getter - the @synthesize method...
collection of collections - NSArray of an NSArray
super - self
the array relinquishes ownership of that object and no longer has a pointer to it
will be ignored
7. A method in a _ is required unless its preceded by an @optional.
instance variables
protocol
self
%d
8. NSDictionary...
storage
first responder
delegates and dataSources
Hash table - Look up objects using a key to get a value.
9. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
rectangular
arguments[message]
in the dealloc - or when a Controller's view is 'unloaded'
class methods - initializers
10. In a class method you cannot access...
CF - Ref
upper
receiver
the instance variables
11. Execution of the break statement...
designated initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Anytime you call a method with new - alloc or copy. You own and must release that object.
accessors - individually we call them 'getters' and 'setters'
12. Reducing details to focus on the core concepts
ordered collection of objects - immutable
Abstraction
create a XIB file
lowercase - uppercase
13. Name of the method to be executed
selector[message]
group of global functions already assigned to this class
instance variables
Is a placeholder object
14. Files Owner...
Is a placeholder object
variable scope - if defined within a block
NSBundle
view controller
15. Ready-made instances...
nil
calling code that does the instantiation for you
methods for generating an instance
receiver
16. In any application with UINavigationController - the navigation controller...
has one root view controller
Core Graphics Framework
accessors - individually we call them 'getters' and 'setters'
group of global functions already assigned to this class
17. 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
18. When an object is removed from an NSMutableArray - that object is sent the message release;...
UIView
a single-array can contain objects of different types
the array relinquishes ownership of that object and no longer has a pointer to it
group of global functions already assigned to this class
19. UIViewController has several methods that get called at certain times...
methods for generating an instance
You take ownership for an object you want to keep a pointer to
CF - Ref
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
20. 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 _.
Used to find the time right now or to store past or future time/dates
an object's property
pointer - class
C Functionn
21. Why properties?
to give it someone else - or another object
safety - subclassability and makes code look more consistent with C structs
Functions
methods
22. Origin of a view's coordinate system is _ left
data source - view controller and delegate
retain
storage
upper
23. A _ handles touch events.
view
instance variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
an object's property
24. You use _ to implement the view
the array becomes an owner of that object and has a pointer to it.
@interface ClassName:SuperClassName
to give it someone else - or another object
CGRect bounds
25. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
UIView
only the class and subclasses can access
lowercase - uppercase
collection of collections - NSArray of an NSArray
26. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
a mechanism to enable specific callbacks
(id)initWithFrame:(CGRect)aRect;
self
CGRect bounds - GCPoint center - CGRect frame
27. 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.
Anytime you call a method with new - alloc or copy. You own and must release that object.
create a XIB file
initializer
Data Encapsulation
28. A command directed to an object is called an...
ready-made instances - instantiation from scratch - and nib based instantiation
message
receiver
type - name and value
29. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
nil
message
'getters' and 'setters'
30. 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 _.
receiving and handling events that are associated with it
nil
Encapsulation of functionality
ordered collection of objects - immutable
31. 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
parentViewController
has one root view controller
creates an instance of NSString that holds the character string
subview(s)
32. In the last line of an init method...
self
values
message
you always return the newly initialized object(return self)
33. Each _ has a 'designated' initializer method....
class
copy - retain
calling code that does the instantiation for you
@synthesize
34. 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
NSLog routine
Encapsulation of functionality
in the dealloc - or when a Controller's view is 'unloaded'
you must import the header file of that class
35. A pointer to the object being asked to execute a method
@synthesize
receiver[message]
message
wait until the loop finishes processing the event - at the end release it
36. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
data
parentViewController
the array becomes an owner of that object and has a pointer to it.
references to objects
37. At the top of any implementation file...
you must import the header file of that class
'getters' and 'setters'
wait until the loop finishes processing the event - at the end release it
variable scope - if defined within a block
38. 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
39. Class methods do not operate on an _ or have any access to _ variables....
size and position
variable scope - if defined within a block
only the innermost loop in which the break is executed is terminated
instance
40. Hold data and know nothing about the user interface
%d
Model Objects[Factory Worker]
values
you must import the header file of that class
41. super - is used...
creating an initializer
group of global functions already assigned to this class
its dataSource
for inheritance - adopting the superclasses implementation
42. What does autorelease mean?
create a XIB file
the array becomes an owner of that object and has a pointer to it.
calling code that does the instantiation for you
wait until the loop finishes processing the event - at the end release it
43. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
position
object
draw images
declaration and initialization of a variable
44. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
to give it someone else - or another object
Is a placeholder object
instance variables
45. Reference Counting...
pointers
You take ownership for an object you want to keep a pointer to
is called every time the event occurs
type - name and value
46. To load a Xib file manually - you use _
NSBundle
the array becomes an owner of that object and has a pointer to it.
%d
Data Encapsulation
47. A view is a subclass of _
accessors - individually we call them 'getters' and 'setters'
unordered collection of objects - objects must be unique
UIView
copy - retain
48. When an object is added to a NSMutableArray - that object is sent the message to retain;...
view controller
create a XIB file
implementation
the array becomes an owner of that object and has a pointer to it.
49. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
do so in viewDidLoad
reuse your cells
subview(s)
50. Core foundation classes are prefixed with _ and suffixed with _
parentViewController
CF - Ref
designated initializer
size and position