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. Reducing details to focus on the core concepts
Abstraction
an object's property
superclass's
Used to find the time right now or to store past or future time/dates
2. Values to be supplied as the parameters to the method
creating an initializer
upper
arguments[message]
creates an instance of NSString that holds the character string
3. Property List...
methods
collection of collections - NSArray of an NSArray
pointer - class
the array relinquishes ownership of that object and no longer has a pointer to it
4. Object Oriented based analogue to a function is called a...
method
a mechanism to enable specific callbacks
first responder
delegates and dataSources
5. In the last line of an init method...
parentViewController
an object's property
will be ignored
you always return the newly initialized object(return self)
6. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
initializers
rectangular
Maintenance of state
7. UIImageView is used to...
view controller's initialization method
Maintenance of state
methods
draw images
8. NSDate - class...
is an instance of that class
cannot be added to an array
delegates and dataSources
Used to find the time right now or to store past or future time/dates
9. Three ways instances are created...
instance
ready-made instances - instantiation from scratch - and nib based instantiation
UIView
wait until the loop finishes processing the event - at the end release it
10. Prefixing a character string with an @ symbol [specific - NSString class]...
data
position
ordered collection of objects - immutable
creates an instance of NSString that holds the character string
11. Classes describe two things...
attributes - behavior
unordered collection of objects - objects must be unique
You take ownership for an object you want to keep a pointer to
the array relinquishes ownership of that object and no longer has a pointer to it
12. When an object is removed from an NSMutableArray - that object is sent the message release;...
You take ownership for an object you want to keep a pointer to
method
Is a placeholder object
the array relinquishes ownership of that object and no longer has a pointer to it
13. When do you take ownership?...
initializers
group of global functions already assigned to this class
Anytime you call a method with new - alloc or copy. You own and must release that object.
Encapsulation of functionality
14. 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
parentViewController
message
protocol
its dataSource
15. When making a tableView always...
reuse your cells
ready-made instances - instantiation from scratch - and nib based instantiation
collection of collections - NSArray of an NSArray
lowercase - uppercase
16. class methods...
array[class - NSMutableArray]
group of global functions already assigned to this class
class methods - initializers
view
17. The class is responsible for what instance variables the instance has - but not the _ of those variables.
CF - Ref
to get and set variables
size and position
values
18. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
the array relinquishes ownership of that object and no longer has a pointer to it
Functions
to get and set variables
%d
19. if you implemented both the setter and getter - the @synthesize method...
view controller's initialization method
is called every time the event occurs
setPossessionName
will be ignored
20. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
type - name and value
data
object
do so in viewDidLoad
21. 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...
the array relinquishes ownership of that object and no longer has a pointer to it
Controller Objects[Managers]
setPossessionName
define it in the implemenation file
22. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
is an instance of that class
instance variables
initializers
super - self
23. 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
24. Designated initializer makes sure that every...
instance variable of an object is valid
type - name and value
only the class and subclasses can access
instance
25. Core foundation classes are prefixed with _ and suffixed with _
callbacks
data
instance variable of an object is valid
CF - Ref
26. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
collection of collections - NSArray of an NSArray
copy - retain
attributes - behavior
27. A callback is a function that is supplied in advance of an event - and...
values
is called every time the event occurs
rectangular
Is a placeholder object
28. When an object is added to a NSMutableArray - that object is sent the message to retain;...
methods
upper
draw images
the array becomes an owner of that object and has a pointer to it.
29. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
30. 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
31. A UITableView usually needs three different pieces...
data source - delegate and view controller
data
Data Encapsulation
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
32. If the view has no subviews - create it programmatically; if it has subviews
creates an instance of NSString that holds the character string
data
nil
create a XIB file
33. 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.
the message release to all its entries
in the dealloc - or when a Controller's view is 'unloaded'
implementation
receiving and handling events that are associated with it
34. 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.
NSCoder
creating an initializer
for inheritance - adopting the superclasses implementation
selector[message]
35. id is a...
Functions
delegates and dataSources
Used to find the time right now or to store past or future time/dates
pointer to an object
36. 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 _.
Functions
Data Encapsulation
a mechanism to enable specific callbacks
nil
37. After accessors have been defined in the header file...
draw images
Maintenance of state
they need to be defined in the implementation file
pointer to an object
38. Primitives and C Structures...
cannot be added to an array
Controller Objects[Managers]
attributes - behavior
do so in viewDidLoad
39. A view is a subclass of _
initializers
message
data
UIView
40. Instance Variables by default are called @protected meaning...
the instance variables
only the class and subclasses can access
Data Encapsulation
values
41. Class methods typically either create
for inheritance - adopting the superclasses implementation
new instances of the class or retrieve some global property of the class.
object
setPossessionName
42. Class methods do not operate on an _ or have any access to _ variables....
instance
pointer to an object
a single-array can contain objects of different types
'getters' and 'setters'
43. A pointer to the object being asked to execute a method
receiver[message]
is called every time the event occurs
data source - view controller and delegate
Object wrapper around primitive types like int - float - double - BOOl
44. 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....
new instances of the class or retrieve some global property of the class.
define it in the implemenation file
collection of collections - NSArray of an NSArray
Core Graphics Framework
45. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
class
initializer
lowercase - uppercase
46. The integer prefix is...
Instantiation from scratch
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver
%d
47. 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)
view
designated initializer
ready-made instances - instantiation from scratch - and nib based instantiation
48. A function in the objective c library that simply displays or logs it's argument
NSLog routine
method
CGRect
Maintenance of state
49. A view is an...
implementation
message
initializers
instance of UIView or one of its subclasses
50. 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.
create a XIB file
nil
its dataSource
instance variables