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...
only the class and subclasses can access
a mechanism to enable specific callbacks
pointer to an object
setPossessionName
2. Execution of the break statement...
variable scope - if defined within a block
cannot be added to an array
the array relinquishes ownership of that object and no longer has a pointer to it
causes the program to immediately exit from the loop it is executing - whether its for - while or do
3. Typically the designated initializer has parameters for the most important and frequently used _ of an object
data source - delegate and view controller
instance variables
lowercase - uppercase
implementation
4. If a break statement is executed from within a set of nested loops...
its dataSource
only the innermost loop in which the break is executed is terminated
Controller Objects[Managers]
Model Objects[Factory Worker]
5. A message is always contained in square brackets - and has three parts
creating an initializer
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver - selector - arguments
UIViewController
6. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
parentViewController
Controller Objects[Managers]
NSBundle
7. Delegation is an object oriented approach to
Ready-Made Instance
callbacks
the message release to all its entries
variable scope - if defined within a block
8. In general - class methods tend to be factory methods - that is...
methods for generating an instance
receiver[message]
storage
copy - retain
9. A UITableViewController can fill all three roles of...
methods for generating an instance
data source - view controller and delegate
accessors - individually we call them 'getters' and 'setters'
first responder
10. A responder is responsible for...
instance of UIView or one of its subclasses
receiving and handling events that are associated with it
you must import the header file of that class
Encapsulation of functionality
11. NSDate - class...
CF - Ref
protocol
unordered collection of objects - objects must be unique
Used to find the time right now or to store past or future time/dates
12. When do you take ownership?...
UIViewController
Data Encapsulation
Anytime you call a method with new - alloc or copy. You own and must release that object.
its dataSource
13. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
values
@synthesize
@interface ClassName:SuperClassName
arguments[message]
14. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
define it in the implemenation file
receiver
in the dealloc - or when a Controller's view is 'unloaded'
receiver[message]
15. A UITableView usually needs three different pieces...
Hash table - Look up objects using a key to get a value.
data source - delegate and view controller
Generic object wrapper for other non-object data types
Core Graphics Framework
16. When an NSMutableArray is deallocated - it sends...
group of global functions already assigned to this class
the message release to all its entries
class methods - initializers
upper
17. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
define it in the implemenation file
reuse your cells
Encapsulation of functionality
CGRect
18. initWithFrame: the designated initializer for UIView gives the view
to get and set variables
size and position
receiver
Ready-Made Instance
19. NSArray - class...
ordered collection of objects - immutable
Generic object wrapper for other non-object data types
C Functionn
receiver - selector - arguments
20. In Objective C arrays can hold only...
references to objects
receiver
you must import the header file of that class
CGRect
21. Origin of a view's coordinate system is _ left
protocol
upper
creates an instance of NSString that holds the character string
the message release to all its entries
22. Just a floating point number - but we always use it for graphics.
reuse your cells
subview(s)
an object's property
CGFloat
23. if you implemented both the setter and getter - the @synthesize method...
will be ignored
Hash table - Look up objects using a key to get a value.
is an instance of that class
UIView
24. Instance Variables by default are called @protected meaning...
selector[message]
only the class and subclasses can access
size and position
viewWillDissapear: and viewWillAppear:
25. Why properties?
viewWillDissapear: and viewWillAppear:
safety - subclassability and makes code look more consistent with C structs
view controller's initialization method
class methods - initializers
26. Also - because arrays only hold a pointer to an object...
copy - retain
a single-array can contain objects of different types
arguments[message]
methods for generating an instance
27. 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
28. [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.
references to objects
data
Used to find the time right now or to store past or future time/dates
receiver
29. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
header files declare
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CF - Ref
initializers
30. 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
31. Also if you send the NSObject the _ message - you own that object.
message
retain
CF - Ref
only the innermost loop in which the break is executed is terminated
32. Reducing details to focus on the core concepts
Abstraction
do so in viewDidLoad
cannot be added to an array
subview(s)
33. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Controller Objects[Managers]
data source - delegate and view controller
Core Graphics Framework
object
34. 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
35. Property List...
collection of collections - NSArray of an NSArray
instance
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
36. super - is used...
type - name and value
for inheritance - adopting the superclasses implementation
only the class and subclasses can access
UIView
37. After accessors have been defined in the header file...
position
they need to be defined in the implementation file
is an instance of that class
view
38. Class methods do not operate on an _ or have any access to _ variables....
instance
references to objects
for inheritance - adopting the superclasses implementation
view
39. A view represents a _ area
class's
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
Anytime you call a method with new - alloc or copy. You own and must release that object.
40. 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
reuse your cells
instance variables
instance of UIView or one of its subclasses
Encapsulation of functionality
41. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
a single-array can contain objects of different types
data source - delegate and view controller
selector[message]
42. The root view controller typically creates the next view controller - and the next _ creates the one after that
designated initializer
retain
view controller
to get and set variables
43. At the top of any implementation file...
ready-made instances - instantiation from scratch - and nib based instantiation
retain
you must import the header file of that class
group of global functions already assigned to this class
44. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
super - self
C Functionn
instance variable of an object is valid
self
45. Hold data and know nothing about the user interface
header files declare
references to objects
Model Objects[Factory Worker]
a mechanism to enable specific callbacks
46. A command directed to an object is called an...
delegates and dataSources
superclass's
copy - retain
message
47. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
receiver
Controller Objects[Managers]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
data source - view controller and delegate
48. All objects are accessed using...
class's
C Functionn
pointers
(id)initWithFrame:(CGRect)aRect;
49. A view is an...
instance of UIView or one of its subclasses
you must import the header file of that class
message
NSBundle
50. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
pointers
values
subview(s)
you always return the newly initialized object(return self)