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. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
receiving and handling events that are associated with it
declaration and initialization of a variable
Object wrapper around primitive types like int - float - double - BOOl
2. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
is an instance of that class
C Functionn
receiver
receiver - selector - arguments
3. Designated initializer makes sure that every...
ordered collection of objects - immutable
instance variable of an object is valid
the message release to all its entries
method
4. class methods...
Maintenance of state
CGFloat
Used to find the time right now or to store past or future time/dates
group of global functions already assigned to this class
5. Property List...
do so in viewDidLoad
collection of collections - NSArray of an NSArray
to get and set variables
header files declare
6. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
unordered collection of objects - objects must be unique
cannot be added to an array
group of global functions already assigned to this class
7. The class is responsible for what instance variables the instance has - but not the _ of those variables.
do so in viewDidLoad
receiver
values
reuse your cells
8. A UITableView usually needs three different pieces...
data source - delegate and view controller
wait until the loop finishes processing the event - at the end release it
a single-array can contain objects of different types
instance of UIView or one of its subclasses
9. Also if you send the NSObject the _ message - you own that object.
super - self
initializers
instance variable of an object is valid
retain
10. NSDate - class...
its dataSource
Used to find the time right now or to store past or future time/dates
for inheritance - adopting the superclasses implementation
NSBundle
11. The only reason to temporarily own an object - is...
Abstraction
to give it someone else - or another object
view
rectangular
12. NSString *s = @'Hello - World'; is an example of...
object
first responder
creates an instance of NSString that holds the character string
declaration and initialization of a variable
13. In Objective C arrays can hold only...
Encapsulation of functionality
only the innermost loop in which the break is executed is terminated
references to objects
you must import the header file of that class
14. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
methods for generating an instance
pointers
class
15. A view is an...
data
accessors - individually we call them 'getters' and 'setters'
instance of UIView or one of its subclasses
causes the program to immediately exit from the loop it is executing - whether its for - while or do
16. 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
17. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
CGRect bounds
accessors - individually we call them 'getters' and 'setters'
only the innermost loop in which the break is executed is terminated
NSCoder
18. Views have three properties related to their location and size: @property _ _;
implementation
CGRect bounds - GCPoint center - CGRect frame
%d
the message release to all its entries
19. Instance Variables by default are called @protected meaning...
array[class - NSMutableArray]
the array relinquishes ownership of that object and no longer has a pointer to it
arguments[message]
only the class and subclasses can access
20. In a class method you cannot access...
receiver
safety - subclassability and makes code look more consistent with C structs
the instance variables
you always return the newly initialized object(return self)
21. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
declaration and initialization of a variable
Instantiation from scratch
pointer - class
22. What does autorelease mean?
is called every time the event occurs
wait until the loop finishes processing the event - at the end release it
object
Instantiation from scratch
23. The root view controller typically creates the next view controller - and the next _ creates the one after that
draw images
wait until the loop finishes processing the event - at the end release it
view controller
retain
24. You use _ to implement the view
CGRect bounds
reuse your cells
ready-made instances - instantiation from scratch - and nib based instantiation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
25. 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
Used to find the time right now or to store past or future time/dates
setPossessionName
Controller Objects[Managers]
Maintenance of state
26. A collection object - an ordered list of objects that can be accesed by an index
Model Objects[Factory Worker]
array[class - NSMutableArray]
values
Is a placeholder object
27. Delegation is an object oriented approach to
message
array[class - NSMutableArray]
parentViewController
callbacks
28. NSDictionary...
Hash table - Look up objects using a key to get a value.
do so in viewDidLoad
header files declare
Instantiation from scratch
29. Each _ has a 'designated' initializer method....
initializer
class
arguments[message]
creating an initializer
30. Use of class methods - there are three...
alloc - singleton - informational utility method?
CGRect bounds - GCPoint center - CGRect frame
receiver[message]
dealloc - is called on the object & the object's memory is returned to the heap
31. Class methods typically either create
method
new instances of the class or retrieve some global property of the class.
accessors - individually we call them 'getters' and 'setters'
you always return the newly initialized object(return self)
32. A message is always contained in square brackets - and has three parts
draw images
receiver - selector - arguments
unordered collection of objects - objects must be unique
subview(s)
33. When an NSMutableArray is deallocated - it sends...
data source - view controller and delegate
Anytime you call a method with new - alloc or copy. You own and must release that object.
view
the message release to all its entries
34. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
delegates and dataSources
UIViewController
designated initializer
CF - Ref
35. A method in a _ is required unless its preceded by an @optional.
protocol
to get and set variables
pointers
method
36. Classes describe two things...
to get and set variables
to give it someone else - or another object
attributes - behavior
new instances of the class or retrieve some global property of the class.
37. Typically the designated initializer has parameters for the most important and frequently used _ of an object
reuse your cells
instance variables
Core Graphics Framework
Maintenance of state
38. A _ handles touch events.
arguments[message]
attributes - behavior
calling code that does the instantiation for you
view
39. In general - class methods tend to be factory methods - that is...
to give it someone else - or another object
Hash table - Look up objects using a key to get a value.
receiving and handling events that are associated with it
methods for generating an instance
40. UITableViewController is a subclass of...
do so in viewDidLoad
protocol
UIViewController
initializers
41. When an object is added to a NSMutableArray - that object is sent the message to retain;...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the array becomes an owner of that object and has a pointer to it.
UIView
retain
42. Only exists within the statement block there defined - outside of the block is fine
in the dealloc - or when a Controller's view is 'unloaded'
to give it someone else - or another object
object
variable scope - if defined within a block
43. Categories are an Objective C way to add _ to an existing class without subclassing
@synthesize
collection of collections - NSArray of an NSArray
size and position
methods
44. Three ways instances are created...
You take ownership for an object you want to keep a pointer to
is an instance of that class
ready-made instances - instantiation from scratch - and nib based instantiation
define it in the implemenation file
45. A responder is responsible for...
parentViewController
receiving and handling events that are associated with it
to give it someone else - or another object
create a XIB file
46. 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.
has one root view controller
Generic object wrapper for other non-object data types
implementation
nil
47. if you implemented both the setter and getter - the @synthesize method...
Generic object wrapper for other non-object data types
Continue
will be ignored
upper
48. 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
cannot be added to an array
class's
a mechanism to enable specific callbacks
CGRect
49. 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
50. NSSet...
variable scope - if defined within a block
receiver
unordered collection of objects - objects must be unique
'getters' and 'setters'