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. NSDictionary...
Hash table - Look up objects using a key to get a value.
its dataSource
instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
2. If you have extra work you want to do on the view...
is called every time the event occurs
is an instance of that class
do so in viewDidLoad
selector[message]
3. 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.
NSLog routine
implementation
designated initializer
header files declare
4. The class is responsible for what instance variables the instance has - but not the _ of those variables.
CGFloat
initializer
values
Used to find the time right now or to store past or future time/dates
5. Proceed through the loop - jump back to the top and check again
Continue
subview(s)
reuse your cells
do so in viewDidLoad
6. 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
Functions
a mechanism to enable specific callbacks
pointer - class
7. Only exists within the statement block there defined - outside of the block is fine
methods
data source - delegate and view controller
variable scope - if defined within a block
(id)initWithFrame:(CGRect)aRect;
8. What does autorelease mean?
dealloc - is called on the object & the object's memory is returned to the heap
wait until the loop finishes processing the event - at the end release it
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
to get and set variables
9. NSString objects are usually sent _ rather than _...
has one root view controller
selector[message]
in the dealloc - or when a Controller's view is 'unloaded'
copy - retain
10. 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 _.
group of global functions already assigned to this class
dealloc - is called on the object & the object's memory is returned to the heap
data source - view controller and delegate
subview(s)
11. The only reason to temporarily own an object - is...
to give it someone else - or another object
cannot be added to an array
values
reuse your cells
12. class methods...
group of global functions already assigned to this class
only the innermost loop in which the break is executed is terminated
CGRect bounds - GCPoint center - CGRect frame
view controller's initialization method
13. Ready-made instances...
%d
the array relinquishes ownership of that object and no longer has a pointer to it
calling code that does the instantiation for you
CGFloat
14. UIView - designated initializer...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
rectangular
values
(id)initWithFrame:(CGRect)aRect;
15. 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
16. In Cocoa Touch - the table view asks another object _ what it should display...
upper
the array becomes an owner of that object and has a pointer to it.
its dataSource
first responder
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Used to find the time right now or to store past or future time/dates
its dataSource
NSCoder
receiver
18. After accessors have been defined in the header file...
Ready-Made Instance
you must import the header file of that class
the message release to all its entries
they need to be defined in the implementation file
19. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. Classes describe two things...
Instantiation from scratch
creating an initializer
will be ignored
attributes - behavior
21. In general - class methods tend to be factory methods - that is...
receiving and handling events that are associated with it
define it in the implemenation file
CGFloat
methods for generating an instance
22. In any application with UINavigationController - the navigation controller...
Anytime you call a method with new - alloc or copy. You own and must release that object.
has one root view controller
class methods - initializers
data source - view controller and delegate
23. 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....
array[class - NSMutableArray]
first responder
define it in the implemenation file
Encapsulation of functionality
24. To load a Xib file manually - you use _
in the dealloc - or when a Controller's view is 'unloaded'
NSBundle
they need to be defined in the implementation file
cannot be added to an array
25. 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
first responder
CGFloat
initializers
Functions
26. Delegation is an object oriented approach to
callbacks
is called every time the event occurs
position
receiver
27. An instance is a device for maintaining state. It's a box for _ of data.
CGRect bounds - GCPoint center - CGRect frame
you must import the header file of that class
viewWillDissapear: and viewWillAppear:
storage
28. A view is a subclass of _
data
a single-array can contain objects of different types
UIView
message
29. Reference Counting...
Ready-Made Instance
You take ownership for an object you want to keep a pointer to
new instances of the class or retrieve some global property of the class.
(id)initWithFrame:(CGRect)aRect;
30. if you implemented both the setter and getter - the @synthesize method...
delegates and dataSources
will be ignored
array[class - NSMutableArray]
NSBundle
31. 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.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiving and handling events that are associated with it
Instantiation from scratch
Data Encapsulation
32. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
Abstraction
Instantiation from scratch
Anytime you call a method with new - alloc or copy. You own and must release that object.
33. When making a tableView always...
CGRect bounds - GCPoint center - CGRect frame
reuse your cells
Model Objects[Factory Worker]
instance variables
34. 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
35. A view is an...
Hash table - Look up objects using a key to get a value.
header files declare
only the innermost loop in which the break is executed is terminated
instance of UIView or one of its subclasses
36. 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
37. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
you must import the header file of that class
reuse your cells
cannot be added to an array
Controller Objects[Managers]
38. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
initializer
NSCoder
instance
message
39. A command directed to an object is called an...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGRect bounds - GCPoint center - CGRect frame
message
attributes - behavior
40. In Objective C arrays can hold only...
to give it someone else - or another object
instance variables
references to objects
delegates and dataSources
41. Defining variables - three parts...
type - name and value
CGRect bounds
collection of collections - NSArray of an NSArray
to get and set variables
42. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
storage
lowercase - uppercase
receiver[message]
@interface ClassName:SuperClassName
43. A responder is responsible for...
data source - delegate and view controller
receiving and handling events that are associated with it
Anytime you call a method with new - alloc or copy. You own and must release that object.
in the dealloc - or when a Controller's view is 'unloaded'
44. A function in the objective c library that simply displays or logs it's argument
its dataSource
NSLog routine
you must import the header file of that class
Core Graphics Framework
45. A UITableView usually needs three different pieces...
Ready-Made Instance
pointer to an object
attributes - behavior
data source - delegate and view controller
46. 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 _.
wait until the loop finishes processing the event - at the end release it
Core Graphics Framework
pointer - class
data
47. When an object is added to a NSMutableArray - that object is sent the message to retain;...
an object's property
retain
the array becomes an owner of that object and has a pointer to it.
pointer - class
48. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
has one root view controller
creating an initializer
receiving and handling events that are associated with it
49. The integer prefix is...
references to objects
%d
instance variable of an object is valid
subview(s)
50. Use of class methods - there are three...
Functions
super - self
alloc - singleton - informational utility method?
reuse your cells