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. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
in the dealloc - or when a Controller's view is 'unloaded'
setPossessionName
CF - Ref
array[class - NSMutableArray]
2. A view is a subclass of _
is called every time the event occurs
the array relinquishes ownership of that object and no longer has a pointer to it
UIView
You take ownership for an object you want to keep a pointer to
3. Just a floating point number - but we always use it for graphics.
view
in the dealloc - or when a Controller's view is 'unloaded'
CGFloat
NSCoder
4. When an NSMutableArray is deallocated - it sends...
Continue
values
a mechanism to enable specific callbacks
the message release to all its entries
5. A callback is a function that is supplied in advance of an event - and...
in the dealloc - or when a Controller's view is 'unloaded'
is called every time the event occurs
superclass's
You take ownership for an object you want to keep a pointer to
6. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver[message]
Model Objects[Factory Worker]
Anytime you call a method with new - alloc or copy. You own and must release that object.
7. In a class method you cannot access...
CGRect bounds - GCPoint center - CGRect frame
parentViewController
Generic object wrapper for other non-object data types
the instance variables
8. A command directed to an object is called an...
storage
you always return the newly initialized object(return self)
message
view controller
9. Object Oriented based analogue to a function is called a...
a mechanism to enable specific callbacks
object
storage
method
10. After accessors have been defined in the header file...
they need to be defined in the implementation file
causes the program to immediately exit from the loop it is executing - whether its for - while or do
upper
Model Objects[Factory Worker]
11. if you implemented both the setter and getter - the @synthesize method...
message
lowercase - uppercase
will be ignored
the message release to all its entries
12. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
self
initializers
object
Anytime you call a method with new - alloc or copy. You own and must release that object.
13. NSSet...
unordered collection of objects - objects must be unique
Anytime you call a method with new - alloc or copy. You own and must release that object.
%d
self
14. Name of the method to be executed
variable scope - if defined within a block
selector[message]
only the innermost loop in which the break is executed is terminated
Controller Objects[Managers]
15. A view is an...
the message release to all its entries
its dataSource
you must import the header file of that class
instance of UIView or one of its subclasses
16. Each _ has a 'designated' initializer method....
Abstraction
a mechanism to enable specific callbacks
class
for inheritance - adopting the superclasses implementation
17. Categories are an Objective C way to add _ to an existing class without subclassing
arguments[message]
methods
attributes - behavior
is an instance of that class
18. 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....
arguments[message]
define it in the implemenation file
implementation
@synthesize
19. Number one use of protocols in iOS...
(id)initWithFrame:(CGRect)aRect;
only the class and subclasses can access
delegates and dataSources
Ready-Made Instance
20. 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 _.
pointer - class
Core Graphics Framework
references to objects
create a XIB file
21. 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
instance variables
pointer to an object
Functions
CGRect bounds - GCPoint center - CGRect frame
22. Use of class methods - there are three...
alloc - singleton - informational utility method?
type - name and value
class methods - initializers
methods
23. If you have extra work you want to do on the view...
ready-made instances - instantiation from scratch - and nib based instantiation
do so in viewDidLoad
methods
selector[message]
24. Execution of the break statement...
storage
creating an initializer
CGRect bounds - GCPoint center - CGRect frame
causes the program to immediately exit from the loop it is executing - whether its for - while or do
25. UIView - designated initializer...
Abstraction
they need to be defined in the implementation file
ordered collection of objects - immutable
(id)initWithFrame:(CGRect)aRect;
26. 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
27. An instance is a device for maintaining state. It's a box for _ of data.
define it in the implemenation file
an object's property
storage
methods
28. @property - is using methods...
has one root view controller
to give it someone else - or another object
to get and set variables
Continue
29. In the last line of an init method...
subview(s)
group of global functions already assigned to this class
is an instance of that class
you always return the newly initialized object(return self)
30. NSString objects are usually sent _ rather than _...
copy - retain
methods
C Functionn
define it in the implemenation file
31. 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
arguments[message]
instance
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a mechanism to enable specific callbacks
32. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
pointers
parentViewController
storage
subview(s)
33. When an object is added to a NSMutableArray - that object is sent the message to retain;...
header files declare
the array becomes an owner of that object and has a pointer to it.
Generic object wrapper for other non-object data types
instance variable of an object is valid
34. Origin of a view's coordinate system is _ left
CGRect
to get and set variables
upper
they need to be defined in the implementation file
35. Delegation is an object oriented approach to
Used to find the time right now or to store past or future time/dates
callbacks
message
Controller Objects[Managers]
36. Typically the designated initializer has parameters for the most important and frequently used _ of an object
only the innermost loop in which the break is executed is terminated
Instantiation from scratch
instance variables
accessors - individually we call them 'getters' and 'setters'
37. 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
38. A responder is responsible for...
instance variables
accessors - individually we call them 'getters' and 'setters'
superclass's
receiving and handling events that are associated with it
39. @property declares - and _ implements the setter and getter...
Core Graphics Framework
@synthesize
CGRect bounds - GCPoint center - CGRect frame
ordered collection of objects - immutable
40. At the top of any implementation file...
data
Ready-Made Instance
you must import the header file of that class
CGRect bounds - GCPoint center - CGRect frame
41. super - is used...
for inheritance - adopting the superclasses implementation
initializers
storage
retain
42. Also - because arrays only hold a pointer to an object...
references to objects
receiver[message]
receiver
a single-array can contain objects of different types
43. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
new instances of the class or retrieve some global property of the class.
(id)initWithFrame:(CGRect)aRect;
type - name and value
C Functionn
44. 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.
calling code that does the instantiation for you
an object's property
message
Data Encapsulation
45. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
class methods - initializers
references to objects
values
46. 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
47. Also if you send the NSObject the _ message - you own that object.
data source - view controller and delegate
lowercase - uppercase
retain
pointers
48. Prefixing a character string with an @ symbol [specific - NSString class]...
NSCoder
creates an instance of NSString that holds the character string
CGRect bounds - GCPoint center - CGRect frame
(id)initWithFrame:(CGRect)aRect;
49. Class methods do not operate on an _ or have any access to _ variables....
C Functionn
instance
Model Objects[Factory Worker]
ready-made instances - instantiation from scratch - and nib based instantiation
50. A pointer to the object being asked to execute a method
receiver[message]
NSBundle
pointer to an object
receiver - selector - arguments