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. Center and frame are used to _ your view
type - name and value
message
position
group of global functions already assigned to this class
2. Property List...
its dataSource
array[class - NSMutableArray]
collection of collections - NSArray of an NSArray
super - self
3. In Cocoa Touch - the table view asks another object _ what it should display...
method
its dataSource
references to objects
alloc - singleton - informational utility method?
4. Also if you send the NSObject the _ message - you own that object.
retain
array[class - NSMutableArray]
message
CGRect bounds
5. In the last line of an init method...
Instantiation from scratch
Controller Objects[Managers]
is an instance of that class
you always return the newly initialized object(return self)
6. All objects are accessed using...
@interface ClassName:SuperClassName
pointers
references to objects
method
7. Reducing details to focus on the core concepts
view controller
Ready-Made Instance
in the dealloc - or when a Controller's view is 'unloaded'
Abstraction
8. Origin of a view's coordinate system is _ left
upper
Generic object wrapper for other non-object data types
Functions
self
9. A method in a _ is required unless its preceded by an @optional.
protocol
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
calling code that does the instantiation for you
10. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
type - name and value
receiving and handling events that are associated with it
Hash table - Look up objects using a key to get a value.
Instantiation from scratch
11. Also - because arrays only hold a pointer to an object...
the array becomes an owner of that object and has a pointer to it.
header files declare
a single-array can contain objects of different types
UIView
12. In general - class methods tend to be factory methods - that is...
view controller's initialization method
instance variables
new instances of the class or retrieve some global property of the class.
methods for generating an instance
13. 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
pointers
Encapsulation of functionality
implementation
Functions
14. class methods...
attributes - behavior
only the class and subclasses can access
group of global functions already assigned to this class
first responder
15. If the view has no subviews - create it programmatically; if it has subviews
dealloc - is called on the object & the object's memory is returned to the heap
Controller Objects[Managers]
upper
create a XIB file
16. Each _ has a 'designated' initializer method....
Encapsulation of functionality
class
to give it someone else - or another object
only the class and subclasses can access
17. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
to get and set variables
type - name and value
receiving and handling events that are associated with it
18. A view is a subclass of _
class methods - initializers
UIView
data
create a XIB file
19. NSValue - class...
Generic object wrapper for other non-object data types
lowercase - uppercase
is an instance of that class
UIView
20. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
callbacks
Ready-Made Instance
new instances of the class or retrieve some global property of the class.
receiver
21. NSNumber - class...
callbacks
CGRect bounds - GCPoint center - CGRect frame
Object wrapper around primitive types like int - float - double - BOOl
collection of collections - NSArray of an NSArray
22. If you have extra work you want to do on the view...
do so in viewDidLoad
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
ready-made instances - instantiation from scratch - and nib based instantiation
message
23. Three ways instances are created...
a single-array can contain objects of different types
ordered collection of objects - immutable
class
ready-made instances - instantiation from scratch - and nib based instantiation
24. You use _ to implement the view
a single-array can contain objects of different types
CGFloat
method
CGRect bounds
25. When do you take ownership?...
they need to be defined in the implementation file
Anytime you call a method with new - alloc or copy. You own and must release that object.
group of global functions already assigned to this class
retain
26. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
'getters' and 'setters'
cannot be added to an array
for inheritance - adopting the superclasses implementation
27. NSArray - important methods...
creates an instance of NSString that holds the character string
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver
Continue
28. The root view controller typically creates the next view controller - and the next _ creates the one after that
Core Graphics Framework
NSCoder
view controller
to give it someone else - or another object
29. @property declares - and _ implements the setter and getter...
@synthesize
self
lowercase - uppercase
CGFloat
30. 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...
group of global functions already assigned to this class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
setPossessionName
cannot be added to an array
31. Number one use of protocols in iOS...
delegates and dataSources
ordered collection of objects - immutable
receiving and handling events that are associated with it
to give it someone else - or another object
32. A command directed to an object is called an...
message
collection of collections - NSArray of an NSArray
position
new instances of the class or retrieve some global property of the class.
33. An instance is a device for maintaining state. It's a box for _ of data.
a mechanism to enable specific callbacks
storage
variable scope - if defined within a block
instance variables
34. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
C Functionn
class methods - initializers
attributes - behavior
to get and set variables
35. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
CGRect
you always return the newly initialized object(return self)
for inheritance - adopting the superclasses implementation
36. Instance Variables by default are called @protected meaning...
the array relinquishes ownership of that object and no longer has a pointer to it
header files declare
only the class and subclasses can access
Abstraction
37. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
lowercase - uppercase
object
alloc - singleton - informational utility method?
array[class - NSMutableArray]
38. 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
protocol
the array relinquishes ownership of that object and no longer has a pointer to it
receiver - selector - arguments
39. NSDate - class...
Used to find the time right now or to store past or future time/dates
class methods - initializers
create a XIB file
instance variables
40. 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 _.
storage
nil
receiver[message]
array[class - NSMutableArray]
41. 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
42. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
receiver[message]
is an instance of that class
only the class and subclasses can access
43. The integer prefix is...
define it in the implemenation file
Encapsulation of functionality
%d
causes the program to immediately exit from the loop it is executing - whether its for - while or do
44. Class methods do not operate on an _ or have any access to _ variables....
CGRect bounds
instance
first responder
alloc - singleton - informational utility method?
45. Only exists within the statement block there defined - outside of the block is fine
array[class - NSMutableArray]
initializer
@synthesize
variable scope - if defined within a block
46. Prefixing a character string with an @ symbol [specific - NSString class]...
Controller Objects[Managers]
callbacks
define it in the implemenation file
creates an instance of NSString that holds the character string
47. A pointer to the object being asked to execute a method
Controller Objects[Managers]
dealloc - is called on the object & the object's memory is returned to the heap
new instances of the class or retrieve some global property of the class.
receiver[message]
48. Primitives and C Structures...
create a XIB file
cannot be added to an array
Hash table - Look up objects using a key to get a value.
subview(s)
49. 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
50. 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
accessors - individually we call them 'getters' and 'setters'
a mechanism to enable specific callbacks
is an instance of that class
in the dealloc - or when a Controller's view is 'unloaded'