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. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
Is a placeholder object
group of global functions already assigned to this class
its dataSource
2. Instance Variables by default are called @protected meaning...
you always return the newly initialized object(return self)
only the class and subclasses can access
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
@interface ClassName:SuperClassName
3. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
accessors - individually we call them 'getters' and 'setters'
C Functionn
you must import the header file of that class
nil
4. Class methods do not operate on an _ or have any access to _ variables....
UIView
its dataSource
instance
view controller
5. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Data Encapsulation
instance variable of an object is valid
creating an initializer
super - self
6. What does autorelease mean?
initializer
wait until the loop finishes processing the event - at the end release it
the message release to all its entries
lowercase - uppercase
7. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. The root view controller typically creates the next view controller - and the next _ creates the one after that
an object's property
pointers
view controller
lowercase - uppercase
9. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Anytime you call a method with new - alloc or copy. You own and must release that object.
creates an instance of NSString that holds the character string
they need to be defined in the implementation file
object
10. Also - because arrays only hold a pointer to an object...
unordered collection of objects - objects must be unique
is an instance of that class
cannot be added to an array
a single-array can contain objects of different types
11. All objects are accessed using...
view controller
pointers
a single-array can contain objects of different types
Encapsulation of functionality
12. After accessors have been defined in the header file...
Ready-Made Instance
they need to be defined in the implementation file
the message release to all its entries
is an instance of that class
13. A method in a _ is required unless its preceded by an @optional.
NSLog routine
protocol
Controller Objects[Managers]
Ready-Made Instance
14. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
methods
You take ownership for an object you want to keep a pointer to
arguments[message]
15. 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
ordered collection of objects - immutable
Encapsulation of functionality
to get and set variables
CGRect
16. In a class method you cannot access...
CGFloat
the instance variables
@interface ClassName:SuperClassName
to get and set variables
17. Whenever a UINavigationController is about to swap views - it sends out two messages
copy - retain
you always return the newly initialized object(return self)
viewWillDissapear: and viewWillAppear:
message
18. Typically the designated initializer has parameters for the most important and frequently used _ of an object
UIView
instance variables
ordered collection of objects - immutable
CF - Ref
19. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
only the class and subclasses can access
@synthesize
do so in viewDidLoad
20. In the last line of an init method...
'getters' and 'setters'
you always return the newly initialized object(return self)
define it in the implemenation file
instance of UIView or one of its subclasses
21. 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.
dealloc - is called on the object & the object's memory is returned to the heap
%d
alloc - singleton - informational utility method?
implementation
22. A collection object - an ordered list of objects that can be accesed by an index
the array becomes an owner of that object and has a pointer to it.
(id)initWithFrame:(CGRect)aRect;
array[class - NSMutableArray]
first responder
23. id is a...
pointer to an object
storage
will be ignored
an object's property
24. Each _ has a 'designated' initializer method....
viewWillDissapear: and viewWillAppear:
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
class
upper
25. 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
26. If the view has no subviews - create it programmatically; if it has subviews
calling code that does the instantiation for you
@interface ClassName:SuperClassName
create a XIB file
instance
27. In Cocoa Touch - the table view asks another object _ what it should display...
data
message
to get and set variables
its dataSource
28. A view is an...
view controller's initialization method
references to objects
instance of UIView or one of its subclasses
receiver[message]
29. UIImageView is used to...
Hash table - Look up objects using a key to get a value.
creates an instance of NSString that holds the character string
initializer
draw images
30. Proceed through the loop - jump back to the top and check again
Continue
(id)initWithFrame:(CGRect)aRect;
method
methods for generating an instance
31. When an object is added to a NSMutableArray - that object is sent the message to retain;...
new instances of the class or retrieve some global property of the class.
the array becomes an owner of that object and has a pointer to it.
instance
NSLog routine
32. 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 _.
implementation
nil
position
instance of UIView or one of its subclasses
33. Any individual object belonging to any class...
Data Encapsulation
ready-made instances - instantiation from scratch - and nib based instantiation
is an instance of that class
its dataSource
34. Values to be supplied as the parameters to the method
delegates and dataSources
retain
%d
arguments[message]
35. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
header files declare
NSBundle
Continue
36. Why properties?
cannot be added to an array
instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
safety - subclassability and makes code look more consistent with C structs
37. super - is used...
for inheritance - adopting the superclasses implementation
C Functionn
a single-array can contain objects of different types
UIViewController
38. You use _ to implement the view
has one root view controller
CGRect bounds
message
UIView
39. Files Owner...
only the class and subclasses can access
Is a placeholder object
Ready-Made Instance
CGRect bounds
40. 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
41. class methods...
you must import the header file of that class
group of global functions already assigned to this class
designated initializer
only the class and subclasses can access
42. NSString *s = @'Hello - World'; is an example of...
pointer - class
instance of UIView or one of its subclasses
declaration and initialization of a variable
class
43. The class is responsible for what instance variables the instance has - but not the _ of those variables.
retain
values
alloc - singleton - informational utility method?
Generic object wrapper for other non-object data types
44. A _ handles touch events.
only the innermost loop in which the break is executed is terminated
receiver[message]
for inheritance - adopting the superclasses implementation
view
45. initWithFrame: the designated initializer for UIView gives the view
size and position
message
a single-array can contain objects of different types
'getters' and 'setters'
46. To load a Xib file manually - you use _
group of global functions already assigned to this class
data source - view controller and delegate
NSBundle
upper
47. NSArray - class...
type - name and value
ordered collection of objects - immutable
Generic object wrapper for other non-object data types
Data Encapsulation
48. Ready-made instances...
calling code that does the instantiation for you
will be ignored
values
Abstraction
49. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Maintenance of state
You take ownership for an object you want to keep a pointer to
reuse your cells
receiver
50. 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