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. Just a floating point number - but we always use it for graphics.
CGFloat
Object wrapper around primitive types like int - float - double - BOOl
CF - Ref
they need to be defined in the implementation file
2. Reducing details to focus on the core concepts
pointer to an object
Abstraction
they need to be defined in the implementation file
@interface ClassName:SuperClassName
3. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
alloc - singleton - informational utility method?
NSBundle
NSCoder
4. How do I implement my drawRect?
data
protocol
Core Graphics Framework
size and position
5. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
view controller's initialization method
the array relinquishes ownership of that object and no longer has a pointer to it
unordered collection of objects - objects must be unique
6. Views have three properties related to their location and size: @property _ _;
implementation
UIViewController
the instance variables
CGRect bounds - GCPoint center - CGRect frame
7. When making a tableView always...
pointers
Hash table - Look up objects using a key to get a value.
reuse your cells
values
8. Property List...
collection of collections - NSArray of an NSArray
CF - Ref
CGRect
the message release to all its entries
9. NSArray - class...
class's
will be ignored
message
ordered collection of objects - immutable
10. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
unordered collection of objects - objects must be unique
view controller's initialization method
Instantiation from scratch
Controller Objects[Managers]
11. 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
12. A UITableView usually needs three different pieces...
data source - delegate and view controller
new instances of the class or retrieve some global property of the class.
Used to find the time right now or to store past or future time/dates
an object's property
13. NSDate - class...
Model Objects[Factory Worker]
CGFloat
Used to find the time right now or to store past or future time/dates
view
14. Primitives and C Structures...
in the dealloc - or when a Controller's view is 'unloaded'
its dataSource
cannot be added to an array
declaration and initialization of a variable
15. NSArray - important methods...
the instance variables
Core Graphics Framework
Model Objects[Factory Worker]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
16. A view is an...
super - self
instance of UIView or one of its subclasses
Used to find the time right now or to store past or future time/dates
Maintenance of state
17. Class methods do not operate on an _ or have any access to _ variables....
viewWillDissapear: and viewWillAppear:
instance
Core Graphics Framework
arguments[message]
18. You use _ to implement the view
CGRect bounds
variable scope - if defined within a block
class methods - initializers
will be ignored
19. A command directed to an object is called an...
'getters' and 'setters'
message
cannot be added to an array
in the dealloc - or when a Controller's view is 'unloaded'
20. Execution of the break statement...
the instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
view
causes the program to immediately exit from the loop it is executing - whether its for - while or do
21. 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 _.
view
CGRect bounds - GCPoint center - CGRect frame
attributes - behavior
pointer - class
22. In Objective C arrays can hold only...
delegates and dataSources
references to objects
data source - delegate and view controller
retain
23. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
wait until the loop finishes processing the event - at the end release it
initializers
instance variable of an object is valid
collection of collections - NSArray of an NSArray
24. Values to be supplied as the parameters to the method
to give it someone else - or another object
arguments[message]
receiver[message]
draw images
25. The only reason to temporarily own an object - is...
to give it someone else - or another object
will be ignored
object
Continue
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
size and position
NSLog routine
a mechanism to enable specific callbacks
data source - view controller and delegate
27. A view represents a _ area
delegates and dataSources
Continue
rectangular
self
28. A message is always contained in square brackets - and has three parts
to get and set variables
Ready-Made Instance
receiver - selector - arguments
header files declare
29. NSSet...
'getters' and 'setters'
Core Graphics Framework
unordered collection of objects - objects must be unique
Is a placeholder object
30. When an object is added to a NSMutableArray - that object is sent the message to retain;...
array[class - NSMutableArray]
the array becomes an owner of that object and has a pointer to it.
creates an instance of NSString that holds the character string
NSCoder
31. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
Is a placeholder object
delegates and dataSources
CF - Ref
32. [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
implementation
has one root view controller
message
33. UIImageView is used to...
draw images
the instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
self
34. Ready-made instances...
array[class - NSMutableArray]
calling code that does the instantiation for you
draw images
will be ignored
35. At the top of any implementation file...
an object's property
Anytime you call a method with new - alloc or copy. You own and must release that object.
you must import the header file of that class
setPossessionName
36. Instance Variables by default are called @protected meaning...
instance variables
only the class and subclasses can access
storage
data source - delegate and view controller
37. initWithFrame: the designated initializer for UIView gives the view
lowercase - uppercase
data
size and position
(id)initWithFrame:(CGRect)aRect;
38. If the view has no subviews - create it programmatically; if it has subviews
Controller Objects[Managers]
view
viewWillDissapear: and viewWillAppear:
create a XIB file
39. Any individual object belonging to any class...
nil
ordered collection of objects - immutable
a mechanism to enable specific callbacks
is an instance of that class
40. 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 of UIView or one of its subclasses
parentViewController
cannot be added to an array
CGRect bounds
41. 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 _.
accessors - individually we call them 'getters' and 'setters'
super - self
nil
is an instance of that class
42. Name of the method to be executed
Used to find the time right now or to store past or future time/dates
draw images
selector[message]
receiving and handling events that are associated with it
43. NSDictionary...
pointers
NSLog routine
Hash table - Look up objects using a key to get a value.
class
44. UIViewController has several methods that get called at certain times...
Is a placeholder object
subview(s)
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
define it in the implemenation file
45. 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
46. Class methods typically either create
self
@interface ClassName:SuperClassName
CGRect bounds - GCPoint center - CGRect frame
new instances of the class or retrieve some global property of the class.
47. class methods...
NSCoder
instance variables
protocol
group of global functions already assigned to this class
48. In any application with UINavigationController - the navigation controller...
dealloc - is called on the object & the object's memory is returned to the heap
you always return the newly initialized object(return self)
super - self
has one root view controller
49. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
safety - subclassability and makes code look more consistent with C structs
delegates and dataSources
an object's property
NSCoder
50. Also if you send the NSObject the _ message - you own that object.
position
receiving and handling events that are associated with it
Instantiation from scratch
retain