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. Each class picks one _ as it's designated initializer....
initializers
initializer
'getters' and 'setters'
do so in viewDidLoad
2. Reference Counting...
pointers
(id)initWithFrame:(CGRect)aRect;
You take ownership for an object you want to keep a pointer to
data
3. 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.
instance variables
callbacks
CGRect bounds - GCPoint center - CGRect frame
will be ignored
4. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
setPossessionName
rectangular
pointers
5. Whenever a UINavigationController is about to swap views - it sends out two messages
protocol
NSCoder
view controller's initialization method
viewWillDissapear: and viewWillAppear:
6. @property declares - and _ implements the setter and getter...
@synthesize
CGRect bounds
pointers
superclass's
7. When making a tableView always...
super - self
collection of collections - NSArray of an NSArray
reuse your cells
cannot be added to an array
8. Hold data and know nothing about the user interface
callbacks
the instance variables
Model Objects[Factory Worker]
Is a placeholder object
9. Object Oriented based analogue to a function is called a...
message
you always return the newly initialized object(return self)
method
Maintenance of state
10. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
storage
message
position
11. 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
12. Defining variables - three parts...
Encapsulation of functionality
you must import the header file of that class
Abstraction
type - name and value
13. A view represents a _ area
pointers
rectangular
variable scope - if defined within a block
class methods - initializers
14. If you have extra work you want to do on the view...
new instances of the class or retrieve some global property of the class.
only the class and subclasses can access
do so in viewDidLoad
is called every time the event occurs
15. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
references to objects
C Functionn
the array relinquishes ownership of that object and no longer has a pointer to it
define it in the implemenation file
16. A view is a subclass of _
references to objects
UIView
only the innermost loop in which the break is executed is terminated
view controller's initialization method
17. Number one use of protocols in iOS...
ordered collection of objects - immutable
methods for generating an instance
delegates and dataSources
will be ignored
18. Values to be supplied as the parameters to the method
arguments[message]
data source - view controller and delegate
they need to be defined in the implementation file
Controller Objects[Managers]
19. At the top of any implementation file...
storage
initializer
you must import the header file of that class
CF - Ref
20. Categories are an Objective C way to add _ to an existing class without subclassing
storage
methods
you must import the header file of that class
pointer to an object
21. 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 _.
class's
array[class - NSMutableArray]
you must import the header file of that class
subview(s)
22. id is a...
delegates and dataSources
pointer to an object
viewWillDissapear: and viewWillAppear:
setPossessionName
23. Why properties?
safety - subclassability and makes code look more consistent with C structs
you always return the newly initialized object(return self)
its dataSource
pointer - class
24. Prefixing a character string with an @ symbol [specific - NSString class]...
implementation
creates an instance of NSString that holds the character string
Anytime you call a method with new - alloc or copy. You own and must release that object.
the array relinquishes ownership of that object and no longer has a pointer to it
25. Also if you send the NSObject the _ message - you own that object.
only the innermost loop in which the break is executed is terminated
instance variables
retain
a mechanism to enable specific callbacks
26. UIImageView is used to...
draw images
a single-array can contain objects of different types
pointers
class's
27. 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.
creating an initializer
ordered collection of objects - immutable
define it in the implemenation file
you always return the newly initialized object(return self)
28. 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
29. 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
30. A command directed to an object is called an...
array[class - NSMutableArray]
message
header files declare
Abstraction
31. A view is an...
instance of UIView or one of its subclasses
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
calling code that does the instantiation for you
instance
32. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
Abstraction
Anytime you call a method with new - alloc or copy. You own and must release that object.
setPossessionName
variable scope - if defined within a block
33. If the view has no subviews - create it programmatically; if it has subviews
Continue
create a XIB file
the array becomes an owner of that object and has a pointer to it.
@interface ClassName:SuperClassName
34. In Cocoa Touch - the table view asks another object _ what it should display...
selector[message]
do so in viewDidLoad
its dataSource
Instantiation from scratch
35. @property - is using methods...
view controller's initialization method
to get and set variables
callbacks
CGRect bounds
36. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
initializers
designated initializer
only the innermost loop in which the break is executed is terminated
37. Typically the designated initializer has parameters for the most important and frequently used _ of an object
CGRect bounds - GCPoint center - CGRect frame
instance variables
UIViewController
Hash table - Look up objects using a key to get a value.
38. 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
Maintenance of state
message
is called every time the event occurs
Ready-Made Instance
39. NSDate - class...
CGRect bounds
instance variable of an object is valid
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Used to find the time right now or to store past or future time/dates
40. Any individual object belonging to any class...
Core Graphics Framework
is an instance of that class
data source - delegate and view controller
(id)initWithFrame:(CGRect)aRect;
41. A responder is responsible for...
dealloc - is called on the object & the object's memory is returned to the heap
data
Model Objects[Factory Worker]
receiving and handling events that are associated with it
42. You use _ to implement the view
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
data source - view controller and delegate
CGRect bounds
super - self
43. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
setPossessionName
to get and set variables
reuse your cells
44. Ready-made instances...
CF - Ref
Encapsulation of functionality
subview(s)
calling code that does the instantiation for you
45. 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.
implementation
creates an instance of NSString that holds the character string
delegates and dataSources
has one root view controller
46. Only exists within the statement block there defined - outside of the block is fine
Is a placeholder object
header files declare
variable scope - if defined within a block
copy - retain
47. 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
48. A UITableView usually needs three different pieces...
data source - delegate and view controller
unordered collection of objects - objects must be unique
receiver
C Functionn
49. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
variable scope - if defined within a block
NSLog routine
NSBundle
initializers
50. super - is used...
NSLog routine
'getters' and 'setters'
for inheritance - adopting the superclasses implementation
CGRect bounds - GCPoint center - CGRect frame