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. Reference Counting...
accessors - individually we call them 'getters' and 'setters'
instance of UIView or one of its subclasses
You take ownership for an object you want to keep a pointer to
Functions
2. Class methods typically either create
pointer to an object
Model Objects[Factory Worker]
%d
new instances of the class or retrieve some global property of the class.
3. An instance is a device for maintaining state. It's a box for _ of data.
values
storage
class
methods
4. 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 _.
reuse your cells
Encapsulation of functionality
instance variable of an object is valid
nil
5. NSArray - important methods...
@synthesize
will be ignored
%d
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
6. Defining variables - three parts...
view controller
type - name and value
view
only the innermost loop in which the break is executed is terminated
7. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Used to find the time right now or to store past or future time/dates
designated initializer
ready-made instances - instantiation from scratch - and nib based instantiation
CGFloat
8. A UITableViewController can fill all three roles of...
alloc - singleton - informational utility method?
data source - view controller and delegate
Maintenance of state
class's
9. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
CF - Ref
collection of collections - NSArray of an NSArray
CGRect bounds - GCPoint center - CGRect frame
10. Name of the method to be executed
selector[message]
setPossessionName
'getters' and 'setters'
Object wrapper around primitive types like int - float - double - BOOl
11. Delegation is an object oriented approach to
(id)initWithFrame:(CGRect)aRect;
declaration and initialization of a variable
receiver
callbacks
12. Origin of a view's coordinate system is _ left
is called every time the event occurs
data source - view controller and delegate
upper
causes the program to immediately exit from the loop it is executing - whether its for - while or do
13. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
the array relinquishes ownership of that object and no longer has a pointer to it
Controller Objects[Managers]
parentViewController
subview(s)
14. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
declaration and initialization of a variable
callbacks
Instantiation from scratch
to get and set variables
15. When an object is added to a NSMutableArray - that object is sent the message to retain;...
its dataSource
the array becomes an owner of that object and has a pointer to it.
message
to give it someone else - or another object
16. NSArray - class...
ordered collection of objects - immutable
data
instance variables
Anytime you call a method with new - alloc or copy. You own and must release that object.
17. 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.
CGRect bounds
creating an initializer
Core Graphics Framework
methods
18. At the top of any implementation file...
Generic object wrapper for other non-object data types
you must import the header file of that class
the array relinquishes ownership of that object and no longer has a pointer to it
references to objects
19. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
position
Anytime you call a method with new - alloc or copy. You own and must release that object.
a mechanism to enable specific callbacks
20. Proceed through the loop - jump back to the top and check again
is called every time the event occurs
CGRect bounds
has one root view controller
Continue
21. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
reuse your cells
the message release to all its entries
to get and set variables
header files declare
22. 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
23. NSSet...
CGRect
superclass's
@synthesize
unordered collection of objects - objects must be unique
24. Center and frame are used to _ your view
a mechanism to enable specific callbacks
position
view controller's initialization method
Functions
25. 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.
ordered collection of objects - immutable
implementation
receiver - selector - arguments
to get and set variables
26. A pointer to the object being asked to execute a method
UIViewController
receiver[message]
for inheritance - adopting the superclasses implementation
receiver - selector - arguments
27. A method in a _ is required unless its preceded by an @optional.
arguments[message]
protocol
calling code that does the instantiation for you
data source - view controller and delegate
28. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
type - name and value
parentViewController
CGRect bounds
29. Classes describe two things...
they need to be defined in the implementation file
attributes - behavior
receiver[message]
message
30. If the view has no subviews - create it programmatically; if it has subviews
an object's property
in the dealloc - or when a Controller's view is 'unloaded'
create a XIB file
the array becomes an owner of that object and has a pointer to it.
31. When making a tableView always...
delegates and dataSources
reuse your cells
retain
size and position
32. Property List...
instance of UIView or one of its subclasses
collection of collections - NSArray of an NSArray
in the dealloc - or when a Controller's view is 'unloaded'
view
33. 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
create a XIB file
Functions
class's
delegates and dataSources
34. If you have extra work you want to do on the view...
methods for generating an instance
do so in viewDidLoad
instance variables
message
35. 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
accessors - individually we call them 'getters' and 'setters'
instance variables
(id)initWithFrame:(CGRect)aRect;
parentViewController
36. A function in the objective c library that simply displays or logs it's argument
attributes - behavior
NSLog routine
message
declaration and initialization of a variable
37. Core foundation classes are prefixed with _ and suffixed with _
create a XIB file
pointers
nil
CF - Ref
38. The root view controller typically creates the next view controller - and the next _ creates the one after that
object
view controller
safety - subclassability and makes code look more consistent with C structs
array[class - NSMutableArray]
39. Views have three properties related to their location and size: @property _ _;
nil
CGRect bounds - GCPoint center - CGRect frame
UIViewController
CF - Ref
40. super - is used...
for inheritance - adopting the superclasses implementation
data source - delegate and view controller
new instances of the class or retrieve some global property of the class.
view
41. A view is an...
creating an initializer
its dataSource
instance of UIView or one of its subclasses
an object's property
42. Files Owner...
instance variables
Ready-Made Instance
Is a placeholder object
attributes - behavior
43. A callback is a function that is supplied in advance of an event - and...
you always return the newly initialized object(return self)
is called every time the event occurs
(id)initWithFrame:(CGRect)aRect;
self
44. 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.
you always return the newly initialized object(return self)
receiver - selector - arguments
pointer to an object
instance variables
45. 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
46. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
class methods - initializers
dealloc - is called on the object & the object's memory is returned to the heap
receiving and handling events that are associated with it
47. In a class method you cannot access...
Ready-Made Instance
the instance variables
method
Model Objects[Factory Worker]
48. A view represents a _ area
cannot be added to an array
rectangular
declaration and initialization of a variable
object
49. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
will be ignored
pointer - class
is an instance of that class
CGFloat
50. Three ways instances are created...
%d
@synthesize
ready-made instances - instantiation from scratch - and nib based instantiation
Core Graphics Framework