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. Core foundation classes are prefixed with _ and suffixed with _
Hash table - Look up objects using a key to get a value.
first responder
UIView
CF - Ref
2. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
viewWillDissapear: and viewWillAppear:
C Functionn
designated initializer
object
3. Categories are an Objective C way to add _ to an existing class without subclassing
receiving and handling events that are associated with it
upper
methods
alloc - singleton - informational utility method?
4. UIImageView is used to...
draw images
object
NSLog routine
data
5. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
creating an initializer
a mechanism to enable specific callbacks
instance variables
its dataSource
6. 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...
setPossessionName
Maintenance of state
references to objects
lowercase - uppercase
7. Proceed through the loop - jump back to the top and check again
Continue
rectangular
view controller
Encapsulation of functionality
8. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
cannot be added to an array
Maintenance of state
its dataSource
9. To load a Xib file manually - you use _
NSBundle
Ready-Made Instance
Abstraction
C Functionn
10. If a break statement is executed from within a set of nested loops...
Controller Objects[Managers]
C Functionn
only the innermost loop in which the break is executed is terminated
view
11. Only exists within the statement block there defined - outside of the block is fine
setPossessionName
cannot be added to an array
variable scope - if defined within a block
reuse your cells
12. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
receiving and handling events that are associated with it
receiver - selector - arguments
to give it someone else - or another object
13. Instance Variables by default are called @protected meaning...
super - self
pointers
CF - Ref
only the class and subclasses can access
14. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
do so in viewDidLoad
is called every time the event occurs
class
15. Class methods do not operate on an _ or have any access to _ variables....
protocol
arguments[message]
instance
instance variables
16. Hold data and know nothing about the user interface
NSCoder
Encapsulation of functionality
Model Objects[Factory Worker]
the array relinquishes ownership of that object and no longer has a pointer to it
17. id is a...
accessors - individually we call them 'getters' and 'setters'
references to objects
to get and set variables
pointer to an object
18. In Cocoa Touch - the table view asks another object _ what it should display...
Continue
its dataSource
retain
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
19. Name of the method to be executed
lowercase - uppercase
Functions
selector[message]
its dataSource
20. Center and frame are used to _ your view
has one root view controller
@interface ClassName:SuperClassName
safety - subclassability and makes code look more consistent with C structs
position
21. The class is responsible for what instance variables the instance has - but not the _ of those variables.
CGFloat
values
alloc - singleton - informational utility method?
unordered collection of objects - objects must be unique
22. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
define it in the implemenation file
storage
its dataSource
23. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
instance variables
initializers
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
24. A function in the objective c library that simply displays or logs it's argument
NSLog routine
NSCoder
class methods - initializers
implementation
25. 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
its dataSource
the instance variables
Model Objects[Factory Worker]
Maintenance of state
26. A view represents a _ area
Encapsulation of functionality
rectangular
Is a placeholder object
create a XIB file
27. When making a tableView always...
ordered collection of objects - immutable
reuse your cells
NSBundle
a single-array can contain objects of different types
28. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
collection of collections - NSArray of an NSArray
callbacks
data source - delegate and view controller
29. UIViewController has several methods that get called at certain times...
@synthesize
subview(s)
to get and set variables
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
30. if you implemented both the setter and getter - the @synthesize method...
the array relinquishes ownership of that object and no longer has a pointer to it
copy - retain
its dataSource
will be ignored
31. If the view has no subviews - create it programmatically; if it has subviews
Maintenance of state
super - self
data
create a XIB file
32. In general - class methods tend to be factory methods - that is...
methods for generating an instance
the message release to all its entries
instance variables
draw images
33. Execution of the break statement...
Is a placeholder object
creates an instance of NSString that holds the character string
causes the program to immediately exit from the loop it is executing - whether its for - while or do
unordered collection of objects - objects must be unique
34. 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
wait until the loop finishes processing the event - at the end release it
its dataSource
Functions
has one root view controller
35. Prefixing a character string with an @ symbol [specific - NSString class]...
to get and set variables
instance
class's
creates an instance of NSString that holds the character string
36. NSDate - class...
the message release to all its entries
Maintenance of state
will be ignored
Used to find the time right now or to store past or future time/dates
37. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
has one root view controller
rectangular
implementation
38. Any individual object belonging to any class...
is an instance of that class
designated initializer
you always return the newly initialized object(return self)
object
39. When do you take ownership?...
do so in viewDidLoad
NSLog routine
Anytime you call a method with new - alloc or copy. You own and must release that object.
You take ownership for an object you want to keep a pointer to
40. A _ handles touch events.
NSBundle
declaration and initialization of a variable
view
to get and set variables
41. In the last line of an init method...
the array becomes an owner of that object and has a pointer to it.
first responder
you always return the newly initialized object(return self)
pointers
42. Each _ has a 'designated' initializer method....
references to objects
lowercase - uppercase
Data Encapsulation
class
43. A UITableView usually needs three different pieces...
Generic object wrapper for other non-object data types
Model Objects[Factory Worker]
data source - delegate and view controller
do so in viewDidLoad
44. NSString *s = @'Hello - World'; is an example of...
an object's property
UIViewController
they need to be defined in the implementation file
declaration and initialization of a variable
45. initWithFrame: the designated initializer for UIView gives the view
size and position
CGRect bounds
Anytime you call a method with new - alloc or copy. You own and must release that object.
message
46. Delegation is an object oriented approach to
a mechanism to enable specific callbacks
methods
creating an initializer
callbacks
47. Just a floating point number - but we always use it for graphics.
CGFloat
receiving and handling events that are associated with it
callbacks
to get and set variables
48. In any application with UINavigationController - the navigation controller...
the array becomes an owner of that object and has a pointer to it.
instance variable of an object is valid
declaration and initialization of a variable
has one root view controller
49. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
instance variables
nil
message
lowercase - uppercase
50. NSNumber - class...
dealloc - is called on the object & the object's memory is returned to the heap
Object wrapper around primitive types like int - float - double - BOOl
Continue
safety - subclassability and makes code look more consistent with C structs