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. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
receiving and handling events that are associated with it
rectangular
view controller
2. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
Anytime you call a method with new - alloc or copy. You own and must release that object.
parentViewController
has one root view controller
3. In the last line of an init method...
header files declare
a mechanism to enable specific callbacks
you always return the newly initialized object(return self)
instance variable of an object is valid
4. Number one use of protocols in iOS...
type - name and value
@synthesize
delegates and dataSources
draw images
5. A pointer to the object being asked to execute a method
delegates and dataSources
Generic object wrapper for other non-object data types
protocol
receiver[message]
6. A callback is a function that is supplied in advance of an event - and...
method
subview(s)
in the dealloc - or when a Controller's view is 'unloaded'
is called every time the event occurs
7. NSString *s = @'Hello - World'; is an example of...
unordered collection of objects - objects must be unique
declaration and initialization of a variable
values
header files declare
8. Class methods typically either create
Ready-Made Instance
object
new instances of the class or retrieve some global property of the class.
pointer - class
9. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
creating an initializer
class methods - initializers
Is a placeholder object
lowercase - uppercase
10. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
will be ignored
Abstraction
header files declare
is an instance of that class
11. NSValue - class...
collection of collections - NSArray of an NSArray
values
Hash table - Look up objects using a key to get a value.
Generic object wrapper for other non-object data types
12. NSNumber - class...
safety - subclassability and makes code look more consistent with C structs
Object wrapper around primitive types like int - float - double - BOOl
view
calling code that does the instantiation for you
13. NSDate - class...
Data Encapsulation
Used to find the time right now or to store past or future time/dates
creates an instance of NSString that holds the character string
retain
14. 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
15. Why properties?
creating an initializer
you always return the newly initialized object(return self)
safety - subclassability and makes code look more consistent with C structs
an object's property
16. 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...
delegates and dataSources
Anytime you call a method with new - alloc or copy. You own and must release that object.
nil
setPossessionName
17. Defining variables - three parts...
type - name and value
message
CF - Ref
header files declare
18. id is a...
first responder
Is a placeholder object
pointer to an object
only the class and subclasses can access
19. In a class method you cannot access...
the array relinquishes ownership of that object and no longer has a pointer to it
ready-made instances - instantiation from scratch - and nib based instantiation
parentViewController
the instance variables
20. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Maintenance of state
upper
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Encapsulation of functionality
21. Prefixing a character string with an @ symbol [specific - NSString class]...
retain
creates an instance of NSString that holds the character string
the message release to all its entries
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
22. 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
23. 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
24. Hold data and know nothing about the user interface
pointers
its dataSource
do so in viewDidLoad
Model Objects[Factory Worker]
25. if you implemented both the setter and getter - the @synthesize method...
size and position
retain
@interface ClassName:SuperClassName
will be ignored
26. An instance is a device for maintaining state. It's a box for _ of data.
references to objects
safety - subclassability and makes code look more consistent with C structs
storage
Instantiation from scratch
27. Just a floating point number - but we always use it for graphics.
CGFloat
dealloc - is called on the object & the object's memory is returned to the heap
Hash table - Look up objects using a key to get a value.
Functions
28. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
object
designated initializer
you must import the header file of that class
class methods - initializers
29. Delegation is an object oriented approach to
Maintenance of state
type - name and value
Anytime you call a method with new - alloc or copy. You own and must release that object.
callbacks
30. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the message release to all its entries
the array becomes an owner of that object and has a pointer to it.
draw images
Is a placeholder object
31. NSArray - class...
Object wrapper around primitive types like int - float - double - BOOl
draw images
instance variables
ordered collection of objects - immutable
32. A UITableView usually needs three different pieces...
data source - delegate and view controller
wait until the loop finishes processing the event - at the end release it
receiver - selector - arguments
NSBundle
33. Center and frame are used to _ your view
CGRect bounds
position
its dataSource
instance variable of an object is valid
34. After accessors have been defined in the header file...
NSLog routine
self
they need to be defined in the implementation file
you always return the newly initialized object(return self)
35. In any application with UINavigationController - the navigation controller...
%d
has one root view controller
alloc - singleton - informational utility method?
rectangular
36. When do you take ownership?...
instance variable of an object is valid
is an instance of that class
data source - delegate and view controller
Anytime you call a method with new - alloc or copy. You own and must release that object.
37. @property - is using methods...
to get and set variables
to give it someone else - or another object
UIViewController
Functions
38. Also if you send the NSObject the _ message - you own that object.
retain
instance of UIView or one of its subclasses
draw images
Maintenance of state
39. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
they need to be defined in the implementation file
data source - delegate and view controller
C Functionn
creating an initializer
40. Use of class methods - there are three...
declaration and initialization of a variable
receiving and handling events that are associated with it
they need to be defined in the implementation file
alloc - singleton - informational utility method?
41. A collection object - an ordered list of objects that can be accesed by an index
you must import the header file of that class
callbacks
Generic object wrapper for other non-object data types
array[class - NSMutableArray]
42. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
view controller
message
array[class - NSMutableArray]
@interface ClassName:SuperClassName
43. Each class picks one _ as it's designated initializer....
initializer
view
to give it someone else - or another object
Continue
44. A view is an...
receiving and handling events that are associated with it
Encapsulation of functionality
receiver
instance of UIView or one of its subclasses
45. Whenever a UINavigationController is about to swap views - it sends out two messages
unordered collection of objects - objects must be unique
protocol
data
viewWillDissapear: and viewWillAppear:
46. Reference Counting...
for inheritance - adopting the superclasses implementation
You take ownership for an object you want to keep a pointer to
Instantiation from scratch
UIViewController
47. 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
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 _.
reuse your cells
declaration and initialization of a variable
nil
the array relinquishes ownership of that object and no longer has a pointer to it
49. Categories are an Objective C way to add _ to an existing class without subclassing
Anytime you call a method with new - alloc or copy. You own and must release that object.
methods
first responder
Abstraction
50. Name of the method to be executed
selector[message]
Data Encapsulation
Instantiation from scratch
ordered collection of objects - immutable