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 the last line of an init method...
protocol
superclass's
you always return the newly initialized object(return self)
Model Objects[Factory Worker]
2. Categories are an Objective C way to add _ to an existing class without subclassing
first responder
methods
Maintenance of state
class
3. In a class method you cannot access...
class's
Controller Objects[Managers]
size and position
the instance variables
4. A collection object - an ordered list of objects that can be accesed by an index
draw images
position
superclass's
array[class - NSMutableArray]
5. Class methods do not operate on an _ or have any access to _ variables....
instance
receiver
group of global functions already assigned to this class
do so in viewDidLoad
6. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
Core Graphics Framework
NSCoder
you must import the header file of that class
Model Objects[Factory Worker]
7. 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
8. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
NSCoder
view controller
receiver
'getters' and 'setters'
9. Only exists within the statement block there defined - outside of the block is fine
ordered collection of objects - immutable
class methods - initializers
variable scope - if defined within a block
storage
10. A UITableView usually needs three different pieces...
do so in viewDidLoad
data source - delegate and view controller
alloc - singleton - informational utility method?
create a XIB file
11. 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
12. If a break statement is executed from within a set of nested loops...
CGRect bounds
only the innermost loop in which the break is executed is terminated
Hash table - Look up objects using a key to get a value.
initializers
13. After accessors have been defined in the header file...
has one root view controller
subview(s)
nil
they need to be defined in the implementation file
14. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
first responder
references to objects
data
15. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
position
new instances of the class or retrieve some global property of the class.
the instance variables
16. 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
17. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
is called every time the event occurs
references to objects
CGFloat
18. Primitives and C Structures...
cannot be added to an array
Continue
(id)initWithFrame:(CGRect)aRect;
view controller's initialization method
19. 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
delegates and dataSources
data source - view controller and delegate
initializers
parentViewController
20. NSString objects are usually sent _ rather than _...
lowercase - uppercase
values
copy - retain
create a XIB file
21. Name of the method to be executed
references to objects
selector[message]
Ready-Made Instance
Continue
22. NSArray - class...
draw images
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
ordered collection of objects - immutable
class methods - initializers
23. 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 _.
alloc - singleton - informational utility method?
pointer - class
the array becomes an owner of that object and has a pointer to it.
Anytime you call a method with new - alloc or copy. You own and must release that object.
24. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
variable scope - if defined within a block
alloc - singleton - informational utility method?
cannot be added to an array
25. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
'getters' and 'setters'
C Functionn
position
NSBundle
26. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
do so in viewDidLoad
for inheritance - adopting the superclasses implementation
CGRect
27. NSNumber - class...
Hash table - Look up objects using a key to get a value.
viewWillDissapear: and viewWillAppear:
Object wrapper around primitive types like int - float - double - BOOl
creating an initializer
28. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
wait until the loop finishes processing the event - at the end release it
@interface ClassName:SuperClassName
group of global functions already assigned to this class
type - name and value
29. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
new instances of the class or retrieve some global property of the class.
the array relinquishes ownership of that object and no longer has a pointer to it
has one root view controller
30. Whenever a UINavigationController is about to swap views - it sends out two messages
@synthesize
viewWillDissapear: and viewWillAppear:
class
an object's property
31. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Encapsulation of functionality
do so in viewDidLoad
Generic object wrapper for other non-object data types
lowercase - uppercase
32. Also - because arrays only hold a pointer to an object...
'getters' and 'setters'
only the class and subclasses can access
create a XIB file
a single-array can contain objects of different types
33. A view is a subclass of _
Data Encapsulation
NSBundle
UIView
class methods - initializers
34. 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.
Generic object wrapper for other non-object data types
size and position
first responder
will be ignored
35. An instance is a device for maintaining state. It's a box for _ of data.
new instances of the class or retrieve some global property of the class.
pointers
storage
Functions
36. 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.
the array relinquishes ownership of that object and no longer has a pointer to it
selector[message]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Data Encapsulation
37. Why properties?
%d
receiver[message]
safety - subclassability and makes code look more consistent with C structs
declaration and initialization of a variable
38. The root view controller typically creates the next view controller - and the next _ creates the one after that
storage
message
view controller
implementation
39. Proceed through the loop - jump back to the top and check again
is called every time the event occurs
receiver
the array becomes an owner of that object and has a pointer to it.
Continue
40. Reference Counting...
You take ownership for an object you want to keep a pointer to
an object's property
header files declare
pointer to an object
41. NSDate - class...
view controller
Used to find the time right now or to store past or future time/dates
do so in viewDidLoad
UIView
42. 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
NSCoder
NSLog routine
view controller's initialization method
Functions
43. Hold data and know nothing about the user interface
Instantiation from scratch
a mechanism to enable specific callbacks
cannot be added to an array
Model Objects[Factory Worker]
44. When do you take ownership?...
class methods - initializers
for inheritance - adopting the superclasses implementation
define it in the implemenation file
Anytime you call a method with new - alloc or copy. You own and must release that object.
45. Files Owner...
methods
CGFloat
@synthesize
Is a placeholder object
46. A view represents a _ area
rectangular
viewWillDissapear: and viewWillAppear:
CGRect
pointer to an object
47. UIImageView is used to...
Continue
declaration and initialization of a variable
draw images
a single-array can contain objects of different types
48. If the view has no subviews - create it programmatically; if it has subviews
wait until the loop finishes processing the event - at the end release it
create a XIB file
accessors - individually we call them 'getters' and 'setters'
'getters' and 'setters'
49. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
CF - Ref
@synthesize
you must import the header file of that class
50. 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....
methods for generating an instance
setPossessionName
define it in the implemenation file
safety - subclassability and makes code look more consistent with C structs