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. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
object
'getters' and 'setters'
a mechanism to enable specific callbacks
2. 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....
message
define it in the implemenation file
Data Encapsulation
data source - view controller and delegate
3. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Generic object wrapper for other non-object data types
object
C Functionn
for inheritance - adopting the superclasses implementation
4. 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
in the dealloc - or when a Controller's view is 'unloaded'
receiver
'getters' and 'setters'
5. After accessors have been defined in the header file...
Hash table - Look up objects using a key to get a value.
references to objects
they need to be defined in the implementation file
self
6. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
lowercase - uppercase
pointer to an object
its dataSource
7. Each _ has a 'designated' initializer method....
class
protocol
in the dealloc - or when a Controller's view is 'unloaded'
do so in viewDidLoad
8. Asking a class or object to execute a method
message
Ready-Made Instance
ordered collection of objects - immutable
pointer to an object
9. In Cocoa Touch - the table view asks another object _ what it should display...
variable scope - if defined within a block
its dataSource
@interface ClassName:SuperClassName
define it in the implemenation file
10. The root view controller typically creates the next view controller - and the next _ creates the one after that
class's
view controller
Ready-Made Instance
lowercase - uppercase
11. The integer prefix is...
header files declare
references to objects
(id)initWithFrame:(CGRect)aRect;
%d
12. Class methods do not operate on an _ or have any access to _ variables....
alloc - singleton - informational utility method?
@synthesize
upper
instance
13. 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
14. UIView - designated initializer...
data
(id)initWithFrame:(CGRect)aRect;
Used to find the time right now or to store past or future time/dates
instance variable of an object is valid
15. 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
to get and set variables
object
ready-made instances - instantiation from scratch - and nib based instantiation
Functions
16. 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
17. 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
18. An instance is a device for maintaining state. It's a box for _ of data.
instance variables
view controller
storage
receiver
19. Classes describe two things...
protocol
attributes - behavior
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiving and handling events that are associated with it
20. Just a floating point number - but we always use it for graphics.
is called every time the event occurs
storage
a single-array can contain objects of different types
CGFloat
21. Object Oriented based analogue to a function is called a...
position
Data Encapsulation
NSLog routine
method
22. Typically the designated initializer has parameters for the most important and frequently used _ of an object
message
instance variables
data source - view controller and delegate
a mechanism to enable specific callbacks
23. In any application with UINavigationController - the navigation controller...
storage
has one root view controller
group of global functions already assigned to this class
instance
24. 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
25. A collection object - an ordered list of objects that can be accesed by an index
data
selector[message]
array[class - NSMutableArray]
Used to find the time right now or to store past or future time/dates
26. NSDictionary...
Hash table - Look up objects using a key to get a value.
rectangular
accessors - individually we call them 'getters' and 'setters'
you always return the newly initialized object(return self)
27. 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.
receiving and handling events that are associated with it
super - self
first responder
self
28. The only reason to temporarily own an object - is...
arguments[message]
in the dealloc - or when a Controller's view is 'unloaded'
to give it someone else - or another object
%d
29. Three ways instances are created...
pointer - class
parentViewController
ready-made instances - instantiation from scratch - and nib based instantiation
creates an instance of NSString that holds the character string
30. NSString *s = @'Hello - World'; is an example of...
the array relinquishes ownership of that object and no longer has a pointer to it
Model Objects[Factory Worker]
declaration and initialization of a variable
rectangular
31. If you have extra work you want to do on the view...
method
the array relinquishes ownership of that object and no longer has a pointer to it
do so in viewDidLoad
create a XIB file
32. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
creating an initializer
%d
a mechanism to enable specific callbacks
protocol
33. A UITableView usually needs three different pieces...
data source - delegate and view controller
attributes - behavior
Data Encapsulation
creating an initializer
34. A view is an...
creating an initializer
Instantiation from scratch
protocol
instance of UIView or one of its subclasses
35. Designated initializer makes sure that every...
collection of collections - NSArray of an NSArray
instance variable of an object is valid
dealloc - is called on the object & the object's memory is returned to the heap
calling code that does the instantiation for you
36. What does autorelease mean?
to give it someone else - or another object
object
wait until the loop finishes processing the event - at the end release it
subview(s)
37. Values to be supplied as the parameters to the method
setPossessionName
arguments[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variables
38. A callback is a function that is supplied in advance of an event - and...
NSCoder
'getters' and 'setters'
is called every time the event occurs
data source - view controller and delegate
39. A responder is responsible for...
delegates and dataSources
receiving and handling events that are associated with it
attributes - behavior
declaration and initialization of a variable
40. Why properties?
cannot be added to an array
instance of UIView or one of its subclasses
safety - subclassability and makes code look more consistent with C structs
Maintenance of state
41. A method in a _ is required unless its preceded by an @optional.
has one root view controller
C Functionn
class's
protocol
42. Property List...
collection of collections - NSArray of an NSArray
Model Objects[Factory Worker]
group of global functions already assigned to this class
data
43. Reference Counting...
You take ownership for an object you want to keep a pointer to
setPossessionName
CF - Ref
UIViewController
44. All objects are accessed using...
upper
instance of UIView or one of its subclasses
pointers
data
45. Any individual object belonging to any class...
is an instance of that class
instance
Hash table - Look up objects using a key to get a value.
view controller's initialization method
46. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Maintenance of state
self
Controller Objects[Managers]
instance variable of an object is valid
47. 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
48. 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.
Used to find the time right now or to store past or future time/dates
is called every time the event occurs
Data Encapsulation
creating an initializer
49. Prefixing a character string with an @ symbol [specific - NSString class]...
its dataSource
the message release to all its entries
creates an instance of NSString that holds the character string
view controller
50. super - is used...
will be ignored
for inheritance - adopting the superclasses implementation
an object's property
Controller Objects[Managers]