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. 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]
arguments[message]
Maintenance of state
methods
2. To load a Xib file manually - you use _
Encapsulation of functionality
NSBundle
method
Ready-Made Instance
3. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
has one root view controller
implementation
instance
initializers
4. UIView - designated initializer...
super - self
(id)initWithFrame:(CGRect)aRect;
pointer - class
parentViewController
5. 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 _.
instance variable of an object is valid
nil
'getters' and 'setters'
Model Objects[Factory Worker]
6. 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
7. What does autorelease mean?
Generic object wrapper for other non-object data types
only the innermost loop in which the break is executed is terminated
wait until the loop finishes processing the event - at the end release it
size and position
8. In general - class methods tend to be factory methods - that is...
declaration and initialization of a variable
reuse your cells
selector[message]
methods for generating an instance
9. 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...
CGFloat
a mechanism to enable specific callbacks
Object wrapper around primitive types like int - float - double - BOOl
setPossessionName
10. In any application with UINavigationController - the navigation controller...
has one root view controller
lowercase - uppercase
implementation
Encapsulation of functionality
11. 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
12. 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.
storage
Data Encapsulation
CGFloat
methods
13. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
rectangular
CGRect
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
14. Any individual object belonging to any class...
Functions
will be ignored
is an instance of that class
arguments[message]
15. When making a tableView always...
create a XIB file
retain
reuse your cells
class methods - initializers
16. Designated initializer makes sure that every...
class
instance variable of an object is valid
Model Objects[Factory Worker]
lowercase - uppercase
17. Class methods typically either create
they need to be defined in the implementation file
instance variables
UIView
new instances of the class or retrieve some global property of the class.
18. Also - because arrays only hold a pointer to an object...
UIViewController
a single-array can contain objects of different types
method
initializers
19. A pointer to the object being asked to execute a method
to give it someone else - or another object
instance variables
receiver[message]
to get and set variables
20. Defining variables - three parts...
type - name and value
collection of collections - NSArray of an NSArray
size and position
a mechanism to enable specific callbacks
21. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
pointer to an object
do so in viewDidLoad
protocol
@interface ClassName:SuperClassName
22. Delegation is an object oriented approach to
wait until the loop finishes processing the event - at the end release it
callbacks
initializer
unordered collection of objects - objects must be unique
23. if you implemented both the setter and getter - the @synthesize method...
'getters' and 'setters'
Functions
will be ignored
method
24. After accessors have been defined in the header file...
accessors - individually we call them 'getters' and 'setters'
they need to be defined in the implementation file
a mechanism to enable specific callbacks
Functions
25. Classes describe two things...
pointer - class
attributes - behavior
for inheritance - adopting the superclasses implementation
nil
26. NSString *s = @'Hello - World'; is an example of...
define it in the implemenation file
do so in viewDidLoad
declaration and initialization of a variable
Functions
27. Files Owner...
dealloc - is called on the object & the object's memory is returned to the heap
in the dealloc - or when a Controller's view is 'unloaded'
subview(s)
Is a placeholder object
28. When an object is removed from an NSMutableArray - that object is sent the message release;...
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
Core Graphics Framework
accessors - individually we call them 'getters' and 'setters'
29. NSSet...
Used to find the time right now or to store past or future time/dates
reuse your cells
unordered collection of objects - objects must be unique
instance of UIView or one of its subclasses
30. UIViewController has several methods that get called at certain times...
in the dealloc - or when a Controller's view is 'unloaded'
rectangular
UIView
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
31. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
has one root view controller
receiver
implementation
32. 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.
group of global functions already assigned to this class
implementation
self
Maintenance of state
33. Core foundation classes are prefixed with _ and suffixed with _
object
CF - Ref
%d
NSCoder
34. You use _ to implement the view
Used to find the time right now or to store past or future time/dates
wait until the loop finishes processing the event - at the end release it
CGRect bounds
Core Graphics Framework
35. A UITableView usually needs three different pieces...
a single-array can contain objects of different types
data source - delegate and view controller
only the innermost loop in which the break is executed is terminated
Object wrapper around primitive types like int - float - double - BOOl
36. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
upper
'getters' and 'setters'
size and position
CGRect
37. 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.
methods for generating an instance
@synthesize
creating an initializer
delegates and dataSources
38. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
view controller
references to objects
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
39. A function in the objective c library that simply displays or logs it's argument
unordered collection of objects - objects must be unique
NSLog routine
storage
copy - retain
40. initWithFrame: the designated initializer for UIView gives the view
position
storage
size and position
lowercase - uppercase
41. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
receiving and handling events that are associated with it
CF - Ref
object
Controller Objects[Managers]
42. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
is called every time the event occurs
Ready-Made Instance
NSLog routine
viewWillDissapear: and viewWillAppear:
43. 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
designated initializer
view
a mechanism to enable specific callbacks
pointer to an object
44. @property declares - and _ implements the setter and getter...
header files declare
data source - view controller and delegate
@synthesize
cannot be added to an array
45. Primitives and C Structures...
Used to find the time right now or to store past or future time/dates
cannot be added to an array
creating an initializer
to give it someone else - or another object
46. Use of class methods - there are three...
only the class and subclasses can access
self
alloc - singleton - informational utility method?
is called every time the event occurs
47. NSDate - class...
Used to find the time right now or to store past or future time/dates
declaration and initialization of a variable
type - name and value
receiving and handling events that are associated with it
48. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
ready-made instances - instantiation from scratch - and nib based instantiation
viewWillDissapear: and viewWillAppear:
rectangular
49. 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....
define it in the implemenation file
the array becomes an owner of that object and has a pointer to it.
NSBundle
Anytime you call a method with new - alloc or copy. You own and must release that object.
50. In the last line of an init method...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
you always return the newly initialized object(return self)
Core Graphics Framework
to give it someone else - or another object