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 does autorelease mean?
variable scope - if defined within a block
wait until the loop finishes processing the event - at the end release it
copy - retain
retain
2. A method in a _ is required unless its preceded by an @optional.
the array relinquishes ownership of that object and no longer has a pointer to it
data source - view controller and delegate
alloc - singleton - informational utility method?
protocol
3. After accessors have been defined in the header file...
they need to be defined in the implementation file
subview(s)
'getters' and 'setters'
class's
4. 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.
Object wrapper around primitive types like int - float - double - BOOl
first responder
Instantiation from scratch
will be ignored
5. Why properties?
class's
Used to find the time right now or to store past or future time/dates
the array becomes an owner of that object and has a pointer to it.
safety - subclassability and makes code look more consistent with C structs
6. Designated initializer makes sure that every...
instance variable of an object is valid
receiving and handling events that are associated with it
message
CF - Ref
7. initWithFrame: the designated initializer for UIView gives the view
NSLog routine
size and position
Continue
superclass's
8. Prefixing a character string with an @ symbol [specific - NSString class]...
message
references to objects
creates an instance of NSString that holds the character string
will be ignored
9. A _ handles touch events.
view
@synthesize
type - name and value
lowercase - uppercase
10. 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
parentViewController
@synthesize
create a XIB file
in the dealloc - or when a Controller's view is 'unloaded'
11. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
CGRect
class methods - initializers
@interface ClassName:SuperClassName
delegates and dataSources
12. Class methods typically either create
NSLog routine
new instances of the class or retrieve some global property of the class.
Instantiation from scratch
Used to find the time right now or to store past or future time/dates
13. NSNumber - class...
methods
in the dealloc - or when a Controller's view is 'unloaded'
Object wrapper around primitive types like int - float - double - BOOl
the array becomes an owner of that object and has a pointer to it.
14. 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
15. NSDictionary...
Object wrapper around primitive types like int - float - double - BOOl
CF - Ref
Hash table - Look up objects using a key to get a value.
they need to be defined in the implementation file
16. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
copy - retain
You take ownership for an object you want to keep a pointer to
do so in viewDidLoad
17. At the top of any implementation file...
you must import the header file of that class
a mechanism to enable specific callbacks
Model Objects[Factory Worker]
lowercase - uppercase
18. 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.
Instantiation from scratch
Data Encapsulation
the array becomes an owner of that object and has a pointer to it.
position
19. 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
Encapsulation of functionality
Data Encapsulation
instance variables
CGRect bounds
20. Ready-made instances...
calling code that does the instantiation for you
variable scope - if defined within a block
Anytime you call a method with new - alloc or copy. You own and must release that object.
values
21. Each _ has a 'designated' initializer method....
class
Generic object wrapper for other non-object data types
you must import the header file of that class
subview(s)
22. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
arguments[message]
Controller Objects[Managers]
CF - Ref
only the innermost loop in which the break is executed is terminated
23. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
only the class and subclasses can access
data
instance variables
its dataSource
24. All objects are accessed using...
data
pointers
variable scope - if defined within a block
you always return the newly initialized object(return self)
25. NSSet...
(id)initWithFrame:(CGRect)aRect;
the instance variables
unordered collection of objects - objects must be unique
array[class - NSMutableArray]
26. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
draw images
unordered collection of objects - objects must be unique
an object's property
27. 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
Functions
copy - retain
CGRect bounds
arguments[message]
28. When an object is removed from an NSMutableArray - that object is sent the message release;...
ordered collection of objects - immutable
the array relinquishes ownership of that object and no longer has a pointer to it
the array becomes an owner of that object and has a pointer to it.
UIView
29. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
a single-array can contain objects of different types
self
header files declare
they need to be defined in the implementation file
30. NSString objects are usually sent _ rather than _...
copy - retain
cannot be added to an array
creates an instance of NSString that holds the character string
they need to be defined in the implementation file
31. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
you must import the header file of that class
Data Encapsulation
instance of UIView or one of its subclasses
Instantiation from scratch
32. A view is a subclass of _
instance
Core Graphics Framework
ready-made instances - instantiation from scratch - and nib based instantiation
UIView
33. UIView - designated initializer...
calling code that does the instantiation for you
Hash table - Look up objects using a key to get a value.
initializers
(id)initWithFrame:(CGRect)aRect;
34. 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 _.
values
Anytime you call a method with new - alloc or copy. You own and must release that object.
calling code that does the instantiation for you
nil
35. Core foundation classes are prefixed with _ and suffixed with _
values
delegates and dataSources
CF - Ref
the instance variables
36. Asking a class or object to execute a method
message
class's
Ready-Made Instance
Object wrapper around primitive types like int - float - double - BOOl
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....
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
ready-made instances - instantiation from scratch - and nib based instantiation
size and position
define it in the implemenation file
38. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
position
view
CGRect
you always return the newly initialized object(return self)
39. A UITableViewController can fill all three roles of...
data source - view controller and delegate
cannot be added to an array
Encapsulation of functionality
method
40. You use _ to implement the view
lowercase - uppercase
Hash table - Look up objects using a key to get a value.
CGRect bounds
alloc - singleton - informational utility method?
41. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
data source - view controller and delegate
(id)initWithFrame:(CGRect)aRect;
designated initializer
methods
42. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
retain
to give it someone else - or another object
wait until the loop finishes processing the event - at the end release it
43. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
create a XIB file
type - name and value
receiver
unordered collection of objects - objects must be unique
44. A collection object - an ordered list of objects that can be accesed by an index
only the class and subclasses can access
is an instance of that class
%d
array[class - NSMutableArray]
45. An instance is a device for maintaining state. It's a box for _ of data.
define it in the implemenation file
Instantiation from scratch
storage
data
46. 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.
safety - subclassability and makes code look more consistent with C structs
implementation
creating an initializer
to give it someone else - or another object
47. Number one use of protocols in iOS...
variable scope - if defined within a block
retain
receiving and handling events that are associated with it
delegates and dataSources
48. 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.
instance variables
lowercase - uppercase
NSBundle
view
49. Reducing details to focus on the core concepts
Abstraction
methods
Controller Objects[Managers]
create a XIB file
50. When an object is added to a NSMutableArray - that object is sent the message to retain;...
cannot be added to an array
the array becomes an owner of that object and has a pointer to it.
Abstraction
data