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. Why properties?
to get and set variables
alloc - singleton - informational utility method?
safety - subclassability and makes code look more consistent with C structs
selector[message]
2. Also if you send the NSObject the _ message - you own that object.
retain
its dataSource
@synthesize
Hash table - Look up objects using a key to get a value.
3. The root view controller typically creates the next view controller - and the next _ creates the one after that
NSCoder
array[class - NSMutableArray]
pointer to an object
view controller
4. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
they need to be defined in the implementation file
designated initializer
is called every time the event occurs
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
5. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
to get and set variables
arguments[message]
lowercase - uppercase
6. Defining variables - three parts...
methods
type - name and value
they need to be defined in the implementation file
selector[message]
7. Files Owner...
Is a placeholder object
a mechanism to enable specific callbacks
Core Graphics Framework
to get and set variables
8. Object Oriented based analogue to a function is called a...
method
nil
draw images
CF - Ref
9. Core foundation classes are prefixed with _ and suffixed with _
you must import the header file of that class
an object's property
CF - Ref
wait until the loop finishes processing the event - at the end release it
10. UITableViewController is a subclass of...
Functions
Hash table - Look up objects using a key to get a value.
UIViewController
receiver
11. initWithFrame: the designated initializer for UIView gives the view
dealloc - is called on the object & the object's memory is returned to the heap
size and position
calling code that does the instantiation for you
the array becomes an owner of that object and has a pointer to it.
12. Class methods typically either create
new instances of the class or retrieve some global property of the class.
group of global functions already assigned to this class
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
13. 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
14. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
only the innermost loop in which the break is executed is terminated
Controller Objects[Managers]
%d
super - self
15. You use _ to implement the view
initializers
CGRect bounds
Continue
references to objects
16. Center and frame are used to _ your view
receiver[message]
position
the array relinquishes ownership of that object and no longer has a pointer to it
Data Encapsulation
17. super - is used...
instance
pointer - class
Anytime you call a method with new - alloc or copy. You own and must release that object.
for inheritance - adopting the superclasses implementation
18. Ready-made instances...
calling code that does the instantiation for you
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
new instances of the class or retrieve some global property of the class.
copy - retain
19. 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
20. Each class picks one _ as it's designated initializer....
UIView
view
initializer
CGFloat
21. NSDate - class...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance variable of an object is valid
instance
Used to find the time right now or to store past or future time/dates
22. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Continue
object
Ready-Made Instance
Is a placeholder object
23. Primitives and C Structures...
callbacks
size and position
wait until the loop finishes processing the event - at the end release it
cannot be added to an array
24. Three ways instances are created...
you always return the newly initialized object(return self)
ready-made instances - instantiation from scratch - and nib based instantiation
instance of UIView or one of its subclasses
CGRect bounds
25. 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
26. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
a single-array can contain objects of different types
self
ordered collection of objects - immutable
only the class and subclasses can access
27. Property List...
class
message
collection of collections - NSArray of an NSArray
creating an initializer
28. 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
29. id is a...
Data Encapsulation
its dataSource
size and position
pointer to an object
30. NSString objects are usually sent _ rather than _...
NSLog routine
Continue
class's
copy - retain
31. Only exists within the statement block there defined - outside of the block is fine
CGRect
Used to find the time right now or to store past or future time/dates
variable scope - if defined within a block
class's
32. Execution of the break statement...
will be ignored
draw images
causes the program to immediately exit from the loop it is executing - whether its for - while or do
creating an initializer
33. if you implemented both the setter and getter - the @synthesize method...
will be ignored
only the class and subclasses can access
object
Is a placeholder object
34. How do I implement my drawRect?
Is a placeholder object
wait until the loop finishes processing the event - at the end release it
Core Graphics Framework
view controller's initialization method
35. Each _ has a 'designated' initializer method....
creating an initializer
Core Graphics Framework
has one root view controller
class
36. 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
define it in the implemenation file
%d
Encapsulation of functionality
lowercase - uppercase
37. A UITableViewController can fill all three roles of...
data source - view controller and delegate
a mechanism to enable specific callbacks
the message release to all its entries
wait until the loop finishes processing the event - at the end release it
38. Instance Variables by default are called @protected meaning...
Data Encapsulation
draw images
you always return the newly initialized object(return self)
only the class and subclasses can access
39. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
nil
super - self
C Functionn
40. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
Generic object wrapper for other non-object data types
initializers
data source - delegate and view controller
superclass's
41. Reference Counting...
only the class and subclasses can access
You take ownership for an object you want to keep a pointer to
class's
'getters' and 'setters'
42. 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
CGRect bounds
C Functionn
parentViewController
an object's property
43. When making a tableView always...
Model Objects[Factory Worker]
has one root view controller
first responder
reuse your cells
44. Just a floating point number - but we always use it for graphics.
Maintenance of state
collection of collections - NSArray of an NSArray
CGFloat
nil
45. Proceed through the loop - jump back to the top and check again
message
Continue
creates an instance of NSString that holds the character string
array[class - NSMutableArray]
46. 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
47. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
size and position
view controller
header files declare
Used to find the time right now or to store past or future time/dates
48. A view is an...
Model Objects[Factory Worker]
array[class - NSMutableArray]
instance of UIView or one of its subclasses
@interface ClassName:SuperClassName
49. All objects are accessed using...
position
you always return the newly initialized object(return self)
declaration and initialization of a variable
pointers
50. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
instance of UIView or one of its subclasses
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variables