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. 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
2. In a class method you cannot access...
attributes - behavior
Object wrapper around primitive types like int - float - double - BOOl
the instance variables
upper
3. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
class's
Hash table - Look up objects using a key to get a value.
implementation
4. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
instance variables
create a XIB file
array[class - NSMutableArray]
5. @property - is using methods...
to get and set variables
selector[message]
size and position
receiving and handling events that are associated with it
6. In general - class methods tend to be factory methods - that is...
methods for generating an instance
You take ownership for an object you want to keep a pointer to
Instantiation from scratch
an object's property
7. 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
8. In the last line of an init method...
receiver - selector - arguments
dealloc - is called on the object & the object's memory is returned to the heap
you always return the newly initialized object(return self)
protocol
9. A UITableView usually needs three different pieces...
in the dealloc - or when a Controller's view is 'unloaded'
data source - delegate and view controller
NSLog routine
parentViewController
10. A callback is a function that is supplied in advance of an event - and...
to give it someone else - or another object
creating an initializer
is called every time the event occurs
position
11. Each class picks one _ as it's designated initializer....
initializer
CGRect bounds - GCPoint center - CGRect frame
safety - subclassability and makes code look more consistent with C structs
data source - view controller and delegate
12. if you implemented both the setter and getter - the @synthesize method...
size and position
will be ignored
Generic object wrapper for other non-object data types
an object's property
13. An instance is a device for maintaining state. It's a box for _ of data.
creating an initializer
storage
Data Encapsulation
C Functionn
14. NSDictionary...
Hash table - Look up objects using a key to get a value.
class
UIViewController
dealloc - is called on the object & the object's memory is returned to the heap
15. UIView - designated initializer...
selector[message]
upper
is called every time the event occurs
(id)initWithFrame:(CGRect)aRect;
16. Designated initializer makes sure that every...
viewWillDissapear: and viewWillAppear:
instance variable of an object is valid
size and position
view controller's initialization method
17. You use _ to implement the view
CGRect bounds
Abstraction
NSCoder
self
18. Values to be supplied as the parameters to the method
arguments[message]
callbacks
message
size and position
19. Hold data and know nothing about the user interface
parentViewController
C Functionn
Model Objects[Factory Worker]
Controller Objects[Managers]
20. Primitives and C Structures...
size and position
cannot be added to an array
header files declare
attributes - behavior
21. The only reason to temporarily own an object - is...
ready-made instances - instantiation from scratch - and nib based instantiation
to give it someone else - or another object
Core Graphics Framework
type - name and value
22. Class methods do not operate on an _ or have any access to _ variables....
instance
CGRect bounds
@interface ClassName:SuperClassName
size and position
23. In Objective C arrays can hold only...
references to objects
retain
size and position
position
24. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
receiving and handling events that are associated with it
safety - subclassability and makes code look more consistent with C structs
25. A _ handles touch events.
array[class - NSMutableArray]
class's
view
Hash table - Look up objects using a key to get a value.
26. super - is used...
superclass's
for inheritance - adopting the superclasses implementation
selector[message]
lowercase - uppercase
27. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
calling code that does the instantiation for you
receiving and handling events that are associated with it
cannot be added to an array
28. A command directed to an object is called an...
NSCoder
class
message
receiver[message]
29. NSSet...
unordered collection of objects - objects must be unique
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the instance variables
rectangular
30. 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
pointer to an object
references to objects
Instantiation from scratch
parentViewController
31. A responder is responsible for...
receiving and handling events that are associated with it
NSCoder
selector[message]
CGRect
32. Delegation is an object oriented approach to
reuse your cells
alloc - singleton - informational utility method?
callbacks
collection of collections - NSArray of an NSArray
33. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
instance variables
'getters' and 'setters'
will be ignored
34. The root view controller typically creates the next view controller - and the next _ creates the one after that
creating an initializer
the instance variables
collection of collections - NSArray of an NSArray
view controller
35. 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
36. Object Oriented based analogue to a function is called a...
method
declaration and initialization of a variable
do so in viewDidLoad
ready-made instances - instantiation from scratch - and nib based instantiation
37. 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....
view controller
setPossessionName
define it in the implemenation file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
38. In any application with UINavigationController - the navigation controller...
cannot be added to an array
NSBundle
has one root view controller
receiver - selector - arguments
39. 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
type - name and value
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
is called every time the event occurs
Functions
40. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
methods for generating an instance
Ready-Made Instance
view controller
Controller Objects[Managers]
41. 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...
object
@interface ClassName:SuperClassName
setPossessionName
delegates and dataSources
42. If a break statement is executed from within a set of nested loops...
parentViewController
Anytime you call a method with new - alloc or copy. You own and must release that object.
only the innermost loop in which the break is executed is terminated
calling code that does the instantiation for you
43. NSValue - class...
instance variables
object
Generic object wrapper for other non-object data types
receiving and handling events that are associated with it
44. Just a floating point number - but we always use it for graphics.
type - name and value
CGFloat
class's
collection of collections - NSArray of an NSArray
45. When an NSMutableArray is deallocated - it sends...
CGFloat
Core Graphics Framework
instance variables
the message release to all its entries
46. Whenever a UINavigationController is about to swap views - it sends out two messages
methods
viewWillDissapear: and viewWillAppear:
%d
storage
47. Any individual object belonging to any class...
is called every time the event occurs
CGRect
is an instance of that class
data source - delegate and view controller
48. 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 _.
C Functionn
callbacks
nil
viewWillDissapear: and viewWillAppear:
49. 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.
for inheritance - adopting the superclasses implementation
first responder
the array relinquishes ownership of that object and no longer has a pointer to it
implementation
50. Why properties?
reuse your cells
safety - subclassability and makes code look more consistent with C structs
instance of UIView or one of its subclasses
object