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. 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.
CGFloat
delegates and dataSources
implementation
a single-array can contain objects of different types
2. Reducing details to focus on the core concepts
Anytime you call a method with new - alloc or copy. You own and must release that object.
Maintenance of state
cannot be added to an array
Abstraction
3. 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
4. Also if you send the NSObject the _ message - you own that object.
retain
unordered collection of objects - objects must be unique
ordered collection of objects - immutable
initializers
5. When making a tableView always...
unordered collection of objects - objects must be unique
reuse your cells
viewWillDissapear: and viewWillAppear:
storage
6. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
new instances of the class or retrieve some global property of the class.
CGFloat
they need to be defined in the implementation file
7. NSDate - class...
CGRect bounds
protocol
creates an instance of NSString that holds the character string
Used to find the time right now or to store past or future time/dates
8. The class is responsible for what instance variables the instance has - but not the _ of those variables.
first responder
implementation
values
pointer to an object
9. Proceed through the loop - jump back to the top and check again
Controller Objects[Managers]
storage
Continue
alloc - singleton - informational utility method?
10. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
only the innermost loop in which the break is executed is terminated
Functions
Continue
Ready-Made Instance
11. 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
12. A pointer to the object being asked to execute a method
receiver[message]
subview(s)
data
Maintenance of state
13. A collection object - an ordered list of objects that can be accesed by an index
the message release to all its entries
accessors - individually we call them 'getters' and 'setters'
attributes - behavior
array[class - NSMutableArray]
14. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
in the dealloc - or when a Controller's view is 'unloaded'
position
receiver[message]
15. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
size and position
lowercase - uppercase
parentViewController
dealloc - is called on the object & the object's memory is returned to the heap
16. class methods...
group of global functions already assigned to this class
do so in viewDidLoad
Generic object wrapper for other non-object data types
instance
17. Ready-made instances...
calling code that does the instantiation for you
Functions
class methods - initializers
You take ownership for an object you want to keep a pointer to
18. Each _ has a 'designated' initializer method....
message
class
CGRect bounds
initializer
19. Name of the method to be executed
view controller
selector[message]
retain
pointers
20. NSSet...
unordered collection of objects - objects must be unique
variable scope - if defined within a block
pointers
a single-array can contain objects of different types
21. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Encapsulation of functionality
copy - retain
view controller
subview(s)
22. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
the array relinquishes ownership of that object and no longer has a pointer to it
C Functionn
creates an instance of NSString that holds the character string
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
23. Instance Variables by default are called @protected meaning...
Model Objects[Factory Worker]
receiver
they need to be defined in the implementation file
only the class and subclasses can access
24. Origin of a view's coordinate system is _ left
Functions
receiving and handling events that are associated with it
view
upper
25. Defining variables - three parts...
'getters' and 'setters'
type - name and value
(id)initWithFrame:(CGRect)aRect;
instance variables
26. UIView - designated initializer...
You take ownership for an object you want to keep a pointer to
(id)initWithFrame:(CGRect)aRect;
CGRect bounds - GCPoint center - CGRect frame
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
27. A view represents a _ area
pointer to an object
declaration and initialization of a variable
Instantiation from scratch
rectangular
28. NSArray - class...
Model Objects[Factory Worker]
creates an instance of NSString that holds the character string
ready-made instances - instantiation from scratch - and nib based instantiation
ordered collection of objects - immutable
29. Hold data and know nothing about the user interface
Functions
Used to find the time right now or to store past or future time/dates
Model Objects[Factory Worker]
implementation
30. Use of class methods - there are three...
alloc - singleton - informational utility method?
viewWillDissapear: and viewWillAppear:
class
pointers
31. If you have extra work you want to do on the view...
do so in viewDidLoad
Is a placeholder object
lowercase - uppercase
self
32. In Cocoa Touch - the table view asks another object _ what it should display...
to give it someone else - or another object
define it in the implemenation file
its dataSource
Abstraction
33. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Encapsulation of functionality
@synthesize
ordered collection of objects - immutable
super - self
34. 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
35. 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.
in the dealloc - or when a Controller's view is 'unloaded'
first responder
creating an initializer
@interface ClassName:SuperClassName
36. Also - because arrays only hold a pointer to an object...
Instantiation from scratch
method
a single-array can contain objects of different types
nil
37. In the last line of an init method...
for inheritance - adopting the superclasses implementation
receiver[message]
you always return the newly initialized object(return self)
an object's property
38. 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
selector[message]
an object's property
is called every time the event occurs
39. Object Oriented based analogue to a function is called a...
method
position
the instance variables
CF - Ref
40. id is a...
arguments[message]
Instantiation from scratch
pointer to an object
UIView
41. if you implemented both the setter and getter - the @synthesize method...
Object wrapper around primitive types like int - float - double - BOOl
will be ignored
Used to find the time right now or to store past or future time/dates
the array relinquishes ownership of that object and no longer has a pointer to it
42. A method in a _ is required unless its preceded by an @optional.
header files declare
Anytime you call a method with new - alloc or copy. You own and must release that object.
protocol
create a XIB file
43. 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 _.
Data Encapsulation
alloc - singleton - informational utility method?
subview(s)
C Functionn
44. After accessors have been defined in the header file...
Used to find the time right now or to store past or future time/dates
type - name and value
they need to be defined in the implementation file
CGRect bounds - GCPoint center - CGRect frame
45. How do I implement my drawRect?
rectangular
methods
UIViewController
Core Graphics Framework
46. Categories are an Objective C way to add _ to an existing class without subclassing
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
setPossessionName
message
methods
47. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
instance variables
pointer to an object
CGFloat
class methods - initializers
48. NSString *s = @'Hello - World'; is an example of...
group of global functions already assigned to this class
initializer
wait until the loop finishes processing the event - at the end release it
declaration and initialization of a variable
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]
message
attributes - behavior
CGRect
50. 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