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 _...
references to objects
view controller's initialization method
Anytime you call a method with new - alloc or copy. You own and must release that object.
copy - retain
2. Categories are an Objective C way to add _ to an existing class without subclassing
'getters' and 'setters'
methods
instance variables
Data Encapsulation
3. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
subview(s)
methods for generating an instance
object
nil
4. When making a tableView always...
instance of UIView or one of its subclasses
will be ignored
pointers
reuse your cells
5. Prefixing a character string with an @ symbol [specific - NSString class]...
Anytime you call a method with new - alloc or copy. You own and must release that object.
creating an initializer
creates an instance of NSString that holds the character string
Encapsulation of functionality
6. Each _ has a 'designated' initializer method....
new instances of the class or retrieve some global property of the class.
class
define it in the implemenation file
instance variables
7. 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.
copy - retain
creates an instance of NSString that holds the character string
creating an initializer
data
8. A UITableView usually needs three different pieces...
position
class's
data source - delegate and view controller
CGFloat
9. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
10. In any application with UINavigationController - the navigation controller...
is called every time the event occurs
has one root view controller
reuse your cells
Anytime you call a method with new - alloc or copy. You own and must release that object.
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. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
Generic object wrapper for other non-object data types
to give it someone else - or another object
designated initializer
13. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
NSBundle
you always return the newly initialized object(return self)
to get and set variables
14. The class is responsible for what instance variables the instance has - but not the _ of those variables.
receiver - selector - arguments
data source - view controller and delegate
values
size and position
15. 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
NSBundle
lowercase - uppercase
a mechanism to enable specific callbacks
create a XIB file
16. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
draw images
object
reuse your cells
dealloc - is called on the object & the object's memory is returned to the heap
17. Class methods do not operate on an _ or have any access to _ variables....
is called every time the event occurs
cannot be added to an array
initializer
instance
18. UIImageView is used to...
to get and set variables
message
draw images
Hash table - Look up objects using a key to get a value.
19. A view represents a _ area
instance variables
rectangular
Is a placeholder object
object
20. You use _ to implement the view
you always return the newly initialized object(return self)
initializers
CGRect bounds
only the innermost loop in which the break is executed is terminated
21. 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.
creates an instance of NSString that holds the character string
superclass's
has one root view controller
instance variables
22. Object Oriented based analogue to a function is called a...
arguments[message]
pointer to an object
method
data source - view controller and delegate
23. Reducing details to focus on the core concepts
Abstraction
parentViewController
references to objects
callbacks
24. At the top of any implementation file...
you must import the header file of that class
designated initializer
cannot be added to an array
in the dealloc - or when a Controller's view is 'unloaded'
25. if you implemented both the setter and getter - the @synthesize method...
(id)initWithFrame:(CGRect)aRect;
define it in the implemenation file
you must import the header file of that class
will be ignored
26. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
a mechanism to enable specific callbacks
initializers
superclass's
the array becomes an owner of that object and has a pointer to it.
27. What does autorelease mean?
CGRect bounds
view controller
you always return the newly initialized object(return self)
wait until the loop finishes processing the event - at the end release it
28. NSValue - class...
is called every time the event occurs
do so in viewDidLoad
message
Generic object wrapper for other non-object data types
29. UITableViewController is a subclass of...
pointers
Ready-Made Instance
UIViewController
create a XIB file
30. After accessors have been defined in the header file...
variable scope - if defined within a block
they need to be defined in the implementation file
Core Graphics Framework
delegates and dataSources
31. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
wait until the loop finishes processing the event - at the end release it
instance of UIView or one of its subclasses
methods
32. Use of class methods - there are three...
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
is an instance of that class
alloc - singleton - informational utility method?
33. When an NSMutableArray is deallocated - it sends...
CGFloat
the message release to all its entries
Encapsulation of functionality
protocol
34. Why properties?
do so in viewDidLoad
Abstraction
Used to find the time right now or to store past or future time/dates
safety - subclassability and makes code look more consistent with C structs
35. In the last line of an init method...
UIView
CGRect bounds
receiver
you always return the newly initialized object(return self)
36. A method in a _ is required unless its preceded by an @optional.
view
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
protocol
dealloc - is called on the object & the object's memory is returned to the heap
37. initWithFrame: the designated initializer for UIView gives the view
class methods - initializers
size and position
view controller's initialization method
alloc - singleton - informational utility method?
38. If you have extra work you want to do on the view...
subview(s)
do so in viewDidLoad
pointer - class
references to objects
39. How do I implement my drawRect?
self
Core Graphics Framework
instance
type - name and value
40. 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
41. The only reason to temporarily own an object - is...
a mechanism to enable specific callbacks
to give it someone else - or another object
safety - subclassability and makes code look more consistent with C structs
you must import the header file of that class
42. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
storage
Hash table - Look up objects using a key to get a value.
lowercase - uppercase
only the class and subclasses can access
43. 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.
instance variables
to give it someone else - or another object
callbacks
implementation
44. Views have three properties related to their location and size: @property _ _;
only the class and subclasses can access
pointer to an object
CGRect bounds - GCPoint center - CGRect frame
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
45. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
'getters' and 'setters'
you always return the newly initialized object(return self)
Model Objects[Factory Worker]
self
46. Files Owner...
self
Is a placeholder object
receiver
the instance variables
47. Hold data and know nothing about the user interface
they need to be defined in the implementation file
Model Objects[Factory Worker]
class
data source - delegate and view controller
48. id is a...
draw images
delegates and dataSources
values
pointer to an object
49. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
C Functionn
copy - retain
only the innermost loop in which the break is executed is terminated
super - self
50. The root view controller typically creates the next view controller - and the next _ creates the one after that
instance of UIView or one of its subclasses
view controller
NSBundle
accessors - individually we call them 'getters' and 'setters'