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. 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
a mechanism to enable specific callbacks
is called every time the event occurs
Core Graphics Framework
parentViewController
2. How do I implement my drawRect?
data source - delegate and view controller
Core Graphics Framework
%d
only the innermost loop in which the break is executed is terminated
3. A pointer to the object being asked to execute a method
receiver[message]
data
dealloc - is called on the object & the object's memory is returned to the heap
UIView
4. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
receiver - selector - arguments
class's
safety - subclassability and makes code look more consistent with C structs
NSCoder
5. Defining variables - three parts...
pointers
header files declare
calling code that does the instantiation for you
type - name and value
6. When do you take ownership?...
Hash table - Look up objects using a key to get a value.
references to objects
position
Anytime you call a method with new - alloc or copy. You own and must release that object.
7. A function in the objective c library that simply displays or logs it's argument
variable scope - if defined within a block
NSCoder
causes the program to immediately exit from the loop it is executing - whether its for - while or do
NSLog routine
8. A _ handles touch events.
%d
is called every time the event occurs
pointer - class
view
9. 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 _.
the instance variables
pointer - class
pointer to an object
%d
10. 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
11. Whenever a UINavigationController is about to swap views - it sends out two messages
CGRect bounds - GCPoint center - CGRect frame
parentViewController
viewWillDissapear: and viewWillAppear:
is called every time the event occurs
12. 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....
unordered collection of objects - objects must be unique
define it in the implemenation file
is an instance of that class
storage
13. Number one use of protocols in iOS...
pointer to an object
nil
Used to find the time right now or to store past or future time/dates
delegates and dataSources
14. Categories are an Objective C way to add _ to an existing class without subclassing
Ready-Made Instance
declaration and initialization of a variable
methods
message
15. 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.
dealloc - is called on the object & the object's memory is returned to the heap
new instances of the class or retrieve some global property of the class.
implementation
only the innermost loop in which the break is executed is terminated
16. Object Oriented based analogue to a function is called a...
do so in viewDidLoad
method
delegates and dataSources
instance variable of an object is valid
17. 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 _.
super - self
subview(s)
'getters' and 'setters'
nil
18. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
accessors - individually we call them 'getters' and 'setters'
storage
unordered collection of objects - objects must be unique
19. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
rectangular
implementation
create a XIB file
20. Only exists within the statement block there defined - outside of the block is fine
declaration and initialization of a variable
position
view controller
variable scope - if defined within a block
21. Center and frame are used to _ your view
CF - Ref
position
initializers
accessors - individually we call them 'getters' and 'setters'
22. When an NSMutableArray is deallocated - it sends...
view
self
the message release to all its entries
CGRect
23. Ready-made instances...
calling code that does the instantiation for you
is an instance of that class
alloc - singleton - informational utility method?
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
24. NSValue - class...
Generic object wrapper for other non-object data types
calling code that does the instantiation for you
CGRect
type - name and value
25. When an object is removed from an NSMutableArray - that object is sent the message release;...
pointer to an object
the array relinquishes ownership of that object and no longer has a pointer to it
instance of UIView or one of its subclasses
subview(s)
26. Each class picks one _ as it's designated initializer....
references to objects
viewWillDissapear: and viewWillAppear:
initializer
Controller Objects[Managers]
27. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
NSBundle
message
cannot be added to an array
designated initializer
28. Class methods do not operate on an _ or have any access to _ variables....
instance
(id)initWithFrame:(CGRect)aRect;
methods for generating an instance
Hash table - Look up objects using a key to get a value.
29. 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
Model Objects[Factory Worker]
references to objects
creating an initializer
30. Any individual object belonging to any class...
define it in the implemenation file
pointer to an object
data
is an instance of that class
31. Also - because arrays only hold a pointer to an object...
attributes - behavior
a single-array can contain objects of different types
object
position
32. A view is an...
reuse your cells
CGRect bounds
instance of UIView or one of its subclasses
ready-made instances - instantiation from scratch - and nib based instantiation
33. Property List...
Ready-Made Instance
safety - subclassability and makes code look more consistent with C structs
collection of collections - NSArray of an NSArray
creating an initializer
34. In the last line of an init method...
You take ownership for an object you want to keep a pointer to
you always return the newly initialized object(return self)
data source - view controller and delegate
will be ignored
35. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
they need to be defined in the implementation file
instance variables
viewWillDissapear: and viewWillAppear:
36. 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
instance
delegates and dataSources
parentViewController
'getters' and 'setters'
37. A message is always contained in square brackets - and has three parts
values
callbacks
receiver - selector - arguments
Maintenance of state
38. initWithFrame: the designated initializer for UIView gives the view
@synthesize
size and position
its dataSource
reuse your cells
39. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
CGRect bounds
Encapsulation of functionality
Hash table - Look up objects using a key to get a value.
lowercase - uppercase
40. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
wait until the loop finishes processing the event - at the end release it
@synthesize
collection of collections - NSArray of an NSArray
CGRect
41. UIView - designated initializer...
ordered collection of objects - immutable
upper
(id)initWithFrame:(CGRect)aRect;
NSLog routine
42. The only reason to temporarily own an object - is...
to give it someone else - or another object
create a XIB file
its dataSource
calling code that does the instantiation for you
43. UIViewController has several methods that get called at certain times...
references to objects
class methods - initializers
define it in the implemenation file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
44. Also if you send the NSObject the _ message - you own that object.
retain
cannot be added to an array
they need to be defined in the implementation file
NSCoder
45. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Hash table - Look up objects using a key to get a value.
C Functionn
is called every time the event occurs
CGRect
46. Delegation is an object oriented approach to
the instance variables
first responder
callbacks
type - name and value
47. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Maintenance of state
Encapsulation of functionality
creates an instance of NSString that holds the character string
size and position
48. A view represents a _ area
Model Objects[Factory Worker]
rectangular
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is an instance of that class
49. If the view has no subviews - create it programmatically; if it has subviews
copy - retain
ready-made instances - instantiation from scratch - and nib based instantiation
create a XIB file
instance variables
50. 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