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. In any application with UINavigationController - the navigation controller...
Hash table - Look up objects using a key to get a value.
is called every time the event occurs
copy - retain
has one root view controller
2. 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
UIView
draw images
view
Encapsulation of functionality
3. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
references to objects
Generic object wrapper for other non-object data types
You take ownership for an object you want to keep a pointer to
4. A responder is responsible for...
ready-made instances - instantiation from scratch - and nib based instantiation
'getters' and 'setters'
view
receiving and handling events that are associated with it
5. Class methods do not operate on an _ or have any access to _ variables....
pointers
Functions
instance
nil
6. Asking a class or object to execute a method
instance variables
new instances of the class or retrieve some global property of the class.
message
a single-array can contain objects of different types
7. 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.
unordered collection of objects - objects must be unique
has one root view controller
first responder
data source - delegate and view controller
8. Each class picks one _ as it's designated initializer....
you always return the newly initialized object(return self)
an object's property
view controller
initializer
9. NSValue - class...
class
array[class - NSMutableArray]
Generic object wrapper for other non-object data types
methods
10. Reference Counting...
copy - retain
cannot be added to an array
class's
You take ownership for an object you want to keep a pointer to
11. The integer prefix is...
CGFloat
first responder
%d
NSLog routine
12. An instance is a device for maintaining state. It's a box for _ of data.
storage
creating an initializer
alloc - singleton - informational utility method?
Functions
13. 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
14. The only reason to temporarily own an object - is...
references to objects
to give it someone else - or another object
you always return the newly initialized object(return self)
viewWillDissapear: and viewWillAppear:
15. NSArray - class...
ordered collection of objects - immutable
data
variable scope - if defined within a block
message
16. A method in a _ is required unless its preceded by an @optional.
alloc - singleton - informational utility method?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
protocol
attributes - behavior
17. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
UIViewController
to give it someone else - or another object
superclass's
18. 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
pointer - class
lowercase - uppercase
an object's property
19. When an NSMutableArray is deallocated - it sends...
%d
the message release to all its entries
its dataSource
data source - view controller and delegate
20. 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...
methods
setPossessionName
'getters' and 'setters'
@interface ClassName:SuperClassName
21. 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
22. [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.
will be ignored
data
UIView
@synthesize
23. A message is always contained in square brackets - and has three parts
calling code that does the instantiation for you
setPossessionName
receiver - selector - arguments
a single-array can contain objects of different types
24. 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.
Data Encapsulation
attributes - behavior
CGRect
instance
25. You use _ to implement the view
instance variables
new instances of the class or retrieve some global property of the class.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGRect bounds
26. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
retain
receiver[message]
@interface ClassName:SuperClassName
an object's property
27. Views have three properties related to their location and size: @property _ _;
UIViewController
CGFloat
declaration and initialization of a variable
CGRect bounds - GCPoint center - CGRect frame
28. 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 _.
CGRect bounds - GCPoint center - CGRect frame
only the class and subclasses can access
pointers
pointer - class
29. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
alloc - singleton - informational utility method?
subview(s)
30. Reducing details to focus on the core concepts
Abstraction
ordered collection of objects - immutable
CGRect bounds
Ready-Made Instance
31. What does autorelease mean?
unordered collection of objects - objects must be unique
Hash table - Look up objects using a key to get a value.
wait until the loop finishes processing the event - at the end release it
instance variables
32. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
collection of collections - NSArray of an NSArray
Instantiation from scratch
CGFloat
UIViewController
33. Classes describe two things...
attributes - behavior
Is a placeholder object
Encapsulation of functionality
declaration and initialization of a variable
34. 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
Anytime you call a method with new - alloc or copy. You own and must release that object.
(id)initWithFrame:(CGRect)aRect;
Functions
Abstraction
35. Ready-made instances...
is called every time the event occurs
calling code that does the instantiation for you
designated initializer
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
36. If you have extra work you want to do on the view...
is called every time the event occurs
UIView
do so in viewDidLoad
superclass's
37. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
receiver
message
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
NSCoder
38. NSDictionary...
instance variables
message
Hash table - Look up objects using a key to get a value.
view
39. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. UIViewController has several methods that get called at certain times...
in the dealloc - or when a Controller's view is 'unloaded'
data
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
class
41. UITableViewController is a subclass of...
UIViewController
an object's property
the array relinquishes ownership of that object and no longer has a pointer to it
a mechanism to enable specific callbacks
42. A view is a subclass of _
alloc - singleton - informational utility method?
UIView
header files declare
copy - retain
43. When do you take ownership?...
is an instance of that class
receiver - selector - arguments
Anytime you call a method with new - alloc or copy. You own and must release that object.
class methods - initializers
44. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
the message release to all its entries
reuse your cells
class's
45. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
@synthesize
receiver
a mechanism to enable specific callbacks
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
46. Categories are an Objective C way to add _ to an existing class without subclassing
size and position
data source - delegate and view controller
methods
Instantiation from scratch
47. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Object wrapper around primitive types like int - float - double - BOOl
UIView
Is a placeholder object
Controller Objects[Managers]
48. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
'getters' and 'setters'
storage
Continue
49. @property declares - and _ implements the setter and getter...
upper
@synthesize
reuse your cells
cannot be added to an array
50. A collection object - an ordered list of objects that can be accesed by an index
methods
position
array[class - NSMutableArray]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject