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. 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.
lowercase - uppercase
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
to get and set variables
implementation
2. Number one use of protocols in iOS...
superclass's
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
pointer - class
delegates and dataSources
3. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
the message release to all its entries
first responder
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
4. NSDate - class...
is called every time the event occurs
accessors - individually we call them 'getters' and 'setters'
Used to find the time right now or to store past or future time/dates
class methods - initializers
5. Files Owner...
ordered collection of objects - immutable
callbacks
Is a placeholder object
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
6. NSDictionary...
header files declare
first responder
Hash table - Look up objects using a key to get a value.
class
7. Why properties?
its dataSource
safety - subclassability and makes code look more consistent with C structs
a single-array can contain objects of different types
array[class - NSMutableArray]
8. An instance is a device for maintaining state. It's a box for _ of data.
You take ownership for an object you want to keep a pointer to
storage
C Functionn
implementation
9. When do you take ownership?...
ready-made instances - instantiation from scratch - and nib based instantiation
its dataSource
NSBundle
Anytime you call a method with new - alloc or copy. You own and must release that object.
10. A view is an...
class
instance of UIView or one of its subclasses
view controller's initialization method
methods
11. In general - class methods tend to be factory methods - that is...
methods for generating an instance
will be ignored
data source - view controller and delegate
accessors - individually we call them 'getters' and 'setters'
12. When an object is added to a NSMutableArray - that object is sent the message to retain;...
an object's property
receiver[message]
the array becomes an owner of that object and has a pointer to it.
only the innermost loop in which the break is executed is terminated
13. A responder is responsible for...
dealloc - is called on the object & the object's memory is returned to the heap
type - name and value
Generic object wrapper for other non-object data types
receiving and handling events that are associated with it
14. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
initializer
You take ownership for an object you want to keep a pointer to
its dataSource
C Functionn
15. UIView - designated initializer...
Generic object wrapper for other non-object data types
@synthesize
(id)initWithFrame:(CGRect)aRect;
to get and set variables
16. A UITableView usually needs three different pieces...
data source - delegate and view controller
Core Graphics Framework
delegates and dataSources
data source - view controller and delegate
17. A method in a _ is required unless its preceded by an @optional.
Generic object wrapper for other non-object data types
receiver - selector - arguments
protocol
NSCoder
18. In a class method you cannot access...
view
the instance variables
Core Graphics Framework
only the class and subclasses can access
19. Use of class methods - there are three...
method
alloc - singleton - informational utility method?
CF - Ref
a mechanism to enable specific callbacks
20. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
receiver - selector - arguments
@synthesize
attributes - behavior
21. 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
22. 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
do so in viewDidLoad
Hash table - Look up objects using a key to get a value.
reuse your cells
Encapsulation of functionality
23. What does autorelease mean?
methods for generating an instance
object
wait until the loop finishes processing the event - at the end release it
instance
24. NSSet...
unordered collection of objects - objects must be unique
calling code that does the instantiation for you
NSLog routine
group of global functions already assigned to this class
25. super - is used...
nil
UIView
You take ownership for an object you want to keep a pointer to
for inheritance - adopting the superclasses implementation
26. 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
27. initWithFrame: the designated initializer for UIView gives the view
size and position
CF - Ref
collection of collections - NSArray of an NSArray
Ready-Made Instance
28. Any individual object belonging to any class...
calling code that does the instantiation for you
retain
is an instance of that class
only the class and subclasses can access
29. Prefixing a character string with an @ symbol [specific - NSString class]...
'getters' and 'setters'
creates an instance of NSString that holds the character string
Continue
Object wrapper around primitive types like int - float - double - BOOl
30. Instance Variables by default are called @protected meaning...
copy - retain
only the class and subclasses can access
only the innermost loop in which the break is executed is terminated
receiver[message]
31. In Objective C arrays can hold only...
instance variable of an object is valid
'getters' and 'setters'
define it in the implemenation file
references to objects
32. Also if you send the NSObject the _ message - you own that object.
retain
nil
(id)initWithFrame:(CGRect)aRect;
alloc - singleton - informational utility method?
33. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
UIViewController
Controller Objects[Managers]
Is a placeholder object
super - self
34. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
Functions
size and position
C Functionn
35. If you have extra work you want to do on the view...
super - self
Anytime you call a method with new - alloc or copy. You own and must release that object.
a single-array can contain objects of different types
do so in viewDidLoad
36. In Cocoa Touch - the table view asks another object _ what it should display...
to give it someone else - or another object
Controller Objects[Managers]
cannot be added to an array
its dataSource
37. Values to be supplied as the parameters to the method
in the dealloc - or when a Controller's view is 'unloaded'
arguments[message]
new instances of the class or retrieve some global property of the class.
unordered collection of objects - objects must be unique
38. Views have three properties related to their location and size: @property _ _;
delegates and dataSources
references to objects
CGRect bounds - GCPoint center - CGRect frame
view controller
39. 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
40. Just a floating point number - but we always use it for graphics.
attributes - behavior
CGFloat
has one root view controller
methods
41. 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.
a single-array can contain objects of different types
Data Encapsulation
instance
protocol
42. Each _ has a 'designated' initializer method....
class
viewWillDissapear: and viewWillAppear:
declaration and initialization of a variable
instance variables
43. All objects are accessed using...
initializer
CGRect bounds
pointers
declaration and initialization of a variable
44. 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...
safety - subclassability and makes code look more consistent with C structs
You take ownership for an object you want to keep a pointer to
Hash table - Look up objects using a key to get a value.
setPossessionName
45. A command directed to an object is called an...
message
alloc - singleton - informational utility method?
they need to be defined in the implementation file
unordered collection of objects - objects must be unique
46. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
pointer to an object
ordered collection of objects - immutable
rectangular
47. How do I implement my drawRect?
NSBundle
calling code that does the instantiation for you
CGRect bounds
Core Graphics Framework
48. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
%d
viewWillDissapear: and viewWillAppear:
define it in the implemenation file
49. At the top of any implementation file...
pointers
receiver - selector - arguments
you must import the header file of that class
%d
50. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
position
Controller Objects[Managers]
self
designated initializer