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. Typically the designated initializer has parameters for the most important and frequently used _ of an object
object
lowercase - uppercase
new instances of the class or retrieve some global property of the class.
instance variables
2. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
receiving and handling events that are associated with it
CGFloat
NSCoder
creating an initializer
3. How do I implement my drawRect?
copy - retain
retain
in the dealloc - or when a Controller's view is 'unloaded'
Core Graphics Framework
4. A view is a subclass of _
Used to find the time right now or to store past or future time/dates
instance variable of an object is valid
UIView
Maintenance of state
5. A function in the objective c library that simply displays or logs it's argument
NSLog routine
NSBundle
they need to be defined in the implementation file
methods
6. In a class method you cannot access...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
size and position
pointer to an object
the instance variables
7. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
self
lowercase - uppercase
attributes - behavior
creating an initializer
8. Each _ has a 'designated' initializer method....
dealloc - is called on the object & the object's memory is returned to the heap
data source - view controller and delegate
CGRect
class
9. Name of the method to be executed
to get and set variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
selector[message]
they need to be defined in the implementation file
10. NSValue - class...
Generic object wrapper for other non-object data types
%d
storage
collection of collections - NSArray of an NSArray
11. Three ways instances are created...
class
header files declare
ready-made instances - instantiation from scratch - and nib based instantiation
%d
12. Reference Counting...
You take ownership for an object you want to keep a pointer to
ordered collection of objects - immutable
an object's property
Hash table - Look up objects using a key to get a value.
13. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
cannot be added to an array
upper
Anytime you call a method with new - alloc or copy. You own and must release that object.
implementation
14. Files Owner...
Is a placeholder object
data source - delegate and view controller
values
variable scope - if defined within a block
15. You use _ to implement the view
create a XIB file
data
CGRect bounds
receiver[message]
16. Core foundation classes are prefixed with _ and suffixed with _
unordered collection of objects - objects must be unique
UIViewController
upper
CF - Ref
17. Classes describe two things...
you always return the newly initialized object(return self)
attributes - behavior
(id)initWithFrame:(CGRect)aRect;
a mechanism to enable specific callbacks
18. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
CGFloat
instance variables
pointer to an object
19. A responder is responsible for...
you must import the header file of that class
copy - retain
pointer - class
receiving and handling events that are associated with it
20. Ready-made instances...
ordered collection of objects - immutable
calling code that does the instantiation for you
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
dealloc - is called on the object & the object's memory is returned to the heap
21. UIViewController has several methods that get called at certain times...
nil
variable scope - if defined within a block
class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
22. The only reason to temporarily own an object - is...
collection of collections - NSArray of an NSArray
to give it someone else - or another object
receiver[message]
is called every time the event occurs
23. What does autorelease mean?
method
you always return the newly initialized object(return self)
wait until the loop finishes processing the event - at the end release it
you must import the header file of that class
24. Center and frame are used to _ your view
position
callbacks
Ready-Made Instance
Controller Objects[Managers]
25. 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
26. 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
27. Designated initializer makes sure that every...
UIViewController
instance variable of an object is valid
references to objects
group of global functions already assigned to this class
28. if you implemented both the setter and getter - the @synthesize method...
will be ignored
Instantiation from scratch
copy - retain
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
29. After accessors have been defined in the header file...
they need to be defined in the implementation file
declaration and initialization of a variable
alloc - singleton - informational utility method?
NSLog routine
30. 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.
first responder
pointer - class
data source - delegate and view controller
receiver
31. Use of class methods - there are three...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
alloc - singleton - informational utility method?
group of global functions already assigned to this class
creates an instance of NSString that holds the character string
32. Execution of the break statement...
an object's property
Anytime you call a method with new - alloc or copy. You own and must release that object.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
viewWillDissapear: and viewWillAppear:
33. A UITableViewController can fill all three roles of...
copy - retain
data source - view controller and delegate
pointer - class
data source - delegate and view controller
34. A UITableView usually needs three different pieces...
data source - delegate and view controller
alloc - singleton - informational utility method?
instance
object
35. NSDictionary...
implementation
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
Hash table - Look up objects using a key to get a value.
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 message release to all its entries
receiving and handling events that are associated with it
Data Encapsulation
CGRect
37. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Is a placeholder object
Controller Objects[Managers]
causes the program to immediately exit from the loop it is executing - whether its for - while or do
reuse your cells
38. In Objective C arrays can hold only...
will be ignored
references to objects
pointer to an object
attributes - behavior
39. 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
40. @property declares - and _ implements the setter and getter...
the instance variables
arguments[message]
instance
@synthesize
41. Delegation is an object oriented approach to
nil
class methods - initializers
an object's property
callbacks
42. 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
43. A collection object - an ordered list of objects that can be accesed by an index
a single-array can contain objects of different types
array[class - NSMutableArray]
receiving and handling events that are associated with it
has one root view controller
44. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
Anytime you call a method with new - alloc or copy. You own and must release that object.
data source - view controller and delegate
instance variable of an object is valid
45. Values to be supplied as the parameters to the method
CGRect bounds
viewWillDissapear: and viewWillAppear:
instance variables
arguments[message]
46. id is a...
dealloc - is called on the object & the object's memory is returned to the heap
declaration and initialization of a variable
wait until the loop finishes processing the event - at the end release it
pointer to an object
47. NSString objects are usually sent _ rather than _...
Functions
copy - retain
message
instance
48. A view is an...
CF - Ref
ready-made instances - instantiation from scratch - and nib based instantiation
instance of UIView or one of its subclasses
has one root view controller
49. 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.
the array relinquishes ownership of that object and no longer has a pointer to it
new instances of the class or retrieve some global property of the class.
creating an initializer
CGFloat
50. Class methods do not operate on an _ or have any access to _ variables....
unordered collection of objects - objects must be unique
instance
callbacks
receiver[message]