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 UITableViewController can fill all three roles of...
message
data source - view controller and delegate
CGRect
Data Encapsulation
2. When making a tableView always...
Functions
message
reuse your cells
position
3. super - is used...
retain
for inheritance - adopting the superclasses implementation
an object's property
upper
4. Defining variables - three parts...
%d
receiver[message]
receiver
type - name and value
5. A pointer to the object being asked to execute a method
receiver[message]
the message release to all its entries
Abstraction
you always return the newly initialized object(return self)
6. Each _ has a 'designated' initializer method....
@synthesize
cannot be added to an array
class
storage
7. 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.
storage
creating an initializer
@interface ClassName:SuperClassName
Anytime you call a method with new - alloc or copy. You own and must release that object.
8. class methods...
Hash table - Look up objects using a key to get a value.
group of global functions already assigned to this class
lowercase - uppercase
receiver - selector - arguments
9. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
calling code that does the instantiation for you
designated initializer
an object's property
create a XIB file
10. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
(id)initWithFrame:(CGRect)aRect;
initializers
view
Instantiation from scratch
11. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
header files declare
you must import the header file of that class
Controller Objects[Managers]
a mechanism to enable specific callbacks
12. NSArray - important methods...
cannot be added to an array
only the class and subclasses can access
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
you must import the header file of that class
13. In general - class methods tend to be factory methods - that is...
view
methods for generating an instance
instance of UIView or one of its subclasses
subview(s)
14. If you have extra work you want to do on the view...
CGRect
do so in viewDidLoad
arguments[message]
receiver - selector - arguments
15. Number one use of protocols in iOS...
CGRect bounds - GCPoint center - CGRect frame
delegates and dataSources
methods for generating an instance
Hash table - Look up objects using a key to get a value.
16. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
UIView
pointer to an object
collection of collections - NSArray of an NSArray
C Functionn
17. When an object is removed from an NSMutableArray - that object is sent the message release;...
pointers
Ready-Made Instance
the array relinquishes ownership of that object and no longer has a pointer to it
group of global functions already assigned to this class
18. Origin of a view's coordinate system is _ left
upper
dealloc - is called on the object & the object's memory is returned to the heap
rectangular
ready-made instances - instantiation from scratch - and nib based instantiation
19. A callback is a function that is supplied in advance of an event - and...
data source - delegate and view controller
is called every time the event occurs
instance of UIView or one of its subclasses
protocol
20. Prefixing a character string with an @ symbol [specific - NSString class]...
instance variable of an object is valid
pointers
class
creates an instance of NSString that holds the character string
21. A collection object - an ordered list of objects that can be accesed by an index
do so in viewDidLoad
selector[message]
array[class - NSMutableArray]
@interface ClassName:SuperClassName
22. Use of class methods - there are three...
alloc - singleton - informational utility method?
accessors - individually we call them 'getters' and 'setters'
to give it someone else - or another object
data source - delegate and view controller
23. To load a Xib file manually - you use _
Continue
to give it someone else - or another object
NSBundle
for inheritance - adopting the superclasses implementation
24. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGFloat
Object wrapper around primitive types like int - float - double - BOOl
values
25. In Objective C arrays can hold only...
creating an initializer
references to objects
receiver
Is a placeholder object
26. 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 _.
new instances of the class or retrieve some global property of the class.
for inheritance - adopting the superclasses implementation
message
pointer - class
27. 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
28. 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...
reuse your cells
arguments[message]
its dataSource
setPossessionName
29. Core foundation classes are prefixed with _ and suffixed with _
causes the program to immediately exit from the loop it is executing - whether its for - while or do
retain
CF - Ref
implementation
30. 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
designated initializer
Data Encapsulation
pointer - class
Functions
31. NSSet...
%d
unordered collection of objects - objects must be unique
setPossessionName
class's
32. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
group of global functions already assigned to this class
Continue
CGRect
ordered collection of objects - immutable
33. Designated initializer makes sure that every...
to give it someone else - or another object
group of global functions already assigned to this class
selector[message]
instance variable of an object is valid
34. [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.
upper
data
viewWillDissapear: and viewWillAppear:
message
35. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
pointers
the message release to all its entries
in the dealloc - or when a Controller's view is 'unloaded'
36. Proceed through the loop - jump back to the top and check again
Continue
the instance variables
designated initializer
has one root view controller
37. Reducing details to focus on the core concepts
Abstraction
view
Used to find the time right now or to store past or future time/dates
rectangular
38. 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
reuse your cells
Continue
causes the program to immediately exit from the loop it is executing - whether its for - while or do
a mechanism to enable specific callbacks
39. The only reason to temporarily own an object - is...
CGFloat
unordered collection of objects - objects must be unique
self
to give it someone else - or another object
40. Categories are an Objective C way to add _ to an existing class without subclassing
methods
for inheritance - adopting the superclasses implementation
viewWillDissapear: and viewWillAppear:
creating an initializer
41. At the top of any implementation file...
you must import the header file of that class
upper
receiver - selector - arguments
superclass's
42. A _ handles touch events.
accessors - individually we call them 'getters' and 'setters'
view
%d
pointers
43. A method in a _ is required unless its preceded by an @optional.
variable scope - if defined within a block
in the dealloc - or when a Controller's view is 'unloaded'
protocol
NSLog routine
44. Values to be supplied as the parameters to the method
Core Graphics Framework
storage
a mechanism to enable specific callbacks
arguments[message]
45. Just a floating point number - but we always use it for graphics.
wait until the loop finishes processing the event - at the end release it
CGFloat
only the class and subclasses can access
subview(s)
46. Execution of the break statement...
new instances of the class or retrieve some global property of the class.
an object's property
receiver[message]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
47. NSString objects are usually sent _ rather than _...
the message release to all its entries
class
copy - retain
Generic object wrapper for other non-object data types
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 _.
CGRect bounds - GCPoint center - CGRect frame
the array relinquishes ownership of that object and no longer has a pointer to it
you always return the newly initialized object(return self)
nil
49. A view is an...
data
instance of UIView or one of its subclasses
method
for inheritance - adopting the superclasses implementation
50. Why properties?
safety - subclassability and makes code look more consistent with C structs
viewWillDissapear: and viewWillAppear:
methods
class's