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 method to be executed
the array relinquishes ownership of that object and no longer has a pointer to it
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
selector[message]
2. 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
self
'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
Encapsulation of functionality
3. Origin of a view's coordinate system is _ left
the message release to all its entries
Encapsulation of functionality
instance of UIView or one of its subclasses
upper
4. A _ handles touch events.
view
Continue
an object's property
Anytime you call a method with new - alloc or copy. You own and must release that object.
5. NSArray - important methods...
creating an initializer
the instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
position
6. 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 _.
delegates and dataSources
pointer - class
instance variables
NSCoder
7. When do you take ownership?...
NSLog routine
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver - selector - arguments
Hash table - Look up objects using a key to get a value.
8. NSValue - class...
@synthesize
designated initializer
delegates and dataSources
Generic object wrapper for other non-object data types
9. 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.
Is a placeholder object
implementation
instance variables
CF - Ref
10. Use of class methods - there are three...
only the class and subclasses can access
instance variable of an object is valid
alloc - singleton - informational utility method?
method
11. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
You take ownership for an object you want to keep a pointer to
its dataSource
new instances of the class or retrieve some global property of the class.
self
12. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
@interface ClassName:SuperClassName
storage
you always return the newly initialized object(return self)
13. Views have three properties related to their location and size: @property _ _;
for inheritance - adopting the superclasses implementation
super - self
calling code that does the instantiation for you
CGRect bounds - GCPoint center - CGRect frame
14. A view represents a _ area
is an instance of that class
UIView
rectangular
its dataSource
15. @property declares - and _ implements the setter and getter...
a single-array can contain objects of different types
ready-made instances - instantiation from scratch - and nib based instantiation
@synthesize
NSCoder
16. The only reason to temporarily own an object - is...
@synthesize
you must import the header file of that class
view controller's initialization method
to give it someone else - or another object
17. initWithFrame: the designated initializer for UIView gives the view
CGRect bounds - GCPoint center - CGRect frame
message
dealloc - is called on the object & the object's memory is returned to the heap
size and position
18. A responder is responsible for...
implementation
receiving and handling events that are associated with it
class methods - initializers
CGRect bounds
19. Defining variables - three parts...
instance variable of an object is valid
object
view controller
type - name and value
20. A UITableView usually needs three different pieces...
viewWillDissapear: and viewWillAppear:
data source - delegate and view controller
self
method
21. A UITableViewController can fill all three roles of...
Instantiation from scratch
ordered collection of objects - immutable
data source - view controller and delegate
wait until the loop finishes processing the event - at the end release it
22. UIImageView is used to...
draw images
NSBundle
cannot be added to an array
@synthesize
23. Primitives and C Structures...
C Functionn
you always return the newly initialized object(return self)
cannot be added to an array
Core Graphics Framework
24. 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....
declaration and initialization of a variable
collection of collections - NSArray of an NSArray
define it in the implemenation file
the array relinquishes ownership of that object and no longer has a pointer to it
25. How do I implement my drawRect?
method
Used to find the time right now or to store past or future time/dates
Core Graphics Framework
the array relinquishes ownership of that object and no longer has a pointer to it
26. At the top of any implementation file...
you must import the header file of that class
viewWillDissapear: and viewWillAppear:
CGRect
Data Encapsulation
27. 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.
Data Encapsulation
creating an initializer
data
pointer - class
28. NSSet...
delegates and dataSources
unordered collection of objects - objects must be unique
@interface ClassName:SuperClassName
Object wrapper around primitive types like int - float - double - BOOl
29. The root view controller typically creates the next view controller - and the next _ creates the one after that
is an instance of that class
view controller
creating an initializer
reuse your cells
30. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
instance variables
object
You take ownership for an object you want to keep a pointer to
wait until the loop finishes processing the event - at the end release it
31. Asking a class or object to execute a method
message
variable scope - if defined within a block
initializers
lowercase - uppercase
32. Also if you send the NSObject the _ message - you own that object.
arguments[message]
@synthesize
retain
C Functionn
33. A command directed to an object is called an...
Used to find the time right now or to store past or future time/dates
attributes - behavior
you must import the header file of that class
message
34. In the last line of an init method...
you always return the newly initialized object(return self)
references to objects
type - name and value
Controller Objects[Managers]
35. A method in a _ is required unless its preceded by an @optional.
protocol
designated initializer
parentViewController
references to objects
36. NSDictionary...
instance
Hash table - Look up objects using a key to get a value.
self
causes the program to immediately exit from the loop it is executing - whether its for - while or do
37. id is a...
instance variable of an object is valid
attributes - behavior
create a XIB file
pointer to an object
38. Values to be supplied as the parameters to the method
pointer - class
data source - delegate and view controller
arguments[message]
methods for generating an instance
39. Reducing details to focus on the core concepts
Abstraction
Object wrapper around primitive types like int - float - double - BOOl
data source - delegate and view controller
Data Encapsulation
40. Instance Variables by default are called @protected meaning...
calling code that does the instantiation for you
only the class and subclasses can access
Maintenance of state
ready-made instances - instantiation from scratch - and nib based instantiation
41. NSArray - class...
view
methods
ordered collection of objects - immutable
CF - Ref
42. 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
43. super - is used...
@synthesize
initializer
instance of UIView or one of its subclasses
for inheritance - adopting the superclasses implementation
44. Reference Counting...
methods
pointer - class
You take ownership for an object you want to keep a pointer to
the message release to all its entries
45. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
Abstraction
values
superclass's
data
46. Object Oriented based analogue to a function is called a...
method
nil
NSBundle
a single-array can contain objects of different types
47. 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.
wait until the loop finishes processing the event - at the end release it
draw images
creating an initializer
the message release to all its entries
48. Property List...
superclass's
methods
collection of collections - NSArray of an NSArray
Controller Objects[Managers]
49. UITableViewController is a subclass of...
they need to be defined in the implementation file
Controller Objects[Managers]
class
UIViewController
50. Hold data and know nothing about the user interface
message
wait until the loop finishes processing the event - at the end release it
You take ownership for an object you want to keep a pointer to
Model Objects[Factory Worker]