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. A responder is responsible for...
ordered collection of objects - immutable
Model Objects[Factory Worker]
receiving and handling events that are associated with it
Maintenance of state
2. Views have three properties related to their location and size: @property _ _;
cannot be added to an array
selector[message]
you must import the header file of that class
CGRect bounds - GCPoint center - CGRect frame
3. Defining variables - three parts...
new instances of the class or retrieve some global property of the class.
declaration and initialization of a variable
type - name and value
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
4. All objects are accessed using...
calling code that does the instantiation for you
pointers
Data Encapsulation
creating an initializer
5. initWithFrame: the designated initializer for UIView gives the view
receiving and handling events that are associated with it
size and position
class's
parentViewController
6. NSArray - important methods...
creating an initializer
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
wait until the loop finishes processing the event - at the end release it
NSCoder
7. Asking a class or object to execute a method
superclass's
self
message
an object's property
8. 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
9. 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
Encapsulation of functionality
Hash table - Look up objects using a key to get a value.
is an instance of that class
you must import the header file of that class
10. 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
11. In general - class methods tend to be factory methods - that is...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view controller's initialization method
'getters' and 'setters'
methods for generating an instance
12. A view is an...
NSCoder
(id)initWithFrame:(CGRect)aRect;
@interface ClassName:SuperClassName
instance of UIView or one of its subclasses
13. 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
to give it someone else - or another object
Continue
parentViewController
accessors - individually we call them 'getters' and 'setters'
14. Also if you send the NSObject the _ message - you own that object.
retain
selector[message]
CGFloat
is called every time the event occurs
15. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
methods for generating an instance
Functions
designated initializer
16. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Is a placeholder object
CGRect
its dataSource
Generic object wrapper for other non-object data types
17. Class methods typically either create
the instance variables
Controller Objects[Managers]
data source - delegate and view controller
new instances of the class or retrieve some global property of the class.
18. Primitives and C Structures...
Object wrapper around primitive types like int - float - double - BOOl
cannot be added to an array
attributes - behavior
Core Graphics Framework
19. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver[message]
Ready-Made Instance
reuse your cells
20. A UITableViewController can fill all three roles of...
you must import the header file of that class
data source - view controller and delegate
in the dealloc - or when a Controller's view is 'unloaded'
to get and set variables
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
the instance variables
selector[message]
object
Functions
22. Proceed through the loop - jump back to the top and check again
CGRect bounds - GCPoint center - CGRect frame
parentViewController
draw images
Continue
23. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
ordered collection of objects - immutable
Model Objects[Factory Worker]
selector[message]
24. NSValue - class...
instance variables
unordered collection of objects - objects must be unique
is called every time the event occurs
Generic object wrapper for other non-object data types
25. The class is responsible for what instance variables the instance has - but not the _ of those variables.
calling code that does the instantiation for you
values
@interface ClassName:SuperClassName
Abstraction
26. Number one use of protocols in iOS...
%d
Used to find the time right now or to store past or future time/dates
delegates and dataSources
new instances of the class or retrieve some global property of the class.
27. Values to be supplied as the parameters to the method
class methods - initializers
class
arguments[message]
copy - retain
28. @property - is using methods...
CGRect
to get and set variables
create a XIB file
first responder
29. A function in the objective c library that simply displays or logs it's argument
NSLog routine
you must import the header file of that class
define it in the implemenation file
initializer
30. If a break statement is executed from within a set of nested loops...
Data Encapsulation
only the innermost loop in which the break is executed is terminated
dealloc - is called on the object & the object's memory is returned to the heap
'getters' and 'setters'
31. 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.
implementation
receiving and handling events that are associated with it
an object's property
subview(s)
32. Reference Counting...
superclass's
designated initializer
You take ownership for an object you want to keep a pointer to
create a XIB file
33. 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...
retain
Core Graphics Framework
references to objects
setPossessionName
34. NSArray - class...
subview(s)
protocol
ordered collection of objects - immutable
message
35. The only reason to temporarily own an object - is...
group of global functions already assigned to this class
to give it someone else - or another object
Anytime you call a method with new - alloc or copy. You own and must release that object.
view
36. 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....
define it in the implemenation file
parentViewController
NSBundle
collection of collections - NSArray of an NSArray
37. 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 _.
draw images
safety - subclassability and makes code look more consistent with C structs
instance variables
subview(s)
38. super - is used...
(id)initWithFrame:(CGRect)aRect;
instance
define it in the implemenation file
for inheritance - adopting the superclasses implementation
39. 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
40. A callback is a function that is supplied in advance of an event - and...
initializers
is called every time the event occurs
You take ownership for an object you want to keep a pointer to
receiver - selector - arguments
41. NSString objects are usually sent _ rather than _...
header files declare
copy - retain
message
method
42. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
subview(s)
Instantiation from scratch
Model Objects[Factory Worker]
object
43. When an object is added to a NSMutableArray - that object is sent the message to retain;...
size and position
the array becomes an owner of that object and has a pointer to it.
ordered collection of objects - immutable
@interface ClassName:SuperClassName
44. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
header files declare
CGRect bounds
superclass's
45. If the view has no subviews - create it programmatically; if it has subviews
(id)initWithFrame:(CGRect)aRect;
view
data
create a XIB file
46. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance
Model Objects[Factory Worker]
47. [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.
nil
@synthesize
data
receiver[message]
48. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
Used to find the time right now or to store past or future time/dates
Maintenance of state
you must import the header file of that class
class's
49. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
draw images
CGRect
pointer - class
50. A collection object - an ordered list of objects that can be accesed by an index
ready-made instances - instantiation from scratch - and nib based instantiation
array[class - NSMutableArray]
self
in the dealloc - or when a Controller's view is 'unloaded'