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. If you have extra work you want to do on the view...
do so in viewDidLoad
a single-array can contain objects of different types
(id)initWithFrame:(CGRect)aRect;
dealloc - is called on the object & the object's memory is returned to the heap
2. A view is a subclass of _
message
Model Objects[Factory Worker]
UIView
retain
3. All objects are accessed using...
ready-made instances - instantiation from scratch - and nib based instantiation
pointers
header files declare
method
4. 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
5. NSArray - important methods...
methods
wait until the loop finishes processing the event - at the end release it
Controller Objects[Managers]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
6. 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
7. A command directed to an object is called an...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Controller Objects[Managers]
to give it someone else - or another object
message
8. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
instance of UIView or one of its subclasses
Encapsulation of functionality
storage
@interface ClassName:SuperClassName
9. Designated initializer makes sure that every...
Is a placeholder object
self
instance variable of an object is valid
the message release to all its entries
10. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
define it in the implemenation file
instance
Ready-Made Instance
subview(s)
11. 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 _.
unordered collection of objects - objects must be unique
variable scope - if defined within a block
nil
calling code that does the instantiation for you
12. When an object is removed from an NSMutableArray - that object is sent the message release;...
subview(s)
the array relinquishes ownership of that object and no longer has a pointer to it
implementation
unordered collection of objects - objects must be unique
13. Object Oriented based analogue to a function is called a...
method
Maintenance of state
the array becomes an owner of that object and has a pointer to it.
initializers
14. Each _ has a 'designated' initializer method....
first responder
NSLog routine
delegates and dataSources
class
15. Primitives and C Structures...
'getters' and 'setters'
cannot be added to an array
for inheritance - adopting the superclasses implementation
class methods - initializers
16. Just a floating point number - but we always use it for graphics.
CGFloat
the instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
ready-made instances - instantiation from scratch - and nib based instantiation
17. Files Owner...
Is a placeholder object
receiver
Controller Objects[Managers]
dealloc - is called on the object & the object's memory is returned to the heap
18. A function in the objective c library that simply displays or logs it's argument
copy - retain
'getters' and 'setters'
viewWillDissapear: and viewWillAppear:
NSLog routine
19. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
copy - retain
superclass's
CGRect
view controller
20. Typically the designated initializer has parameters for the most important and frequently used _ of an object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
attributes - behavior
instance variables
message
21. Why properties?
safety - subclassability and makes code look more consistent with C structs
define it in the implemenation file
Maintenance of state
variable scope - if defined within a block
22. NSDate - class...
accessors - individually we call them 'getters' and 'setters'
self
instance variables
Used to find the time right now or to store past or future time/dates
23. The root view controller typically creates the next view controller - and the next _ creates the one after that
class
define it in the implemenation file
view controller
CGRect
24. A message is always contained in square brackets - and has three parts
class
its dataSource
has one root view controller
receiver - selector - arguments
25. id is a...
Functions
to give it someone else - or another object
Instantiation from scratch
pointer to an object
26. If a break statement is executed from within a set of nested loops...
unordered collection of objects - objects must be unique
ready-made instances - instantiation from scratch - and nib based instantiation
only the innermost loop in which the break is executed is terminated
references to objects
27. 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....
Encapsulation of functionality
a mechanism to enable specific callbacks
first responder
define it in the implemenation file
28. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Data Encapsulation
cannot be added to an array
the array becomes an owner of that object and has a pointer to it.
receiving and handling events that are associated with it
29. An instance is a device for maintaining state. It's a box for _ of data.
storage
alloc - singleton - informational utility method?
NSBundle
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
30. Core foundation classes are prefixed with _ and suffixed with _
storage
CF - Ref
NSLog routine
receiver
31. Instance Variables by default are called @protected meaning...
position
wait until the loop finishes processing the event - at the end release it
only the class and subclasses can access
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
32. Defining variables - three parts...
size and position
delegates and dataSources
alloc - singleton - informational utility method?
type - name and value
33. NSString *s = @'Hello - World'; is an example of...
superclass's
class
Encapsulation of functionality
declaration and initialization of a variable
34. Reference Counting...
initializer
draw images
the array becomes an owner of that object and has a pointer to it.
You take ownership for an object you want to keep a pointer to
35. 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
36. In a class method you cannot access...
superclass's
instance variables
receiver[message]
the instance variables
37. [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.
data
Instantiation from scratch
values
instance variables
38. UIImageView is used to...
implementation
unordered collection of objects - objects must be unique
Is a placeholder object
draw images
39. @property declares - and _ implements the setter and getter...
@synthesize
Used to find the time right now or to store past or future time/dates
NSBundle
view controller's initialization method
40. 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
Functions
CGRect
will be ignored
to get and set variables
41. Categories are an Objective C way to add _ to an existing class without subclassing
wait until the loop finishes processing the event - at the end release it
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variables
methods
42. 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
Functions
Encapsulation of functionality
draw images
data source - view controller and delegate
43. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
self
You take ownership for an object you want to keep a pointer to
the instance variables
C Functionn
44. UITableViewController is a subclass of...
UIViewController
CGRect bounds
values
Anytime you call a method with new - alloc or copy. You own and must release that object.
45. NSDictionary...
instance variables
class
Model Objects[Factory Worker]
Hash table - Look up objects using a key to get a value.
46. Delegation is an object oriented approach to
selector[message]
setPossessionName
copy - retain
callbacks
47. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
CF - Ref
message
Encapsulation of functionality
Controller Objects[Managers]
48. Classes describe two things...
Functions
attributes - behavior
CGRect bounds - GCPoint center - CGRect frame
nil
49. 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.
dealloc - is called on the object & the object's memory is returned to the heap
class's
retain
creating an initializer
50. A view represents a _ area
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
rectangular
has one root view controller
implementation