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. NSString objects are usually sent _ rather than _...
methods
copy - retain
its dataSource
Model Objects[Factory Worker]
2. Classes describe two things...
upper
accessors - individually we call them 'getters' and 'setters'
ordered collection of objects - immutable
attributes - behavior
3. NSString *s = @'Hello - World'; is an example of...
reuse your cells
declaration and initialization of a variable
the message release to all its entries
variable scope - if defined within a block
4. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
methods for generating an instance
lowercase - uppercase
instance variables
creating an initializer
5. If a break statement is executed from within a set of nested loops...
unordered collection of objects - objects must be unique
only the innermost loop in which the break is executed is terminated
designated initializer
message
6. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
Instantiation from scratch
only the innermost loop in which the break is executed is terminated
@synthesize
7. 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
pointer to an object
methods for generating an instance
@synthesize
parentViewController
8. Values to be supplied as the parameters to the method
Generic object wrapper for other non-object data types
arguments[message]
only the class and subclasses can access
instance variables
9. 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
10. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Controller Objects[Managers]
self
designated initializer
instance variable of an object is valid
11. UITableViewController is a subclass of...
array[class - NSMutableArray]
Maintenance of state
UIViewController
CGRect bounds - GCPoint center - CGRect frame
12. 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
13. NSArray - class...
ordered collection of objects - immutable
object
to give it someone else - or another object
message
14. 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
15. NSValue - class...
is called every time the event occurs
Generic object wrapper for other non-object data types
CGRect
C Functionn
16. If you have extra work you want to do on the view...
you always return the newly initialized object(return self)
Ready-Made Instance
do so in viewDidLoad
initializers
17. Use of class methods - there are three...
Maintenance of state
create a XIB file
alloc - singleton - informational utility method?
UIView
18. The only reason to temporarily own an object - is...
data source - view controller and delegate
to give it someone else - or another object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Hash table - Look up objects using a key to get a value.
19. Property List...
storage
declaration and initialization of a variable
NSLog routine
collection of collections - NSArray of an NSArray
20. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
superclass's
instance variables
rectangular
class
21. An instance is a device for maintaining state. It's a box for _ of data.
storage
CGRect bounds
to give it someone else - or another object
new instances of the class or retrieve some global property of the class.
22. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance of UIView or one of its subclasses
a mechanism to enable specific callbacks
to get and set variables
instance variables
23. class methods...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
type - name and value
group of global functions already assigned to this class
collection of collections - NSArray of an NSArray
24. 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
@interface ClassName:SuperClassName
a mechanism to enable specific callbacks
method
self
25. In a class method you cannot access...
the instance variables
to give it someone else - or another object
to get and set variables
type - name and value
26. Designated initializer makes sure that every...
values
Encapsulation of functionality
instance variable of an object is valid
creating an initializer
27. How do I implement my drawRect?
Maintenance of state
UIViewController
Core Graphics Framework
Controller Objects[Managers]
28. Prefixing a character string with an @ symbol [specific - NSString class]...
only the class and subclasses can access
method
creates an instance of NSString that holds the character string
NSCoder
29. 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
is an instance of that class
has one root view controller
to get and set variables
30. To load a Xib file manually - you use _
receiver
will be ignored
NSBundle
methods for generating an instance
31. Views have three properties related to their location and size: @property _ _;
message
header files declare
parentViewController
CGRect bounds - GCPoint center - CGRect frame
32. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
You take ownership for an object you want to keep a pointer to
CGRect
an object's property
UIView
33. When do you take ownership?...
receiving and handling events that are associated with it
only the class and subclasses can access
has one root view controller
Anytime you call a method with new - alloc or copy. You own and must release that object.
34. A view represents a _ area
view
Data Encapsulation
rectangular
is an instance of that class
35. NSDate - class...
first responder
ordered collection of objects - immutable
Ready-Made Instance
Used to find the time right now or to store past or future time/dates
36. Categories are an Objective C way to add _ to an existing class without subclassing
object
Generic object wrapper for other non-object data types
Abstraction
methods
37. A collection object - an ordered list of objects that can be accesed by an index
copy - retain
accessors - individually we call them 'getters' and 'setters'
array[class - NSMutableArray]
alloc - singleton - informational utility method?
38. 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....
safety - subclassability and makes code look more consistent with C structs
only the class and subclasses can access
define it in the implemenation file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
39. [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.
array[class - NSMutableArray]
Maintenance of state
data
do so in viewDidLoad
40. Core foundation classes are prefixed with _ and suffixed with _
the array relinquishes ownership of that object and no longer has a pointer to it
superclass's
view
CF - Ref
41. Reducing details to focus on the core concepts
Maintenance of state
methods for generating an instance
cannot be added to an array
Abstraction
42. if you implemented both the setter and getter - the @synthesize method...
will be ignored
class
ready-made instances - instantiation from scratch - and nib based instantiation
CGRect bounds - GCPoint center - CGRect frame
43. Reference Counting...
reuse your cells
ready-made instances - instantiation from scratch - and nib based instantiation
You take ownership for an object you want to keep a pointer to
accessors - individually we call them 'getters' and 'setters'
44. 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.
selector[message]
Abstraction
implementation
draw images
45. initWithFrame: the designated initializer for UIView gives the view
size and position
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGRect
method
46. Why properties?
delegates and dataSources
first responder
parentViewController
safety - subclassability and makes code look more consistent with C structs
47. Proceed through the loop - jump back to the top and check again
its dataSource
header files declare
cannot be added to an array
Continue
48. A UITableViewController can fill all three roles of...
first responder
data source - view controller and delegate
Hash table - Look up objects using a key to get a value.
ready-made instances - instantiation from scratch - and nib based instantiation
49. Also if you send the NSObject the _ message - you own that object.
subview(s)
class
retain
Core Graphics Framework
50. A _ handles touch events.
Instantiation from scratch
view
to give it someone else - or another object
Core Graphics Framework