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. Three ways instances are created...
view
Model Objects[Factory Worker]
ready-made instances - instantiation from scratch - and nib based instantiation
callbacks
2. UITableViewController is a subclass of...
do so in viewDidLoad
UIViewController
initializers
receiving and handling events that are associated with it
3. A callback is a function that is supplied in advance of an event - and...
@interface ClassName:SuperClassName
is called every time the event occurs
accessors - individually we call them 'getters' and 'setters'
receiver - selector - arguments
4. Prefixing a character string with an @ symbol [specific - NSString class]...
self
Generic object wrapper for other non-object data types
Hash table - Look up objects using a key to get a value.
creates an instance of NSString that holds the character string
5. To load a Xib file manually - you use _
you must import the header file of that class
'getters' and 'setters'
NSBundle
Is a placeholder object
6. UIViewController has several methods that get called at certain times...
Anytime you call a method with new - alloc or copy. You own and must release that object.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
selector[message]
Used to find the time right now or to store past or future time/dates
7. Object Oriented based analogue to a function is called a...
class
implementation
receiving and handling events that are associated with it
method
8. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
initializer
CGFloat
will be ignored
9. Core foundation classes are prefixed with _ and suffixed with _
CGRect
delegates and dataSources
Functions
CF - Ref
10. super - is used...
for inheritance - adopting the superclasses implementation
initializer
pointer to an object
object
11. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
values
initializer
self
'getters' and 'setters'
12. Typically the designated initializer has parameters for the most important and frequently used _ of an object
arguments[message]
instance variables
initializers
ready-made instances - instantiation from scratch - and nib based instantiation
13. 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
Instantiation from scratch
calling code that does the instantiation for you
methods
14. Ready-made instances...
%d
instance variables
selector[message]
calling code that does the instantiation for you
15. A collection object - an ordered list of objects that can be accesed by an index
its dataSource
instance variables
references to objects
array[class - NSMutableArray]
16. The class is responsible for what instance variables the instance has - but not the _ of those variables.
C Functionn
values
type - name and value
will be ignored
17. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
is an instance of that class
creating an initializer
collection of collections - NSArray of an NSArray
18. 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
19. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
receiving and handling events that are associated with it
header files declare
a single-array can contain objects of different types
C Functionn
20. When an NSMutableArray is deallocated - it sends...
'getters' and 'setters'
the message release to all its entries
Encapsulation of functionality
new instances of the class or retrieve some global property of the class.
21. 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....
nil
define it in the implemenation file
instance variable of an object is valid
the array becomes an owner of that object and has a pointer to it.
22. Execution of the break statement...
subview(s)
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Controller Objects[Managers]
methods
23. Number one use of protocols in iOS...
@synthesize
the array becomes an owner of that object and has a pointer to it.
Hash table - Look up objects using a key to get a value.
delegates and dataSources
24. In the last line of an init method...
receiver - selector - arguments
object
draw images
you always return the newly initialized object(return self)
25. Property List...
the array becomes an owner of that object and has a pointer to it.
collection of collections - NSArray of an NSArray
a single-array can contain objects of different types
Is a placeholder object
26. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
the message release to all its entries
pointers
do so in viewDidLoad
27. 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
view controller
object
storage
28. Any individual object belonging to any class...
Core Graphics Framework
instance of UIView or one of its subclasses
new instances of the class or retrieve some global property of the class.
is an instance of that class
29. Categories are an Objective C way to add _ to an existing class without subclassing
causes the program to immediately exit from the loop it is executing - whether its for - while or do
dealloc - is called on the object & the object's memory is returned to the heap
methods
setPossessionName
30. The integer prefix is...
%d
view controller's initialization method
delegates and dataSources
Used to find the time right now or to store past or future time/dates
31. A view is an...
instance of UIView or one of its subclasses
instance variables
Controller Objects[Managers]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
32. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
safety - subclassability and makes code look more consistent with C structs
NSCoder
designated initializer
class methods - initializers
33. NSDictionary...
selector[message]
view controller's initialization method
NSLog routine
Hash table - Look up objects using a key to get a value.
34. 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
35. 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
36. Proceed through the loop - jump back to the top and check again
its dataSource
Continue
%d
nil
37. A view is a subclass of _
data source - view controller and delegate
UIView
Anytime you call a method with new - alloc or copy. You own and must release that object.
C Functionn
38. A _ handles touch events.
view
nil
CGRect bounds
has one root view controller
39. 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.
view controller's initialization method
Generic object wrapper for other non-object data types
subview(s)
first responder
40. Hold data and know nothing about the user interface
only the class and subclasses can access
Model Objects[Factory Worker]
nil
Object wrapper around primitive types like int - float - double - BOOl
41. id is a...
pointer to an object
instance variables
message
creating an initializer
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
Functions
type - name and value
Is a placeholder object
Anytime you call a method with new - alloc or copy. You own and must release that object.
43. 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...
ordered collection of objects - immutable
setPossessionName
data
draw images
44. Primitives and C Structures...
cannot be added to an array
unordered collection of objects - objects must be unique
Functions
do so in viewDidLoad
45. Instance Variables by default are called @protected meaning...
copy - retain
only the class and subclasses can access
receiver[message]
receiver
46. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
define it in the implemenation file
instance variables
type - name and value
Ready-Made Instance
47. All objects are accessed using...
receiving and handling events that are associated with it
pointers
receiver[message]
arguments[message]
48. In general - class methods tend to be factory methods - that is...
Generic object wrapper for other non-object data types
methods for generating an instance
data
create a XIB file
49. A view represents a _ area
Used to find the time right now or to store past or future time/dates
rectangular
cannot be added to an array
the instance variables
50. Name of the method to be executed
NSCoder
storage
a single-array can contain objects of different types
selector[message]